edu.cmu.minorthird.classify.transform
Class TransformingBatchLearner
java.lang.Object
edu.cmu.minorthird.classify.BatchClassifierLearner
edu.cmu.minorthird.classify.transform.TransformingBatchLearner
- All Implemented Interfaces:
- ClassifierLearner, java.lang.Cloneable
- Direct Known Subclasses:
- Recommended.KnnLearner
public class TransformingBatchLearner
- extends BatchClassifierLearner
Learns to first transforming data with an InstanceTransform, then classify
it.
- Author:
- William Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformingBatchLearner
public TransformingBatchLearner()
TransformingBatchLearner
public TransformingBatchLearner(InstanceTransformLearner transformLearner,
BatchClassifierLearner classifierLearner)
setTransformLearner
public void setTransformLearner(InstanceTransformLearner learner)
getTransformLearner
public InstanceTransformLearner getTransformLearner()
setClassifierLearner
public void setClassifierLearner(BatchClassifierLearner learner)
getClassifierLearner
public BatchClassifierLearner getClassifierLearner()
setSchema
public void setSchema(ExampleSchema schema)
- Description copied from interface:
ClassifierLearner
- Accept an ExampleSchema - constraints on what the
Examples will be.
getSchema
public ExampleSchema getSchema()
- Description copied from interface:
ClassifierLearner
- Returns the ExampleSchema - constraints on what the
Examples will be.
batchTrain
public Classifier batchTrain(Dataset dataset)
- Description copied from class:
BatchClassifierLearner
- subclasses should use this method to implement a batch supervised learning algorithm.
- Specified by:
batchTrain
in class BatchClassifierLearner