cc.mallet.classify
Class ClassifierTrainer<C extends Classifier>
java.lang.Object
cc.mallet.classify.ClassifierTrainer<C>
- Direct Known Subclasses:
- AdaBoostM2Trainer, AdaBoostTrainer, BaggingTrainer, BalancedWinnowTrainer, C45Trainer, ClassifierEnsembleTrainer, ConfidencePredictingClassifierTrainer, DecisionTreeTrainer, FeatureSelectingClassifierTrainer, MaxEntGERangeTrainer, MaxEntGETrainer, MaxEntPRTrainer, MaxEntTrainer, MCMaxEntTrainer, NaiveBayesEMTrainer, NaiveBayesTrainer, WinnowTrainer
public abstract class ClassifierTrainer<C extends Classifier>
- extends java.lang.Object
Each ClassifierTrainer trains one Classifier based on various interfaces for consuming training data.
If you want an object that can train be asked to train on multiple different training sets and
yield different classifiers, you probably want a ClassifierTrainer.Factory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validationSet
protected InstanceList validationSet
finishedTraining
protected boolean finishedTraining
ClassifierTrainer
public ClassifierTrainer()
isFinishedTraining
public boolean isFinishedTraining()
getClassifier
public abstract C getClassifier()
train
public abstract C train(InstanceList trainingSet)
setValidationInstances
public void setValidationInstances(InstanceList validationSet)
getValidationInstances
public InstanceList getValidationInstances()