Package cc.mallet.classify
Class FeatureSelectingClassifierTrainer
- java.lang.Object
-
- cc.mallet.classify.ClassifierTrainer
-
- cc.mallet.classify.FeatureSelectingClassifierTrainer
-
public class FeatureSelectingClassifierTrainer extends ClassifierTrainer
Adaptor for adding feature selection to a classifier 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 FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer, FeatureSelector featureSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classifier
getClassifier()
Classifier
train(InstanceList trainingSet)
-
Methods inherited from class cc.mallet.classify.ClassifierTrainer
getValidationInstances, isFinishedTraining, setValidationInstances
-
-
-
-
Constructor Detail
-
FeatureSelectingClassifierTrainer
public FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer, FeatureSelector featureSelector)
-
-
Method Detail
-
getClassifier
public Classifier getClassifier()
- Specified by:
getClassifier
in classClassifierTrainer
-
train
public Classifier train(InstanceList trainingSet)
- Specified by:
train
in classClassifierTrainer
-
-