public class BaumWelchTrainer extends AbstractTrainer implements Serializable
Train a hidden markov model using maximum likelihood.
Note: this class currently only works for one-head models.
| Constructor and Description | 
|---|
| BaumWelchTrainer(DP dp) | 
| Modifier and Type | Method and Description | 
|---|---|
| double | mathExp(double arg) | 
| protected double | singleSequenceIteration(ModelTrainer trainer,
                       SymbolList symList) | 
getCurrentScore, getCycle, getDP, getLastScore, trainpublic BaumWelchTrainer(DP dp)
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
singleSequenceIteration in class AbstractTrainerIllegalSymbolExceptionIllegalTransitionExceptionIllegalAlphabetExceptionpublic double mathExp(double arg)
Copyright © 2020 BioJava. All rights reserved.