Tanh

  • namespace: Rindow\NeuralNetworks\Activation
  • classname: Tanh

Tanh activation function.

Methods

constructor

Rindow\NeuralNetworks\Activation\FunctionFactory::factory($backend,'tanh');

You can create a Tanh function instances with the FunctionFactory. Generally, FunctionFactory is called inside the layer class.

Examples

$model->add($nn->layers()->Activation('tanh'));
...
$model->add($nn->layers()->SimpleRNN(10,activation:'tanh'));