Optimizers

Overview

  • namespace: Rindow\NeuralNetworks\Builder
  • classname: Optimizers

Create new optimizer instances.

Create an instance of each optimizer by calling method with the same name as the class name of the optimizer. Refer to the constructor of each optimizer for details.

Optimizers

  • Adam: Adam optimization.
  • SGD: Stochastic gradient descent and momentum optimizer.
  • RMSprop : RMSprop optimization.

Examples

use Rindow\NeuralNetworks\Builder\NeuralNetworks;
$nn = new NeuralNetworks($mo);
$model->compile(
    optimizer:$nn->optimizers()->SGD(lr:0.01),
);