Skip to main content

Tanh

Tanh activation function


function tanh(x)
{
    //Logic
    //Refer to Sigmond Post to get details of the function
    return 2*sigmoid(2*x) - 1;
}