Click or drag to resize
Accord.NET (logo)

BaseBaumWelchLearningTModel, TDistribution, TObservation, TOptions Class

Base class for implementations of the Baum-Welch learning algorithm. This class cannot be instantiated.
Inheritance Hierarchy
SystemObject
  Accord.MachineLearningParallelLearningBase
    Accord.Statistics.Models.Markov.LearningBaseHiddenMarkovModelLearningTModel, TObservation
      Accord.Statistics.Models.Markov.LearningBaseBaumWelchLearningTModel, TDistribution, TObservation, TOptions
        Accord.Statistics.Models.Markov.LearningBaseBaumWelchLearningOptionsTModel, TDistribution, TObservation, TOptions
        Accord.Statistics.Models.Markov.LearningBaumWelchLearningTDistribution, TObservation

Namespace:  Accord.Statistics.Models.Markov.Learning
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public abstract class BaseBaumWelchLearning<TModel, TDistribution, TObservation, TOptions> : BaseHiddenMarkovModelLearning<TModel, TObservation>, 
	IUnsupervisedLearning<TModel, TObservation[], int[]>, IConvergenceLearning
where TModel : HiddenMarkovModel<TDistribution, TObservation>
where TDistribution : Object, IFittableDistribution<TObservation>
where TOptions : class, IFittingOptions
Request Example View Source

Type Parameters

TModel
TDistribution
TObservation
TOptions

The BaseBaumWelchLearningTModel, TDistribution, TObservation, TOptions type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConvergence
Gets or sets convergence parameters.
Public propertyCurrentIteration
Gets or sets the number of performed iterations.
Public propertyEmissions
Gets or sets the function that initializes the emission distributions in the hidden Markov Models.
Public propertyFittingOptions
Gets or sets the distribution fitting options to use when estimating distribution densities during learning.
Public propertyHasConverged
Gets or sets whether the algorithm has converged.
Public propertyIterations Obsolete.
Please use MaxIterations instead.
Public propertyLogGamma
Gets the Gamma matrix of log probabilities created during the last iteration of the Baum-Welch learning algorithm.
Public propertyLogKsi
Gets the Ksi matrix of log probabilities created during the last iteration of the Baum-Welch learning algorithm.
Public propertyLogLikelihood
Gets the log-likelihood of the model at the last iteration.
Public propertyLogWeights
Gets the sample weights in the last iteration of the Baum-Welch learning algorithm.
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 BaseHiddenMarkovModelLearningTModel, TObservation.)
Public propertyNumberOfStates
Gets or sets the number of states to be used when this learning algorithm needs to create new models.
(Inherited from BaseHiddenMarkovModelLearningTModel, TObservation.)
Protected propertyObservations
Gets all observations as a single vector.
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
Public propertyToken
Gets or sets a cancellation token that can be used to cancel the algorithm while it is running.
(Inherited from ParallelLearningBase.)
Public propertyTolerance
Gets or sets the maximum change in the average log-likelihood after an iteration of the algorithm used to detect convergence.
Public propertyTopology
Gets or sets the state transition topology to be used when this learning algorithm needs to create new models. Default is Forward.
(Inherited from BaseHiddenMarkovModelLearningTModel, TObservation.)
Top
Methods
  NameDescription
Protected methodComputeForwardBackward
Computes the forward and backward probabilities matrices for a given observation referenced by its index in the input training data.
Protected methodComputeKsi
Computes the ksi matrix of probabilities for a given observation referenced by its index in the input training data.
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 BaseHiddenMarkovModelLearningTModel, TObservation.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFit
Fits one emission distribution. This method can be override in a base class in order to implement special fitting options.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLearn
Learns a model that can map the given inputs to the desired outputs.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUpdateEmissions
Updates the emission probability matrix.
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