public class BatchClassifierEvent
extends java.util.EventObject
EventObject
,
Serialized FormConstructor and Description |
---|
BatchClassifierEvent(java.lang.Object source,
Classifier scheme,
DataSetEvent trsI,
DataSetEvent tstI,
int setNum,
int maxSetNum)
Creates a new
BatchClassifierEvent instance. |
BatchClassifierEvent(java.lang.Object source,
Classifier scheme,
DataSetEvent trsI,
DataSetEvent tstI,
int runNum,
int maxRunNum,
int setNum,
int maxSetNum)
Creates a new
BatchClassifierEvent instance. |
Modifier and Type | Method and Description |
---|---|
Classifier |
getClassifier()
Get the classifier
|
long |
getGroupIdentifier() |
java.lang.String |
getLabel()
Get the label for this event
|
int |
getMaxRunNumber()
Get the maximum run number
|
int |
getMaxSetNumber()
Get the maximum set number (ie the total number of training and testing
sets in the series).
|
int |
getRunNumber()
Get the run number.
|
int |
getSetNumber()
Get the set number (ie which fold this is)
|
DataSetEvent |
getTestSet()
Get the test set
|
DataSetEvent |
getTrainSet()
Get the train set
|
void |
setClassifier(Classifier classifier)
Set the classifier
|
void |
setGroupIdentifier(long identifier) |
void |
setLabel(java.lang.String lab)
Set the label for this event.
|
void |
setTestSet(DataSetEvent tse)
Set the test set
|
void |
setTrainSet(DataSetEvent tse)
Set the training set
|
public BatchClassifierEvent(java.lang.Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int setNum, int maxSetNum)
BatchClassifierEvent
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 seriespublic BatchClassifierEvent(java.lang.Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int runNum, int maxRunNum, int setNum, int maxSetNum)
BatchClassifierEvent
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 seriespublic void setLabel(java.lang.String lab)
lab
- the label to usepublic java.lang.String getLabel()
public Classifier getClassifier()
public void setClassifier(Classifier classifier)
classifier
- the classifierpublic void setTestSet(DataSetEvent tse)
tse
- the test setpublic DataSetEvent getTestSet()
public void setTrainSet(DataSetEvent tse)
tse
- the training setpublic DataSetEvent getTrainSet()
public int getRunNumber()
public int getMaxRunNumber()
public int getSetNumber()
public int getMaxSetNumber()
public void setGroupIdentifier(long identifier)
public long getGroupIdentifier()