|
|||||||||
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.StackedClassifierTeacher edu.cmu.minorthird.classify.StackedDatasetClassifierTeacher
public class StackedDatasetClassifierTeacher
Trains a StackedClassifierLearner using the information in a labeled relational Dataset.
Constructor Summary | |
---|---|
StackedDatasetClassifierTeacher(Dataset dataset)
|
|
StackedDatasetClassifierTeacher(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(). |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAggregators()
The Aggregators for stacked graphical learning |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<java.lang.String>>> |
getLinksMap()
The linkMaps for stacked graphical learning |
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.StackedClassifierTeacher |
---|
trainStacked |
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 StackedDatasetClassifierTeacher(Dataset dataset)
public StackedDatasetClassifierTeacher(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.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<java.lang.String>>> getLinksMap()
StackedClassifierTeacher
getLinksMap
in class StackedClassifierTeacher
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAggregators()
StackedClassifierTeacher
getAggregators
in class StackedClassifierTeacher
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 |