Package org.biojava.bio.dp
Interface HMMTrainer
- All Known Implementing Classes:
SimpleHMMTrainer
public interface HMMTrainer
interface implemented by objects that train HMMs.
- Author:
- David Huen
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
called to put the trainer into an initial state for a new round of training.
-
Method Details
-
startCycle
void startCycle()called to put the trainer into an initial state for a new round of training. -
recordEmittedSymbol
record that the specified symbol was emitted from the specified state.- Throws:
IllegalSymbolException
-
recordTransition
record that a transition was observed between the specified states.- Throws:
IllegalArgumentException
-
completeCycle
indicate that a cycle of training is completed and the emission/transition matrices should be updated.- Throws:
BioException
-