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, trainpublic BaumWelchSampler(DP dp)
protected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
singleSequenceIteration in class AbstractTrainerIllegalSymbolExceptionIllegalTransitionExceptionIllegalAlphabetExceptionprotected double singleSequenceIteration(ModelTrainer trainer, SymbolList symList, ScoreType scoreType) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
Copyright © 2020 BioJava. All rights reserved.