ActFunc | R Documentation |
Evaluate activation function of a neuron
ActFunc(type = "sigmoid", ...)
type |
|
... |
extra arguments needed to calculate the functions |
numeric
output of the neuron
Pizarroso J, Portela J, Muñoz A (2022). NeuralSens: Sensitivity Analysis of Neural Networks. Journal of Statistical Software, 102(7), 1-36.
# Return the sigmoid activation function of a neuron
ActivationFunction <- ActFunc("sigmoid")
# Return the tanh activation function of a neuron
ActivationFunction <- ActFunc("tanh")
# Return the activation function of several layers of neurons
actfuncs <- c("linear","sigmoid","linear")
ActivationFunctions <- sapply(actfuncs, ActFunc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.