...: extra arguments needed to calculate the functions
Returns
numeric output of the neuron
Examples
# Return the sigmoid activation function of a neuronActivationFunction <- ActFunc("sigmoid")# Return the tanh activation function of a neuronActivationFunction <- ActFunc("tanh")# Return the activation function of several layers of neuronsactfuncs <- c("linear","sigmoid","linear")ActivationFunctions <- sapply(actfuncs, ActFunc)
References
Pizarroso J, Portela J, Muñoz A (2022). NeuralSens: Sensitivity Analysis of Neural Networks. Journal of Statistical Software, 102(7), 1-36.