Class SGD<T>

java.lang.Object
org.episteme.core.mathematics.ml.neural.optimizers.SGD<T>
All Implemented Interfaces:
Optimizer<T>

public class SGD<T> extends Object implements Optimizer<T>
Stochastic Gradient Descent optimizer.
  • Constructor Details

    • SGD

      public SGD(double lr)
  • Method Details

    • step

      public void step(Map<String, GraphNode<T>> parameters)
      Description copied from interface: Optimizer
      Updates the parameters based on their internal gradients.
      Specified by:
      step in interface Optimizer<T>
      Parameters:
      parameters - valid map of parameters to update.