Package weka.gui.beans
Class TestSetEvent
- java.lang.Object
-
- java.util.EventObject
-
- weka.gui.beans.TestSetEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class TestSetEvent extends java.util.EventObjectEvent encapsulating a test set- Version:
- $Revision: 4761 $
- Author:
- Mark Hall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestSetEvent(java.lang.Object source, Instances testSet)Creates a newTestSetEventTestSetEvent(java.lang.Object source, Instances testSet, int setNum, int maxSetNum)Creates a newTestSetEventTestSetEvent(java.lang.Object source, Instances testSet, int runNum, int maxRunNum, int setNum, int maxSetNum)Creates a newTestSetEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxRunNumber()Get the maximum number of runs.intgetMaxSetNumber()Get the maximum set numberintgetRunNumber()Get the run number that this training set belongs to.intgetSetNumber()Get the test set number (eg.InstancesgetTestSet()Get the test set instancesbooleanisStructureOnly()Returns true if the encapsulated instances contain just header information
-
-
-
Constructor Detail
-
TestSetEvent
public TestSetEvent(java.lang.Object source, Instances testSet)Creates a newTestSetEvent- Parameters:
source- the source of the eventtestSet- the test instances
-
TestSetEvent
public TestSetEvent(java.lang.Object source, Instances testSet, int setNum, int maxSetNum)Creates a newTestSetEvent- Parameters:
source- the source of the eventtestSet- the test instancessetNum- the number of the test setmaxSetNum- the maximum number of sets
-
TestSetEvent
public TestSetEvent(java.lang.Object source, Instances testSet, int runNum, int maxRunNum, int setNum, int maxSetNum)Creates a newTestSetEvent- Parameters:
source- the source of the eventtestSet- the test instancesrunNum- the run number that the test set belongs tomaxRunNum- the maximum run numbersetNum- the number of the test setmaxSetNum- the maximum number of sets
-
-
Method Detail
-
getTestSet
public Instances getTestSet()
Get the test set instances- Returns:
- an
Instancesvalue
-
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 test set number (eg. fold 2 of a 10 fold split)- Returns:
- an
intvalue
-
getMaxSetNumber
public int getMaxSetNumber()
Get the maximum set number- Returns:
- an
intvalue
-
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
-
-