|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassifierLearner
Learn an Classifier. This describes the learner's side of the protocol used to communicate between "learners" and "teachers".
Method Summary | |
---|---|
void |
addExample(Example answeredQuery)
Accept a labeled example. |
void |
completeTraining()
Accept a signal that no more training data is available. |
ClassifierLearner |
copy()
Make a copy of the learner. |
Classifier |
getClassifier()
Return the learned classifier. |
ExampleSchema |
getSchema()
Returns the ExampleSchema - constraints on what the Examples will be. |
boolean |
hasNextQuery()
Returns true if the learner has more queries to answer. |
Instance |
nextQuery()
Returns an Instance for which the learner would like a label. |
void |
reset()
Forget everything and prepare for a new learning session. |
void |
setInstancePool(java.util.Iterator<Instance> i)
Accept a set of unlabeled instances. |
void |
setSchema(ExampleSchema schema)
Accept an ExampleSchema - constraints on what the Examples will be. |
Method Detail |
---|
void setSchema(ExampleSchema schema)
ExampleSchema getSchema()
void reset()
ClassifierLearner copy()
void setInstancePool(java.util.Iterator<Instance> i)
Learners need not make use of the instance pool.
boolean hasNextQuery()
Learners may always return 'false', if they are not active.
Instance nextQuery()
This will only be called if hasNextQuery() returns true.
void addExample(Example answeredQuery)
All learners must provide a non-trivial implementation of addExample.
void completeTraining()
Classifier getClassifier()
All learners must implement this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |