Click or drag to resize
Accord.NET (logo)

BaseHiddenGradientOptimizationLearningTData, TOptimizer Class

Base class for Hidden Conditional Random Fields learning algorithms based on gradient optimization algorithms.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.Models.Fields.LearningBaseHiddenConditionalRandomFieldLearningTData
    Accord.Statistics.Models.Fields.LearningBaseHiddenGradientOptimizationLearningTData, TOptimizer
      Accord.Statistics.Models.Fields.LearningHiddenConjugateGradientLearningT
      Accord.Statistics.Models.Fields.LearningHiddenQuasiNewtonLearningT

Namespace:  Accord.Statistics.Models.Fields.Learning
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public abstract class BaseHiddenGradientOptimizationLearning<TData, TOptimizer> : BaseHiddenConditionalRandomFieldLearning<TData>, 
	ISupervisedLearning<HiddenConditionalRandomField<TData>, TData[], int>, IParallel, 
	ISupportsCancellation, IHiddenConditionalRandomFieldLearning<TData>, IDisposable
where TOptimizer : IGradientOptimizationMethod, ISupportsCancellation
Request Example View Source

Type Parameters

TData
TOptimizer

The BaseHiddenGradientOptimizationLearningTData, TOptimizer type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFunction (Inherited from BaseHiddenConditionalRandomFieldLearningT.)
Public propertyHasConverged
Gets or sets whether the algorithm has converged.
Public propertyMaxIterations
Gets or sets the maximum number of iterations performed by the learning algorithm.
Public propertyModel
Gets or sets the model being trained.
(Inherited from BaseHiddenConditionalRandomFieldLearningT.)
Public propertyOptimizer
Gets the optimization algorithm being used.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
Public propertyRegularization
Gets or sets the amount of the parameter weights which should be included in the objective function. Default is 0 (do not include regularization).
Public propertyToken
Gets or sets a cancellation token that can be used to stop the learning algorithm while it is running.
(Inherited from BaseHiddenConditionalRandomFieldLearningT.)
Public propertyTolerance
Gets or sets the tolerance value used to determine whether the algorithm has converged.
Top
Methods
  NameDescription
Protected methodCreate
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.
(Inherited from BaseHiddenConditionalRandomFieldLearningT.)
Protected methodCreateOptimizer
Inheritors of this class should create the optimization algorithm in this method, using the current MaxIterations and Tolerance settings.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInnerRun
Runs the learning algorithm.
(Overrides BaseHiddenConditionalRandomFieldLearningTInnerRun(T, Int32).)
Public methodLearn
Learns a model that can map the given inputs to the given outputs.
(Inherited from BaseHiddenConditionalRandomFieldLearningT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRun(TData, Int32)
Online learning is not supported.
Public methodRun(TData, Int32) Obsolete.
Runs the learning algorithm with the specified input training observations and corresponding output labels.
Public methodRunEpoch Obsolete.
Online learning is not supported.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(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.)
Public Extension MethodToTOverloaded.
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.)
Top
See Also