Class BaseOptimizer
Namespace: SiaNet.Optimizers
Assembly: SiaNet.dll
Syntax
public abstract class BaseOptimizer
Constructors
| Improve this Doc View SourceBaseOptimizer(Single, String)
Initializes a new instance of the BaseOptimizer class.
Declaration
public BaseOptimizer(float lr, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Single | lr | The lr. |
System.String | name | The name. |
Properties
| Improve this Doc View SourceDecayRate
Learning rate decay over each update.
Declaration
public float DecayRate { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The decay rate. |
LearningRate
Gets or sets the learning rate for the optimizer.
Declaration
public float LearningRate { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The learning rate. |
Momentum
Parameter that accelerates SGD in the relevant direction and dampens oscillations.
Declaration
public float Momentum { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The momentum. |
Name
Gets or sets the name of the optimizer function
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |