Package weka.gui.beans
Class BatchClassifierEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.BatchClassifierEvent
- All Implemented Interfaces:
Serializable
Class encapsulating a built classifier and a batch of instances to test on.
- Since:
- 1.0
- Version:
- $Revision: 9263 $
- Author:
- Mark Hall
- See Also:
-
Constructor Summary
ConstructorDescriptionBatchClassifierEvent
(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. -
Method Summary
Modifier and TypeMethodDescriptionGet the classifierlong
getLabel()
Get the label for this eventint
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
Set the label for this event.void
setTestSet
(DataSetEvent tse) Set the test setvoid
setTrainSet
(DataSetEvent tse) Set the training setMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
BatchClassifierEvent
public BatchClassifierEvent(Object source, Classifier scheme, DataSetEvent trsI, DataSetEvent tstI, int setNum, int maxSetNum) Creates a newBatchClassifierEvent
instance.- Parameters:
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.- Parameters:
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
-
-
Method Details
-
setLabel
Set the label for this event.- Parameters:
lab
- the label to use
-
getLabel
Get the label for this event- Returns:
- the label for this event
-
getClassifier
Get the classifier- Returns:
- the classifier
-
setClassifier
Set the classifier- Parameters:
classifier
- the classifier
-
setTestSet
Set the test set- Parameters:
tse
- the test set
-
getTestSet
Get the test set- Returns:
- the test set
-
setTrainSet
Set the training set- Parameters:
tse
- the training set
-
getTrainSet
Get the train set- Returns:
- the training set
-
getRunNumber
public int getRunNumber()Get the run number.- Returns:
- the run number
-
getMaxRunNumber
public int getMaxRunNumber()Get the maximum run number- Returns:
- the maximum run number
-
getSetNumber
public int getSetNumber()Get the set number (ie which fold this is)- Returns:
- 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).- Returns:
- the maximum set number
-
setGroupIdentifier
public void setGroupIdentifier(long identifier) -
getGroupIdentifier
public long getGroupIdentifier()
-