edu.cmu.minorthird.classify.multi
Class MultiDatasetClassifierTeacher

java.lang.Object
  extended by edu.cmu.minorthird.classify.multi.MultiClassifierTeacher
      extended by edu.cmu.minorthird.classify.multi.MultiDatasetClassifierTeacher

public class MultiDatasetClassifierTeacher
extends MultiClassifierTeacher

Trains a MultiClassifierLearner using the information in a labeled Dataset.

Author:
Cameron Williams

Constructor Summary
MultiDatasetClassifierTeacher(MultiDataset dataset)
           
 
Method Summary
 java.util.Iterator<MultiExample> examplePool()
          Labeled instances that will be sent to the multiLearner via a call to addExample().
 boolean hasAnswers()
          Return true if this teacher can answer more queries.
 java.util.Iterator<Instance> instancePool()
          Unlabeled instances, which will be provided to the multiLearner via setInstancePool().
 MultiExample labelInstance(Instance query)
          Label an Instance chosen by the multiLearner.
 MultiExampleSchema schema()
          The set of classes that will be used.
 
Methods inherited from class edu.cmu.minorthird.classify.multi.MultiClassifierTeacher
train
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiDatasetClassifierTeacher

public MultiDatasetClassifierTeacher(MultiDataset dataset)
Method Detail

schema

public MultiExampleSchema schema()
Description copied from class: MultiClassifierTeacher
The set of classes that will be used.

Specified by:
schema in class MultiClassifierTeacher

examplePool

public java.util.Iterator<MultiExample> examplePool()
Description copied from class: MultiClassifierTeacher
Labeled instances that will be sent to the multiLearner via a call to addExample().

Specified by:
examplePool in class MultiClassifierTeacher

instancePool

public java.util.Iterator<Instance> instancePool()
Description copied from class: MultiClassifierTeacher
Unlabeled instances, which will be provided to the multiLearner via setInstancePool(). These can be used for semi-supervised multiLearner, or to form queries for active learning. .

Specified by:
instancePool in class MultiClassifierTeacher

labelInstance

public MultiExample labelInstance(Instance query)
Description copied from class: MultiClassifierTeacher
Label an Instance chosen by the multiLearner. Return null if the query can't be answered, otherwise return a labeled version of the instance (an Example).

Specified by:
labelInstance in class MultiClassifierTeacher

hasAnswers

public boolean hasAnswers()
Description copied from class: MultiClassifierTeacher
Return true if this teacher can answer more queries.

Specified by:
hasAnswers in class MultiClassifierTeacher