Forward Class |
Namespace: Accord.Statistics.Models.Markov.Topology
The Forward type exposes the following members.
Name | Description | |
---|---|---|
Forward(Int32) |
Creates a new Forward topology for a given number of states.
| |
Forward(Int32, Boolean) |
Creates a new Forward topology for a given number of states.
| |
Forward(Int32, Int32) |
Creates a new Forward topology for a given number of states.
| |
Forward(Int32, Int32, Boolean) |
Creates a new Forward topology for a given number of states.
|
Name | Description | |
---|---|---|
Deepness |
Gets or sets the maximum deepness level allowed
for the forward state transition chains.
| |
Initial |
Gets the initial state probabilities.
| |
Random |
Gets or sets whether the transition matrix
should be initialized with random probabilities
or not. Default is false.
| |
States |
Gets the number of states in this topology.
|
Name | Description | |
---|---|---|
Create |
Creates the state transitions matrix and the
initial state probabilities for this topology.
| |
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.) | |
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.) |
Forward topologies are commonly used to initialize models in which training sequences can be organized in samples, such as in the recognition of spoken words. In spoken word recognition, several examples of a single word can (and should) be used to train a single model, to achieve the most general model able to generalize over a great number of word samples.
Forward models can typically have a large number of states.
References:
In the following example, we will create a Forward-only discrete-density hidden Markov model.
// Create a new Forward-only hidden Markov model with // three forward-only states and four sequence symbols. var model = new HiddenMarkovModel(new Forward(3), 4); // After creation, the state transition matrix for the model // should be given by: // // { 0.33, 0.33, 0.33 } // { 0.00, 0.50, 0.50 } // { 0.00, 0.00, 1.00 } // // in which no backward transitions are allowed (have zero probability).