weka.classifiers

## Interface IterativeClassifier

- All Superinterfaces:
    Classifier
  All Known Implementing Classes:
    AdaBoostM1, AdditiveRegression, FilteredClassifier, LogitBoost, RandomizableFilteredClassifier

      public interface IterativeClassifier
      extends Classifier

  Interface for classifiers that can induce models of growing complexity one step at a time.
  Version:
    $Revision: 10861 $
  Author:
    Gabi Schmidberger (gabi@cs.waikato.ac.nz), Bernhard Pfahringer (bernhard@cs.waikato.ac.nz)

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `done()` Signal end of iterating, useful for any house-keeping/cleanup
    `void` | `initializeClassifier(Instances instances)` Initializes an iterative classifier.
    `boolean` | `next()` Performs one iteration.

    - ### Methods inherited from interface weka.classifiers.Classifier

      `buildClassifier, classifyInstance, distributionForInstance, getCapabilities`

- - ### Method Detail

    - #### initializeClassifier

          void initializeClassifier(Instances instances)
                             throws java.lang.Exception

      Initializes an iterative classifier.
      Parameters:
        `instances` - the instances to be used in induction
      Throws:
        `java.lang.Exception` - if the model cannot be initialized

    - #### next

          boolean next()
                throws java.lang.Exception

      Performs one iteration.
      Returns:
        false if no further iterations could be performed, true otherwise
      Throws:
        `java.lang.Exception` - if this iteration fails for unexpected reasons

    - #### done

          void done()
             throws java.lang.Exception

      Signal end of iterating, useful for any house-keeping/cleanup
      Throws:
        `java.lang.Exception` - if cleanup fails