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

Class weka.gui.beans.BatchClassifierEvent

java.lang.Object
    |
    +----java.util.EventObject
            |
            +----weka.gui.beans.BatchClassifierEvent

public class BatchClassifierEvent
extends java.util.EventObject
Class encapsulating a built classifier and a batch of instances to test on.

Since:
1.0
Version:
$Revision: 1.1 $
Author:
Mark Hall
See Also:
java.util.EventObject

Constructor Index

 o BatchClassifierEvent(Object, Classifier, Instances, int, int)
Creates a new BatchClassifierEvent instance.

Method Index

 o getClassifier()
Get the classifier
 o getMaxSetNumber()
Get the maximum set number (ie the total number of training and testing sets in the series).
 o getSetNumber()
Get the set number (ie which fold this is)
 o getTestSet()
Get the test set

Constructor Detail

 o BatchClassifierEvent
public BatchClassifierEvent(java.lang.Object source,
                            Classifier scheme,
                            Instances tstI,
                            int setNum,
                            int maxSetNum)
          Creates a new BatchClassifierEvent instance.
Parameters:
source - the source object
scheme - a Classifier
tstI - the test instances
setNum - the set number of the test instances
maxSetNum - the last set number in the series

Method Detail

 o getClassifier
public Classifier getClassifier()
          Get the classifier
Returns:
the classifier
 o getTestSet
public Instances getTestSet()
          Get the test set
Returns:
the testing instances
 o getSetNumber
public int getSetNumber()
          Get the set number (ie which fold this is)
Returns:
the set number for the training and testing data sets encapsulated in this event
 o getMaxSetNumber
public int getMaxSetNumber()
          Get the maximum set number (ie the total number of training and testing sets in the series).
Returns:
the maximum set number

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