Package Bio :: Package HMM :: Module Trainer :: Class TrainingSequence
[hide private]
[frames] | no frames]

Class TrainingSequence

source code

object --+
         |
        TrainingSequence

Hold a training sequence with emissions and optionally, a state path.
    

Instance Methods [hide private]
 
__init__(self, emissions, state_path)
Initialize a training sequence.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, emissions, state_path)
(Constructor)

source code 
Initialize a training sequence.

Arguments:

o emissions - A Seq object containing the sequence of emissions in
the training sequence, and the alphabet of the sequence.

o state_path - A Seq object containing the sequence of states and
the alphabet of the states. If there is no known state path, then
the sequence of states should be an empty string.

Overrides: object.__init__