程序包 weka.gui.beans

类 TestSetEvent

java.lang.Object
java.util.EventObject
weka.gui.beans.TestSetEvent
所有已实现的接口:
Serializable

public class TestSetEvent extends EventObject
Event encapsulating a test set
版本:
$Revision: 4761 $
作者:
Mark Hall
另请参阅:
  • 构造器详细资料

    • TestSetEvent

      public TestSetEvent(Object source, Instances testSet)
      Creates a new TestSetEvent
      参数:
      source - the source of the event
      testSet - the test instances
    • TestSetEvent

      public TestSetEvent(Object source, Instances testSet, int setNum, int maxSetNum)
      Creates a new TestSetEvent
      参数:
      source - the source of the event
      testSet - the test instances
      setNum - the number of the test set
      maxSetNum - the maximum number of sets
    • TestSetEvent

      public TestSetEvent(Object source, Instances testSet, int runNum, int maxRunNum, int setNum, int maxSetNum)
      Creates a new TestSetEvent
      参数:
      source - the source of the event
      testSet - the test instances
      runNum - the run number that the test set belongs to
      maxRunNum - the maximum run number
      setNum - the number of the test set
      maxSetNum - the maximum number of sets
  • 方法详细资料

    • getTestSet

      public Instances getTestSet()
      Get the test set instances
      返回:
      an Instances value
    • getRunNumber

      public int getRunNumber()
      Get the run number that this training set belongs to.
      返回:
      the run number for this training set.
    • getMaxRunNumber

      public int getMaxRunNumber()
      Get the maximum number of runs.
      返回:
      return the maximum number of runs.
    • getSetNumber

      public int getSetNumber()
      Get the test set number (eg. fold 2 of a 10 fold split)
      返回:
      an int value
    • getMaxSetNumber

      public int getMaxSetNumber()
      Get the maximum set number
      返回:
      an int value
    • isStructureOnly

      public boolean isStructureOnly()
      Returns true if the encapsulated instances contain just header information
      返回:
      true if only header information is available in this DataSetEvent