-
public class SGD.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SGD.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final SGDcreate(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 SGDcreate(Map<String, Tensor> namedParameters, Double learningRate)Creates a new SGD optimizer with default options. -
-
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 optimizedlearningRate- The learning rate for the optimizermomentum- The momentum valuedampening- The dampening valueweightDecay- The weight decay valuenesterov- Whether to use Nesterov momentum
-
-
-
-