public class BatchClustererEvent extends EventObject
EventObject,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Clusterer |
m_clusterer
The clusterer
|
protected int |
m_maxSetNumber
The last set number for this series
|
protected int |
m_setNumber
The set number for the test set
|
protected int |
m_testOrTrain
Indicates if m_testSet is a training or a test set.
|
protected DataSetEvent |
m_testSet
Training or Test Instances
|
static int |
TEST |
static int |
TRAINING |
source| Constructor and Description |
|---|
BatchClustererEvent(Object source,
Clusterer scheme,
DataSetEvent tstI,
int setNum,
int maxSetNum,
int testOrTrain)
Creates a new
BatchClustererEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
Clusterer |
getClusterer()
Get the clusterer
|
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)
|
int |
getTestOrTrain()
Get whether the set of instances is a test or a training set
|
DataSetEvent |
getTestSet()
Get the training/test set
|
getSource, toStringprotected Clusterer m_clusterer
protected DataSetEvent m_testSet
protected int m_setNumber
protected int m_testOrTrain
protected int m_maxSetNumber
public static int TEST
public static int TRAINING
public BatchClustererEvent(Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain)
BatchClustererEvent instance.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 setpublic Clusterer getClusterer()
public DataSetEvent getTestSet()
public int getSetNumber()
public int getMaxSetNumber()
public int getTestOrTrain()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.