An activation function that introduces (non-learnable) parameters into the Tanh function.

LeCun et al. recommend A=1.7159A = 1.7159 and B=2/3B = 2/3. With these values, sTanh(Β±1)=Β±1sTanh(Β±1) = Β±1 and the effective slope (gain) near the origin is about 1, so for normalized inputs the output variance also stays close to 1.

sTanh(x)=Aβ‹…Tanh(Bβ‹…x)=Aβ‹…eBxβˆ’eβˆ’BxeBx+eβˆ’BxsTanh(x) = A \cdot Tanh(B \cdot x) = A\cdot \frac{e^{Bx} - e^{-Bx}}{e^{Bx} + e^{-Bx}}

The output range is

βˆ’A<sTanh(x)<A-A < sTanh(x) < A