|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.ClassifierTeacher
public abstract class ClassifierTeacher
Implements the teacher's side of the learner-teacher protocol.
Constructor Summary | |
---|---|
ClassifierTeacher()
|
Method Summary | |
---|---|
protected abstract java.util.Iterator<Example> |
examplePool()
Labeled instances that will be sent to the learner via a call to addExample(). |
protected abstract boolean |
hasAnswers()
Return true if this teacher can answer more queries. |
protected abstract java.util.Iterator<Instance> |
instancePool()
Unlabeled instances, which will be provided to the learner via setInstancePool(). |
protected abstract Example |
labelInstance(Instance query)
Label an Instance chosen by the learner. |
protected abstract ExampleSchema |
schema()
The set of classes that will be used. |
Classifier |
train(ClassifierLearner learner)
Train a ClassifierLearner and return the learned Classifier, using some unspecified source of information to get labels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassifierTeacher()
Method Detail |
---|
public final Classifier train(ClassifierLearner learner)
protected abstract ExampleSchema schema()
protected abstract java.util.Iterator<Example> examplePool()
protected abstract java.util.Iterator<Instance> instancePool()
protected abstract Example labelInstance(Instance query)
protected abstract boolean hasAnswers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |