edu.cmu.minorthird.classify
Class BatchBinaryClassifierLearner
java.lang.Object
edu.cmu.minorthird.classify.BatchClassifierLearner
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchBinaryClassifierLearner
public BatchBinaryClassifierLearner()
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