edu.umass.cs.mallet.base.classify
Class FeatureSelectingClassifierTrainer

java.lang.Object
  extended byedu.umass.cs.mallet.base.classify.ClassifierTrainer
      extended byedu.umass.cs.mallet.base.classify.FeatureSelectingClassifierTrainer

public class FeatureSelectingClassifierTrainer
extends ClassifierTrainer

Adaptor for adding feature selection to a classifier trainer.


Constructor Summary
FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer, FeatureSelector featureSelector)
           
 
Method Summary
 Classifier train(InstanceList trainingSet, InstanceList validationSet, InstanceList testSet, ClassifierEvaluating evaluator, Classifier initialClassifier)
          Return a new classifier tuned using the three arguments.
 
Methods inherited from class edu.umass.cs.mallet.base.classify.ClassifierTrainer
main, toString, train, train, train, train
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureSelectingClassifierTrainer

public FeatureSelectingClassifierTrainer(ClassifierTrainer underlyingTrainer,
                                         FeatureSelector featureSelector)
Method Detail

train

public Classifier train(InstanceList trainingSet,
                        InstanceList validationSet,
                        InstanceList testSet,
                        ClassifierEvaluating evaluator,
                        Classifier initialClassifier)
Description copied from class: ClassifierTrainer
Return a new classifier tuned using the three arguments.

Specified by:
train in class ClassifierTrainer
Parameters:
trainingSet - examples used to set parameters.
validationSet - examples used to tune meta-parameters. May be null.
testSet - examples not examined at all for training, but passed on to diagnostic routines. May be null.
initialClassifier - training process may start from here. The parameters of the initialClassifier are not modified. May be null.