BaseStochasticGradientDescentTModel, TKernel, TInput, TLoss Class |
Namespace: Accord.MachineLearning.VectorMachines.Learning
public abstract class BaseStochasticGradientDescent<TModel, TKernel, TInput, TLoss> : BinaryLearningBase<TModel, TInput>, ICloneable where TModel : SupportVectorMachine<TKernel, TInput> where TKernel : struct, new(), ILinear<TInput> where TInput : IList, ICloneable where TLoss : struct, new(), IDifferentiableLoss<bool, double, double>
The BaseStochasticGradientDescentTModel, TKernel, TInput, TLoss type exposes the following members.
Name | Description | |
---|---|---|
BaseStochasticGradientDescentTModel, TKernel, TInput, TLoss |
Initializes a new instance of the BaseStochasticGradientDescentTModel, TKernel, TInput, TLoss class.
|
Name | Description | |
---|---|---|
Iterations | Obsolete.
Please use MaxIterations instead.
| |
Kernel |
Gets or sets the kernel function use to create a
kernel Support Vector Machine.
| |
Lambda |
Gets or sets the lambda regularization term. Default is 0.5.
| |
LearningRate |
Gets or sets the learning rate for the SGD algorithm.
| |
Loss |
Gets or sets the loss function to be used.
Default is to use the LogisticLoss.
| |
MaxIterations |
Gets or sets the number of iterations that should be
performed by the algorithm when calling Learn(TInput, Boolean, Double).
Default is 0 (iterate until convergence).
| |
Model |
Gets or sets the classifier being learned.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Token |
Gets or sets a cancellation token that can be used to
stop the learning algorithm while it is running.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Tolerance |
Gets or sets the maximum relative change in the watched value
after an iteration of the algorithm used to detect convergence.
Default is 1e-5.
|
Name | Description | |
---|---|---|
Clone |
Creates a new object that is a copy of the current instance.
| |
Create |
Creates an instance of the model to be learned. Inheritors
of this abstract class must define this method so new models
can be created from the training data.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InnerClone |
Inheritors should implement this function to produce a new
instance with the same characteristics of the current object.
| |
Learn(TInput, Boolean, Double) |
Learns a model that can map the given inputs to the given outputs.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Learn(TInput, Double, Double) |
Learns a model that can map the given inputs to the given outputs.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Learn(TInput, Int32, Double) |
Learns a model that can map the given inputs to the given outputs.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Learn(TInput, Int32, Double) |
Learns a model that can map the given inputs to the given outputs.
(Inherited from BinaryLearningBaseTModel, TInput.) | |
Learn(TInput, Boolean, Double) |
Learns a model that can map the given inputs to the given outputs.
(Overrides BinaryLearningBaseTModel, TInputLearn(TInput, Boolean, Double).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |