Tanh

Problem

The hyperbolic tangent is another commonly used activation function in neural networks. The function is given by tanh(x)=exexex+ex Show that the tanh function is related to the sigmoid function by tanh(x)=2σ(2x)1.

Solution

show