程序包 weka.gui.beans
类 BatchClustererEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.BatchClustererEvent
- 所有已实现的接口:
Serializable
Class encapsulating a built clusterer and a batch of instances to
test on.
- 从以下版本开始:
- 1.0
- 版本:
- $Revision: 1.4 $
- 作者:
- Stefan Mutter
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明BatchClustererEvent
(Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain) Creates a newBatchClustererEvent
instance. -
方法概要
修饰符和类型方法说明Get 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 set从类继承的方法 java.util.EventObject
getSource, toString
-
字段详细资料
-
TEST
public static int TEST -
TRAINING
public static int TRAINING
-
-
构造器详细资料
-
BatchClustererEvent
public BatchClustererEvent(Object source, Clusterer scheme, DataSetEvent tstI, int setNum, int maxSetNum, int testOrTrain) Creates a newBatchClustererEvent
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 set
-
-
方法详细资料
-
getClusterer
Get the clusterer- 返回:
- the clusterer
-
getTestSet
Get the training/test set- 返回:
- the training/testing instances
-
getSetNumber
public int getSetNumber()Get the set number (ie which fold this is)- 返回:
- 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).- 返回:
- the maximum set number
-
getTestOrTrain
public int getTestOrTrain()Get whether the set of instances is a test or a training set- 返回:
- 0 for test set, >0 fro training set
-