biopython v1.71.0 Bio.HMM.Trainer.KnownStateTrainer
Estimate probabilities with known state sequences.
This should be used for direct estimation of emission and transition probabilities when both the state path and emission sequence are known for the training examples.
Link to this section Summary
Link to this section Functions
Add emissions from the training sequence to the current counts.
- training_seq — A TrainingSequence with states and emissions to get the counts from
- emission_counts — The current emission counts to add to.
Add transitions from the training sequence to the current counts.
- state_seq — A Seq object with the states of the current training sequence.
- transition_counts — The current transition counts to add to.
Estimate the Markov Model parameters with known state paths.
This trainer requires that both the state and the emissions are known for all of the training sequences in the list of TrainingSequence objects. This training will then count all of the transitions and emissions, and use this to estimate the parameters of the model.