Tanh(Hyperbolic Tangent)
Tanh is a non-liner activation function commonly used in neural network.
It's derived from hyperbolic functions and is defined as:
tanh(x)=(e^x - e^-x)/(e^x + e^-x)
tanh(x) = 2 * sigmoid(2x) - 1
Output range:[-1, 1];
Tanh is a non-liner activation function commonly used in neural network.
It's derived from hyperbolic functions and is defined as:
tanh(x)=(e^x - e^-x)/(e^x + e^-x)
tanh(x) = 2 * sigmoid(2x) - 1
Output range:[-1, 1];