Description Super class Public fields Methods See Also
Each activation module has a forward method that takes in a batch of pre-activations Z and returns a batch of activations A.
neuralnetr::ClassModule -> Tanh
Athe activation vector
forward()Tanh$forward(Z)
Za vector of pre-activations
a vector of activations.
backward()Tanh$backward(dLdA)
dLdAvector of gradients.
a vector gradients.
clone()The objects of this class are cloneable with this method.
Tanh$clone(deep = FALSE)
deepWhether to make a deep clone.
Other activation:
ReLU,
Sigmoid,
SoftMax
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.