public abstract class AbstractTrainer extends Object implements TrainingAlgorithm
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTrainer() |
|
AbstractTrainer(DP dp) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrentScore() |
int |
getCycle() |
DP |
getDP() |
double |
getLastScore() |
protected abstract double |
singleSequenceIteration(ModelTrainer trainer,
SymbolList symList) |
void |
train(SequenceDB db,
double nullModelWeight,
StoppingCriteria stopper)
Trains the sequences in db until stopper says to finnish.
|
public AbstractTrainer(DP dp)
protected AbstractTrainer()
public double getLastScore()
getLastScore in interface TrainingAlgorithmpublic double getCurrentScore()
getCurrentScore in interface TrainingAlgorithmpublic int getCycle()
getCycle in interface TrainingAlgorithmpublic DP getDP()
getDP in interface TrainingAlgorithmprotected abstract double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
public void train(SequenceDB db, double nullModelWeight, StoppingCriteria stopper) throws IllegalSymbolException, BioException
train in interface TrainingAlgorithmIllegalSymbolExceptionBioExceptionCopyright © 2020 BioJava. All rights reserved.