weka.gui.beans
Class BatchClassifierEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byweka.gui.beans.BatchClassifierEvent
All Implemented Interfaces:
java.io.Serializable

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.2 $
Author:
Mark Hall
See Also:
EventObject, Serialized Form

Field Summary
protected  Classifier m_classifier
          The classifier
protected  int m_maxSetNumber
          The last set number for this series
protected  int m_setNumber
          The set number for the test set
protected  Instances m_testSet
          Instances that can be used for testing the classifier
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BatchClassifierEvent(java.lang.Object source, Classifier scheme, Instances tstI, int setNum, int maxSetNum)
          Creates a new BatchClassifierEvent instance.
 
Method Summary
 Classifier getClassifier()
          Get the classifier
 int getMaxSetNumber()
          Get the maximum set number (ie the total number of training and testing sets in the series).
 int getSetNumber()
          Get the set number (ie which fold this is)
 Instances getTestSet()
          Get the test set
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_classifier

protected Classifier m_classifier
The classifier


m_testSet

protected Instances m_testSet
Instances that can be used for testing the classifier


m_setNumber

protected int m_setNumber
The set number for the test set


m_maxSetNumber

protected int m_maxSetNumber
The last set number for this series

Constructor Detail

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

getClassifier

public Classifier getClassifier()
Get the classifier

Returns:
the classifier

getTestSet

public Instances getTestSet()
Get the test set

Returns:
the testing instances

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

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