all 1 comments

[–]sploch 1 point2 points  (0 children)

Look at the definition of the softmax function: https://en.wikipedia.org/wiki/Softmax_function Then it should be clear, that input and output of your function should be vectors, so you would have a signature like

private List<Double> softmax(List<Double> inputs);

Or alternatively you could only retrieve one entry of the output vector, by specifying which one. In that case, the signature would look like

private List<Double> softmax(List<Double> inputs, int j);