Package org.biojava.bio.dp
Class BaumWelchTrainer
java.lang.Object
org.biojava.bio.dp.AbstractTrainer
org.biojava.bio.dp.BaumWelchTrainer
- All Implemented Interfaces:
Serializable
,TrainingAlgorithm
Train a hidden markov model using maximum likelihood.
Note: this class currently only works for one-head models.
- Since:
- 1.0
- Author:
- Matthew Pocock, Thomas Down, Todd Riley
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
mathExp
(double arg) protected double
singleSequenceIteration
(ModelTrainer trainer, SymbolList symList) Methods inherited from class org.biojava.bio.dp.AbstractTrainer
getCurrentScore, getCycle, getDP, getLastScore, train
-
Constructor Details
-
BaumWelchTrainer
-
-
Method Details
-
singleSequenceIteration
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException - Specified by:
singleSequenceIteration
in classAbstractTrainer
- Throws:
IllegalSymbolException
IllegalTransitionException
IllegalAlphabetException
-
mathExp
-