Hyperbolic tangent
An S-shaped activation squashing any number into (−1, 1).
In ML papers
squashes inputs into , centred on 0. RNNs and LSTMs use it for their hidden-state updates. It is a rescaled sigmoid: .
How to type it
| LaTeX | Shows |
|---|---|
\tanh |
An S-shaped activation squashing any number into (−1, 1).
squashes inputs into , centred on 0. RNNs and LSTMs use it for their hidden-state updates. It is a rescaled sigmoid: .
| LaTeX | Shows |
|---|---|
\tanh |