cc.mallet.classify
Class FeatureSelectingClassifierTrainer

java.lang.Object
  extended by cc.mallet.classify.ClassifierTrainer
      extended by 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
FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer, FeatureSelector featureSelector)
           
 
Method Summary
 Classifier getClassifier()
           
 Classifier train(InstanceList trainingSet)
           
 
Methods inherited from class cc.mallet.classify.ClassifierTrainer
getValidationInstances, isFinishedTraining, setValidationInstances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureSelectingClassifierTrainer

public FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer,
                                         FeatureSelector featureSelector)
Method Detail

getClassifier

public Classifier getClassifier()
Specified by:
getClassifier in class ClassifierTrainer

train

public Classifier train(InstanceList trainingSet)
Specified by:
train in class ClassifierTrainer