public class SimpleHMMTrainer extends Object implements HMMTrainer
| Constructor and Description |
|---|
SimpleHMMTrainer(MarkovModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeCycle()
indicate that a cycle of training is completed and the
emission/transition matrices should be updated.
|
void |
recordEmittedSymbol(State state,
Symbol symbol,
double weight)
record that the specified symbol was emitted from the specified state.
|
void |
recordTransition(State source,
State dest,
double weight)
record that a transition was observed between the specified states.
|
void |
startCycle()
called to put the trainer into an initial state for a new
round of training.
|
public SimpleHMMTrainer(MarkovModel model) throws IllegalSymbolException
IllegalSymbolExceptionpublic void startCycle()
HMMTrainerstartCycle in interface HMMTrainerpublic void recordEmittedSymbol(State state, Symbol symbol, double weight) throws IllegalSymbolException
HMMTrainerrecordEmittedSymbol in interface HMMTrainerIllegalSymbolExceptionpublic void recordTransition(State source, State dest, double weight) throws IllegalArgumentException
HMMTrainerrecordTransition in interface HMMTrainerIllegalArgumentExceptionpublic void completeCycle() throws BioException
HMMTrainercompleteCycle in interface HMMTrainerBioExceptionCopyright © 2014 BioJava. All rights reserved.