Package weka.gui.beans
Class TrainingSetEvent
- java.lang.Object
-
- java.util.EventObject
-
- weka.gui.beans.TrainingSetEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class TrainingSetEvent extends java.util.EventObject
Event encapsulating a training set- Version:
- $Revision: 4761 $
- Author:
- Mark Hall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TrainingSetEvent(java.lang.Object source, Instances trainSet)
Creates a newTrainingSetEvent
TrainingSetEvent(java.lang.Object source, Instances trainSet, int setNum, int maxSetNum)
Creates a newTrainingSetEvent
TrainingSetEvent(java.lang.Object source, Instances trainSet, int runNum, int maxRunNum, int setNum, int maxSetNum)
Creates a newTrainingSetEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxRunNumber()
Get the maximum number of runs.int
getMaxSetNumber()
Get the maximum set numberint
getRunNumber()
Get the run number that this training set belongs to.int
getSetNumber()
Get the set number (eg.Instances
getTrainingSet()
Get the training instancesboolean
isStructureOnly()
Returns true if the encapsulated instances contain just header information
-
-
-
Constructor Detail
-
TrainingSetEvent
public TrainingSetEvent(java.lang.Object source, Instances trainSet)
Creates a newTrainingSetEvent
- Parameters:
source
- the source of the eventtrainSet
- the training instances
-
TrainingSetEvent
public TrainingSetEvent(java.lang.Object source, Instances trainSet, int setNum, int maxSetNum)
Creates a newTrainingSetEvent
- Parameters:
source
- the source of the eventtrainSet
- the training instancessetNum
- the number of the training setmaxSetNum
- the maximum number of sets
-
TrainingSetEvent
public TrainingSetEvent(java.lang.Object source, Instances trainSet, int runNum, int maxRunNum, int setNum, int maxSetNum)
Creates a newTrainingSetEvent
- Parameters:
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
-
-
Method Detail
-
getTrainingSet
public Instances getTrainingSet()
Get the training instances- Returns:
- an
Instances
value
-
getRunNumber
public int getRunNumber()
Get the run number that this training set belongs to.- Returns:
- the run number for this training set.
-
getMaxRunNumber
public int getMaxRunNumber()
Get the maximum number of runs.- Returns:
- return the maximum number of runs.
-
getSetNumber
public int getSetNumber()
Get the set number (eg. fold 2 of a 10 fold split)- Returns:
- an
int
value
-
getMaxSetNumber
public int getMaxSetNumber()
Get the maximum set number- Returns:
- an
int
value
-
isStructureOnly
public boolean isStructureOnly()
Returns true if the encapsulated instances contain just header information- Returns:
- true if only header information is available in this DataSetEvent
-
-