public class TrainingSetEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_maxRunNumber
Maximum number of runs.
|
protected int |
m_maxSetNumber
Maximum number of sets (ie 10 in a 10 fold)
|
protected int |
m_runNumber
What run number is this training set from.
|
protected int |
m_setNumber
what number is this training set (ie fold 2 of 10 folds)
|
protected Instances |
m_trainingSet
The training instances
|
| Constructor and Description |
|---|
TrainingSetEvent(java.lang.Object source,
Instances trainSet)
Creates a new
TrainingSetEvent |
TrainingSetEvent(java.lang.Object source,
Instances trainSet,
int setNum,
int maxSetNum)
Creates a new
TrainingSetEvent |
TrainingSetEvent(java.lang.Object source,
Instances trainSet,
int runNum,
int maxRunNum,
int setNum,
int maxSetNum)
Creates a new
TrainingSetEvent |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxRunNumber()
Get the maximum number of runs.
|
int |
getMaxSetNumber()
Get the maximum set number
|
int |
getRunNumber()
Get the run number that this training set belongs to.
|
int |
getSetNumber()
Get the set number (eg. fold 2 of a 10 fold split)
|
Instances |
getTrainingSet()
Get the training instances
|
boolean |
isStructureOnly()
Returns true if the encapsulated instances
contain just header information
|
protected Instances m_trainingSet
protected int m_runNumber
protected int m_maxRunNumber
protected int m_setNumber
protected int m_maxSetNumber
public TrainingSetEvent(java.lang.Object source,
Instances trainSet)
TrainingSetEventsource - the source of the eventtrainSet - the training instancespublic TrainingSetEvent(java.lang.Object source,
Instances trainSet,
int setNum,
int maxSetNum)
TrainingSetEventsource - the source of the eventtrainSet - the training instancessetNum - the number of the training setmaxSetNum - the maximum number of setspublic TrainingSetEvent(java.lang.Object source,
Instances trainSet,
int runNum,
int maxRunNum,
int setNum,
int maxSetNum)
TrainingSetEventsource - 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 setspublic Instances getTrainingSet()
Instances valuepublic int getRunNumber()
public int getMaxRunNumber()
public int getSetNumber()
int valuepublic int getMaxSetNumber()
int valuepublic boolean isStructureOnly()