setActivationFunction (cv.ANN_MLP) - MATLAB File Help
cv.ANN_MLP/setActivationFunction

Initialize the activation function for each neuron

model.setActivationFunction(ftype)
model.setActivationFunction(ftype, 'OptionName', optionValue, ...)

Input

Options

Currently the default and the only fully supported activation function is 'Sigmoid'.

Note

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]. Recall that by definition tanh(x) = (1 - exp(-2*x)) / (1 + exp(-2*x)).

See also
Method Details
Access public
Sealed false
Static false