Skip to content

Glossary: Calculus for ML

Tanh

Also written: hyperbolic tangent, np.tanh

An S-shaped activation function like the sigmoid but running from -1 to 1. Its slope is 1 - tanh(z)².

Where the book teaches it

Related terms

Activation functionSigmoidReLU