An activation function that, together with the sigmoid function, has been used since the early days to introduce nonlinearity into neural networks.
The firing of biological neurons motivated the use of the sigmoid function and the Tanh function in artificial neurons.
It was once used in hidden layers, but because of the vanishing gradient problem and its computational cost, hidden layers now mainly use ReLU-family functions. It is still used inside recurrent networks such as LSTM.
The output range is
