Description Super class Methods See Also
Classic softmax that can be interpreted as a probability distribution over n items
For 'SoftMax$class_fun()', given the column vector of class probabilities for each point (computed by Softmax), return a vector of the classes (integers) with the highest probability for each point.
neuralnetr::ClassModule -> SoftMax
forward()SoftMax$forward(Z)
Za vector of pre-activations.
probabilities of the given class
backward()SoftMax$backward(dLdZ)
dLdZa vector of gradients dLdZ.
dLdZ
class_fun()a classify function.
SoftMax$class_fun(Ypred)
Ypreda vector of predictions.
the index for the vector of the predicted label.
clone()The objects of this class are cloneable with this method.
SoftMax$clone(deep = FALSE)
deepWhether to make a deep clone.
Other activation:
ReLU,
Sigmoid,
Tanh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.