Package weka.gui.beans
Class BatchClustererEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.BatchClustererEvent
- All Implemented Interfaces:
Serializable
Class encapsulating a built clusterer and a batch of instances to
test on.
- Since:
- 1.0
- Version:
- $Revision: 8034 $
- Author:
- Stefan Mutter
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBatchClustererEvent
(Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain) Creates a newBatchClustererEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the clustererint
Get the maximum set number (ie the total number of training and testing sets in the series).int
Get the set number (ie which fold this is)int
Get whether the set of instances is a test or a training setGet the training/test setMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
TEST
public static int TEST -
TRAINING
public static int TRAINING
-
-
Constructor Details
-
BatchClustererEvent
public BatchClustererEvent(Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain) Creates a newBatchClustererEvent
instance.- Parameters:
source
- the source objectscheme
- a ClusterertstI
- the training/test instancessetNum
- the set number of the training/testinstancesmaxSetNum
- the last set number in the seriestestOrTrain
- 0 if the set is a test set, >0 if it is a training set
-
-
Method Details
-
getClusterer
Get the clusterer- Returns:
- the clusterer
-
getTestSet
Get the training/test set- Returns:
- the training/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
-
getTestOrTrain
public int getTestOrTrain()Get whether the set of instances is a test or a training set- Returns:
- 0 for test set, >0 fro training set
-