Package cc.mallet.classify
Class BaggingTrainer
- java.lang.Object
-
- cc.mallet.classify.ClassifierTrainer<BaggingClassifier>
-
- cc.mallet.classify.BaggingTrainer
-
public class BaggingTrainer extends ClassifierTrainer<BaggingClassifier>
Bagging Trainer.- Author:
- Andrew McCallum mccallum@cs.umass.edu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cc.mallet.classify.ClassifierTrainer
ClassifierTrainer.ByActiveLearning<C extends Classifier>, ClassifierTrainer.ByIncrements<C extends Classifier>, ClassifierTrainer.ByInstanceIncrements<C extends Classifier>, ClassifierTrainer.ByOptimization<C extends Classifier>, ClassifierTrainer.Factory<CT extends ClassifierTrainer<? extends Classifier>>
-
-
Field Summary
-
Fields inherited from class cc.mallet.classify.ClassifierTrainer
finishedTraining, validationSet
-
-
Constructor Summary
Constructors Constructor Description BaggingTrainer(ClassifierTrainer.Factory underlyingTrainerFactory)
BaggingTrainer(ClassifierTrainer.Factory underlyingTrainerFactory, int numBags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaggingClassifier
getClassifier()
BaggingClassifier
train(InstanceList trainingList)
-
Methods inherited from class cc.mallet.classify.ClassifierTrainer
getValidationInstances, isFinishedTraining, setValidationInstances
-
-
-
-
Constructor Detail
-
BaggingTrainer
public BaggingTrainer(ClassifierTrainer.Factory underlyingTrainerFactory, int numBags)
-
BaggingTrainer
public BaggingTrainer(ClassifierTrainer.Factory underlyingTrainerFactory)
-
-
Method Detail
-
getClassifier
public BaggingClassifier getClassifier()
- Specified by:
getClassifier
in classClassifierTrainer<BaggingClassifier>
-
train
public BaggingClassifier train(InstanceList trainingList)
- Specified by:
train
in classClassifierTrainer<BaggingClassifier>
-
-