MATLAB File Help: cv.ANN_MLP/setActivationFunction | Index |
Initialize the activation function for each neuron
model.setActivationFunction(ftype)
model.setActivationFunction(ftype, 'OptionName', optionValue, ...)
f(x) = x
f(x) = beta * (1-exp(-alpha*x))/(1+exp(-alpha*x))
.
See note below.f(x) = beta * exp(-alpha*x*x)
alpha
. default 0beta
. default 0Currently the default and the only fully supported activation function is 'Sigmoid'.
If you are using the default Sigmoid
activation function with
the default parameter values Param1=0
and Param2=0
then the
function used is y = 1.7159*tanh(2/3 * x)
, so the output will
range from [-1.7159, 1.7159], instead of [0,1].
Access | public |
Sealed | false |
Static | false |