程序包 weka.gui.beans
类 TrainingSetEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.TrainingSetEvent
- 所有已实现的接口:
Serializable
Event encapsulating a training set
-
构造器概要
构造器构造器说明TrainingSetEvent
(Object source, Instances trainSet) Creates a newTrainingSetEvent
TrainingSetEvent
(Object source, Instances trainSet, int setNum, int maxSetNum) Creates a newTrainingSetEvent
TrainingSetEvent
(Object source, Instances trainSet, int runNum, int maxRunNum, int setNum, int maxSetNum) Creates a newTrainingSetEvent
-
方法概要
修饰符和类型方法说明int
Get the maximum number of runs.int
Get the maximum set numberint
Get the run number that this training set belongs to.int
Get the set number (eg.Get the training instancesboolean
Returns true if the encapsulated instances contain just header information从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
TrainingSetEvent
Creates a newTrainingSetEvent
- 参数:
source
- the source of the eventtrainSet
- the training instances
-
TrainingSetEvent
Creates a newTrainingSetEvent
- 参数:
source
- the source of the eventtrainSet
- the training instancessetNum
- the number of the training setmaxSetNum
- the maximum number of sets
-
TrainingSetEvent
public TrainingSetEvent(Object source, Instances trainSet, int runNum, int maxRunNum, int setNum, int maxSetNum) Creates a newTrainingSetEvent
- 参数:
source
- the source of the eventtrainSet
- the training instancesrunNum
- the run number that the training set belongs tomaxRunNum
- the maximum run numbersetNum
- the number of the training setmaxSetNum
- the maximum number of sets
-
-
方法详细资料
-
getTrainingSet
Get the training instances- 返回:
- an
Instances
value
-
getRunNumber
public int getRunNumber()Get the run number that this training set belongs to.- 返回:
- the run number for this training set.
-
getMaxRunNumber
public int getMaxRunNumber()Get the maximum number of runs.- 返回:
- return the maximum number of runs.
-
getSetNumber
public int getSetNumber()Get the set number (eg. fold 2 of a 10 fold split)- 返回:
- an
int
value
-
getMaxSetNumber
public int getMaxSetNumber()Get the maximum set number- 返回:
- an
int
value
-
isStructureOnly
public boolean isStructureOnly()Returns true if the encapsulated instances contain just header information- 返回:
- true if only header information is available in this DataSetEvent
-