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, train
public BaumWelchTrainer(DP dp)
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
singleSequenceIteration
in class AbstractTrainer
IllegalSymbolException
IllegalTransitionException
IllegalAlphabetException
public double mathExp(double arg)
Copyright © 2014 BioJava. All rights reserved.