public interface IterativeClassifier
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Performs a deep copy of the classifier, and a reference copy
of the training instances (or a deep copy if required).
|
void |
done()
Signal end of iterating, useful for any house-keeping/cleanup
|
void |
initClassifier(Instances instances)
Inits an iterative classifier.
|
void |
next(int iteration)
Performs one iteration.
|
void initClassifier(Instances instances) throws java.lang.Exception
instances
- the instances to be used in inductionjava.lang.Exception
- if the model cannot be initializedvoid next(int iteration) throws java.lang.Exception
iteration
- the index of the current iteration (0-based)java.lang.Exception
- if this iteration failsvoid done() throws java.lang.Exception
java.lang.Exception
- if cleanup failsjava.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException