Class SGD
Stochastic gradient descent optimizer. Includes support for momentum, learning rate decay, and Nesterov momentum.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Optimizers
Assembly: Keras.dll
Syntax
public class SGD : Base, IDisposable
Constructors
| Improve this Doc View SourceSGD(Single, Single, Single, Boolean)
Initializes a new instance of the SGD class.
Declaration
public SGD(float lr = 0.01F, float momentum = 0F, float decay = 0F, bool nesterov = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | lr | float >= 0. Learning rate. |
System.Single | momentum | float >= 0. Parameter that accelerates SGD in the relevant direction and dampens oscillations. |
System.Single | decay | float >= 0. Learning rate decay over each update. |
System.Boolean | nesterov | boolean. Whether to apply Nesterov momentum. |
Implements
System.IDisposable