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 TypeMethodDescriptionvoidindicate that a cycle of training is completed and the emission/transition matrices should be updated.voidrecordEmittedSymbol(State state, Symbol symbol, double weight) record that the specified symbol was emitted from the specified state.voidrecordTransition(State source, State dest, double weight) record that a transition was observed between the specified states.voidcalled 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
-