Package 

Object SGD.Companion

    • Method Summary

      Modifier and Type Method Description
      final SGD create(Map<String, Tensor> namedParameters, Double learningRate, Double momentum, Double dampening, Double weightDecay, Boolean nesterov) Creates a new SGD optimizer with the specified parameters and options.
      final SGD create(Map<String, Tensor> namedParameters, Double learningRate) Creates a new SGD optimizer with default options.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

         final SGD create(Map<String, Tensor> namedParameters, Double learningRate, Double momentum, Double dampening, Double weightDecay, Boolean nesterov)

        Creates a new SGD optimizer with the specified parameters and options.

        Parameters:
        namedParameters - Map of parameter names to tensors to be optimized
        learningRate - The learning rate for the optimizer
        momentum - The momentum value
        dampening - The dampening value
        weightDecay - The weight decay value
        nesterov - Whether to use Nesterov momentum
      • create

         final SGD create(Map<String, Tensor> namedParameters, Double learningRate)

        Creates a new SGD optimizer with default options.

        Parameters:
        namedParameters - Map of parameter names to tensors to be optimized
        learningRate - The learning rate for the optimizer