Source

Hyperbolic Tangent#

S-shaped function that squeezes the input value into an output space between -1 and 1. Tanh has the advantage of being zero centered, however is known to saturate with highly positive or negative input values.

Parameters#

This activation Function does not have any parameters.

Example#

use Rubix\ML\NeuralNet\ActivationFunctions\HyperbolicTangent;

$activationFunction = new HyperbolicTangent();