public class BaumWelchSampler extends AbstractTrainer implements Serializable
Train a hidden markov model using a sampling algorithm.
Note: this class currently only works for one-head models.
Constructor and Description |
---|
BaumWelchSampler(DP dp) |
Modifier and Type | Method and Description |
---|---|
protected double |
singleSequenceIteration(ModelTrainer trainer,
SymbolList symList) |
protected double |
singleSequenceIteration(ModelTrainer trainer,
SymbolList symList,
ScoreType scoreType) |
getCurrentScore, getCycle, getDP, getLastScore, train
public BaumWelchSampler(DP dp)
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
singleSequenceIteration
in class AbstractTrainer
IllegalSymbolException
IllegalTransitionException
IllegalAlphabetException
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList, ScoreType scoreType) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
Copyright © 2014 BioJava. All rights reserved.