|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.ClassifierTeacher edu.cmu.minorthird.classify.DatasetClassifierTeacher
public class DatasetClassifierTeacher
Trains a ClassifierLearner using the information in a labeled Dataset.
Constructor Summary | |
---|---|
DatasetClassifierTeacher(Dataset dataset)
|
|
DatasetClassifierTeacher(Dataset dataset,
boolean activeLearning)
|
Method Summary | |
---|---|
java.util.Iterator<Example> |
examplePool()
Labeled instances that will be sent to the learner 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 learner via setInstancePool(). |
Example |
labelInstance(Instance query)
Label an Instance chosen by the learner. |
static void |
main(java.lang.String[] argv)
|
ExampleSchema |
schema()
The set of classes that will be used. |
Methods inherited from class edu.cmu.minorthird.classify.ClassifierTeacher |
---|
train |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatasetClassifierTeacher(Dataset dataset)
public DatasetClassifierTeacher(Dataset dataset, boolean activeLearning)
activeLearning
- if true, all learning is active - ie nothing is
pushed at the learner, everything must be 'pulled' via queries.
if false, all examples fron the dataset are 'pushed' at the learner
via addExample.Method Detail |
---|
public ExampleSchema schema()
ClassifierTeacher
schema
in class ClassifierTeacher
public java.util.Iterator<Example> examplePool()
ClassifierTeacher
examplePool
in class ClassifierTeacher
public java.util.Iterator<Instance> instancePool()
ClassifierTeacher
instancePool
in class ClassifierTeacher
public Example labelInstance(Instance query)
ClassifierTeacher
labelInstance
in class ClassifierTeacher
public boolean hasAnswers()
ClassifierTeacher
hasAnswers
in class ClassifierTeacher
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |