Struct GradientDescentOptions
Contains the different options of a Gradient Descent minimization.
Namespace: Paramdigma.Core.Optimization
Assembly: Paramdigma.Core.dll
Syntax
public struct GradientDescentOptions
Constructors
| Improve this Doc View SourceGradientDescentOptions(GradientDescentOptions)
Initializes a new instance of the GradientDescentOptions struct given an existing one.
Declaration
public GradientDescentOptions(GradientDescentOptions options)
Parameters
Type | Name | Description |
---|---|---|
GradientDescentOptions | options | Options to duplicate. |
GradientDescentOptions(Double, Int32, Double, Double, Double)
Initializes a new instance of the GradientDescentOptions struct given all it's values individually.
Declaration
public GradientDescentOptions(double threshold, int maxIterations, double derivativeStep, double learningRate, double errorThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.Double | threshold | |
System.Int32 | maxIterations | |
System.Double | derivativeStep | |
System.Double | learningRate | |
System.Double | errorThreshold |
Fields
| Improve this Doc View SourceDerivativeStep
Step size to compute partial derivatives.
Declaration
public double DerivativeStep
Field Value
Type | Description |
---|---|
System.Double |
ErrorThreshold
Minimum error to consider the results acceptable.
Declaration
public double ErrorThreshold
Field Value
Type | Description |
---|---|
System.Double |
LearningRate
Scaling factor for the gradient. Effectively speeds up or down the minimization.
Declaration
public double LearningRate
Field Value
Type | Description |
---|---|
System.Double |
Limit
Threshold to stop minimization.
Declaration
public double Limit
Field Value
Type | Description |
---|---|
System.Double |
MaxIterations
Maximum iterations for the gradient descent.
Declaration
public int MaxIterations
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceDefault
Gets a GradientDescentOptions instance with the default values.
Declaration
public static GradientDescentOptions Default { get; }
Property Value
Type | Description |
---|---|
GradientDescentOptions |
DefaultSmall
Gets a GradientDescentOptions instance with small values.
Declaration
public static GradientDescentOptions DefaultSmall { get; }
Property Value
Type | Description |
---|---|
GradientDescentOptions |