SGD
Optimizer variant implementing stochastic gradient descent, optionally with momentum and Nesterov acceleration. It offers more direct control than the adaptive optimizers and is a common choice when a carefully tuned learning-rate schedule is used.
Configuration
Selected as name: sgd.
Option |
Description |
Type |
Default |
|---|---|---|---|
|
Learning rate. |
float |
required |
|
Momentum factor. |
float |
|
|
Dampening for momentum. |
float |
|
|
Weight-decay (L2 penalty) coefficient. |
float |
|
|
Enable Nesterov momentum. Requires |
bool |
|
|
Whether to maximize rather than minimize. |
bool |
|
components:
optimizer:
name: sgd
kwargs:
lr: 0.01
momentum: 0.9
nesterov: true