enum cv::ml::ANN_MLP::ActivationFunctions

Overview

possible activation functions Moreā€¦

#include <ml.hpp>

enum ActivationFunctions
{
    IDENTITY    = 0,
    SIGMOID_SYM = 1,
    GAUSSIAN    = 2,
};

Detailed Documentation

possible activation functions

Enum Values

IDENTITY

Identity function: \(f(x)=x\)

SIGMOID_SYM

Symmetrical sigmoid: \(f(x)=\beta*(1-e^{-\alpha x})/(1+e^{-\alpha x}\) If you are using the default sigmoid activation function with the default parameter values fparam1=0 and fparam2=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].

GAUSSIAN

Gaussian function: \(f(x)=\beta e^{-\alpha x*x}\)