BaseViterbiLearningT Class |
Namespace: Accord.Statistics.Models.Markov.Learning
The BaseViterbiLearningT type exposes the following members.
Name | Description | |
---|---|---|
BaseViterbiLearningT |
Creates a new instance of the Viterbi learning algorithm.
|
Name | Description | |
---|---|---|
Batches |
Gets or sets on how many batches the learning data should be divided during learning.
Batches are used to estimate adequately the first models so they can better compute
the Viterbi paths for subsequent passes of the algorithm. Default is 1.
| |
CurrentIteration |
Gets the current iteration.
| |
HasConverged |
Gets a value indicating whether this instance has converged.
| |
Iterations | Obsolete.
Please use MaxIterations instead.
| |
MaxIterations |
Gets or sets the maximum number of iterations
performed by the learning algorithm.
| |
Token |
Gets or sets a cancellation token that can be used to
stop the learning algorithm while it is running.
| |
Tolerance |
Gets or sets the maximum change in the average log-likelihood
after an iteration of the algorithm used to detect convergence.
|
Name | Description | |
---|---|---|
ComputeLogLikelihood |
Computes the log-likelihood for the current model for the given observations.
| |
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.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Run |
Runs the learning algorithm.
| |
RunEpoch |
Runs one single epoch (iteration) of the learning algorithm.
| |
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.) |
This class uses a template method pattern so specialized classes can be written for each kind of hidden Markov model emission density (either discrete or continuous).
For the actual Viterbi classes, please refer to ViterbiLearning or ViterbiLearningTDistribution. For other kinds of algorithms, please see BaumWelchLearning and MaximumLikelihoodLearning and their generic counter-parts.