All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Interface weka.classifiers.IterativeClassifier


public interface IterativeClassifier
Interface for classifiers that can induce models of growing complexity one step at a time.

Version:
$Revision: 1.1 $
Author:
Gabi Schmidberger (gabi@cs.waikato.ac.nz)
Author:
Bernhard Pfahringer (bernhard@cs.waikato.ac.nz)

Method Index

 o clone()
Performs a deep copy of the classifier, and a reference copy of the training instances (or a deep copy if required).
 o done()
Signal end of iterating, useful for any house-keeping/cleanup
 o initClassifier(Instances)
Inits an iterative classifier.
 o next(int)
Performs one iteration.

Method Detail

 o initClassifier
public void initClassifier(Instances instances) throws java.lang.Exception
          Inits an iterative classifier.
Parameters:
instances - the instances to be used in induction
Throws:
java.lang.Exception - if the model cannot be initialized
 o next
public void next(int iteration) throws java.lang.Exception
          Performs one iteration.
Parameters:
iteration - the index of the current iteration (0-based)
Throws:
java.lang.Exception - if this iteration fails
 o done
public void done() throws java.lang.Exception
          Signal end of iterating, useful for any house-keeping/cleanup
Throws:
java.lang.Exception - if cleanup fails
 o clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
          Performs a deep copy of the classifier, and a reference copy of the training instances (or a deep copy if required).
Returns:
a clone of the classifier

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home