程序包 weka.gui.beans
类 BatchClassifierEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.BatchClassifierEvent
- 所有已实现的接口:
Serializable
Class encapsulating a built classifier and a batch of instances to
test on.
- 从以下版本开始:
- 1.0
- 版本:
- $Revision: 5782 $
- 作者:
- Mark Hall
- 另请参阅:
-
构造器概要
构造器构造器说明BatchClassifierEvent
(Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int setNum, int maxSetNum) Creates a newBatchClassifierEvent
instance.BatchClassifierEvent
(Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int runNum, int maxRunNum, int setNum, int maxSetNum) Creates a newBatchClassifierEvent
instance. -
方法概要
修饰符和类型方法说明Get the classifierlong
int
Get the maximum run numberint
Get the maximum set number (ie the total number of training and testing sets in the series).int
Get the run number.int
Get the set number (ie which fold this is)Get the test setGet the train setvoid
setClassifier
(Classifier classifier) Set the classifiervoid
setGroupIdentifier
(long identifier) void
setTestSet
(DataSetEvent tse) Set the test setvoid
setTrainSet
(DataSetEvent tse) Set the training set从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
BatchClassifierEvent
public BatchClassifierEvent(Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int setNum, int maxSetNum) Creates a newBatchClassifierEvent
instance.- 参数:
source
- the source objectscheme
- a ClassifiertrsI
- the training instances used to train the classifiertstI
- the test instancessetNum
- the set number of the test instancesmaxSetNum
- the last set number in the series
-
BatchClassifierEvent
public BatchClassifierEvent(Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int runNum, int maxRunNum, int setNum, int maxSetNum) Creates a newBatchClassifierEvent
instance.- 参数:
source
- the source objectscheme
- a ClassifiertrsI
- the training instances used to train the classifiertstI
- the test instancesrunNum
- the run numbermaxRunNum
- the maximum run numbersetNum
- the set number of the test instancesmaxSetNum
- the last set number in the series
-
-
方法详细资料
-
getClassifier
Get the classifier- 返回:
- the classifier
-
setClassifier
Set the classifier- 参数:
classifier
- the classifier
-
setTestSet
Set the test set- 参数:
tse
- the test set
-
getTestSet
Get the test set- 返回:
- the test set
-
setTrainSet
Set the training set- 参数:
tse
- the training set
-
getTrainSet
Get the train set- 返回:
- the training set
-
getRunNumber
public int getRunNumber()Get the run number.- 返回:
- the run number
-
getMaxRunNumber
public int getMaxRunNumber()Get the maximum run number- 返回:
- the maximum run number
-
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
-
setGroupIdentifier
public void setGroupIdentifier(long identifier) -
getGroupIdentifier
public long getGroupIdentifier()
-