activation function for each neuron node, we provide the popular activation functions including 'sigmoid', 'tanh', etc.
Usage
activate(x, funName)
Arguments
x
input value to the activation function
funName
This package provides the most popular activation functions which can be used by setting the funName parameter to the following strings: 'sigmoid', 'tanh'.
'sigmoid' sigmoid function 1/(1 + exp(-x)).
'tanh' tanh is the hyperbolic tangent function equal to (exp(x) - exp(-x)) / (exp(x) + exp(-x)).