public interface IterativeClassifier extends Classifier
Modifier and Type | Method and Description |
---|---|
void |
done()
Signal end of iterating, for either the time being or permanently if
setFinalized(true) has been called.
|
boolean |
getResume()
Returns true if the classifier will be able to be trained further (with
more iterations) at a later date.
|
void |
initializeClassifier(Instances instances)
Initializes an iterative classifier.
|
boolean |
next()
Performs one iteration.
|
void |
setResume(boolean resume)
If called with argument true then the classifier will be able to be trained
further (with more iterations) at a later date.
|
buildClassifier, classifyInstance, distributionForInstance, getCapabilities
void initializeClassifier(Instances instances) throws java.lang.Exception
instances
- the instances to be used in inductionjava.lang.Exception
- if the model cannot be initializedvoid setResume(boolean resume) throws java.lang.Exception
resume
- true to enable training to continue at a later point after
the initial model is built.java.lang.Exception
- if finalization cannot be setboolean getResume()
java.lang.Exception
- if finalization cannot be setboolean next() throws java.lang.Exception
java.lang.Exception
- if this iteration fails for unexpected reasonsvoid done() throws java.lang.Exception
java.lang.Exception
- if cleanup fails