edu.cmu.minorthird.classify
Class BatchBinaryClassifierLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.BatchClassifierLearner
      extended by edu.cmu.minorthird.classify.BatchBinaryClassifierLearner
All Implemented Interfaces:
BinaryClassifierLearner, ClassifierLearner, java.lang.Cloneable
Direct Known Subclasses:
AdaBoost, BatchRankingLearner, DecisionTreeLearner, NegativeBinomialLearner, PoissonLearner, RandomForests, RandomTreeLearner, TweakedLearner

public abstract class BatchBinaryClassifierLearner
extends BatchClassifierLearner
implements BinaryClassifierLearner

Simple abstract class, getBinaryClassifier() method for a BinaryClassifierLearner, and also a batchTrainBinary() method.

Author:
William Cohen

Field Summary
 
Fields inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner
classifier, dataset
 
Constructor Summary
BatchBinaryClassifierLearner()
           
 
Method Summary
 BinaryClassifier batchTrainBinary(Dataset dataset)
          Train a binary classifier.
 BinaryClassifier getBinaryClassifier()
          Get the last-trained a binary classifier.
 ExampleSchema getSchema()
          Returns the ExampleSchema - constraints on what the Examples will be.
 void setSchema(ExampleSchema schema)
          Accept an ExampleSchema - constraints on what the Examples will be.
 
Methods inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner
addExample, batchTrain, completeTraining, copy, getClassifier, hasNextQuery, nextQuery, reset, setInstancePool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.classify.ClassifierLearner
addExample, completeTraining, copy, getClassifier, hasNextQuery, nextQuery, reset, setInstancePool
 

Constructor Detail

BatchBinaryClassifierLearner

public BatchBinaryClassifierLearner()
Method Detail

setSchema

public final void setSchema(ExampleSchema schema)
Description copied from interface: ClassifierLearner
Accept an ExampleSchema - constraints on what the Examples will be.

Specified by:
setSchema in interface ClassifierLearner

getSchema

public final ExampleSchema getSchema()
Description copied from interface: ClassifierLearner
Returns the ExampleSchema - constraints on what the Examples will be.

Specified by:
getSchema in interface ClassifierLearner

batchTrainBinary

public final BinaryClassifier batchTrainBinary(Dataset dataset)
Train a binary classifier.


getBinaryClassifier

public final BinaryClassifier getBinaryClassifier()
Get the last-trained a binary classifier.

Specified by:
getBinaryClassifier in interface BinaryClassifierLearner