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
A
the activation vector
forward()
Tanh$forward(Z)
Z
a vector of pre-activations
a vector of activations.
backward()
Tanh$backward(dLdA)
dLdA
vector of gradients.
a vector gradients.
clone()
The objects of this class are cloneable with this method.
Tanh$clone(deep = FALSE)
deep
Whether 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.