Click or drag to resize
Accord.NET (logo)

ForwardBackwardGradientT Class

Linear Gradient calculator class for Hidden Conditional Random Fields.
Inheritance Hierarchy
SystemObject
  Accord.MachineLearningParallelLearningBase
    Accord.Statistics.Models.Fields.LearningForwardBackwardGradientT

Namespace:  Accord.Statistics.Models.Fields.Learning
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public class ForwardBackwardGradient<T> : ParallelLearningBase, 
	IHiddenRandomFieldGradient, IDisposable
Request Example View Source

Type Parameters

T
The type of the observations being modeled.

The ForwardBackwardGradientT type exposes the following members.

Constructors
  NameDescription
Public methodForwardBackwardGradientT
Initializes a new instance of the ForwardBackwardGradientT class.
Public methodForwardBackwardGradientT(HiddenConditionalRandomFieldT)
Initializes a new instance of the ForwardBackwardGradientT class.
Top
Properties
  NameDescription
Public propertyInputs
Gets or sets the inputs to be used in the next call to the Objective or Gradient functions.
Public propertyLastError
Gets the error computed in the last call to the gradient or objective functions.
Public propertyModel
Gets the model being trained.
Public propertyOutputs
Gets or sets the outputs to be used in the next call to the Objective or Gradient functions.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
Public propertyParameters
Gets or sets the current parameter vector for the model being learned.
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 cancel the algorithm while it is running.
(Inherited from ParallelLearningBase.)
Top
Methods
  NameDescription
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
Releases unmanaged resources and performs other cleanup operations before the ForwardBackwardGradientT is reclaimed by garbage collection.
(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.)
Public methodGradient
Computes the gradient using the input/outputs stored in this object. This method is thread-safe.
Public methodGradient(Double)
Computes the gradient using the input/outputs stored in this object. This method is not thread safe.
Public methodGradient(Double, T, Int32)
Computes the gradient (vector of derivatives) vector for the cost function, which may be used to guide optimization.
Public methodGradient(Double, T, Int32)
Computes the gradient (vector of derivatives) vector for the cost function, which may be used to guide optimization.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObjective
Computes the objective (cost) function for the Hidden Conditional Random Field (negative log-likelihood) using the input/outputs stored in this object.
Public methodObjective(Double)
Computes the objective (cost) function for the Hidden Conditional Random Field (negative log-likelihood) using the input/outputs stored in this object.
Public methodObjective(Double, T, Int32)
Computes the objective (cost) function for the Hidden Conditional Random Field (negative log-likelihood).
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