程序包 weka.gui.beans

类 TrainTestSplitMaker

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, BeanCommon, DataSourceListener, EventConstraints, TestSetListener, TestSetProducer, TrainingSetListener, TrainingSetProducer, UserRequestAcceptor, Visible

Bean that accepts data sets, training sets, test sets and produces both a training and test set by randomly spliting the data
版本:
$Revision: 7059 $
作者:
Mark Hall
另请参阅:
  • 构造器详细资料

    • TrainTestSplitMaker

      public TrainTestSplitMaker()
  • 方法详细资料

    • setCustomName

      public void setCustomName(String name)
      Set a custom (descriptive) name for this bean
      指定者:
      setCustomName 在接口中 BeanCommon
      参数:
      name - the name to use
    • getCustomName

      public String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      指定者:
      getCustomName 在接口中 BeanCommon
      返回:
      the custom name (or the default name)
    • globalInfo

      public String globalInfo()
      Global info for this bean
      返回:
      a String value
    • trainPercentTipText

      public String trainPercentTipText()
      Tip text info for this property
      返回:
      a String value
    • setTrainPercent

      public void setTrainPercent(double newTrainPercent)
      Set the percentage of data to be in the training portion of the split
      参数:
      newTrainPercent - an int value
    • getTrainPercent

      public double getTrainPercent()
      Get the percentage of the data that will be in the training portion of the split
      返回:
      an int value
    • seedTipText

      public String seedTipText()
      Tip text for this property
      返回:
      a String value
    • setSeed

      public void setSeed(int newSeed)
      Set the random seed
      参数:
      newSeed - an int value
    • getSeed

      public int getSeed()
      Get the value of the random seed
      返回:
      an int value
    • acceptTrainingSet

      public void acceptTrainingSet(TrainingSetEvent e)
      Accept a training set
      指定者:
      acceptTrainingSet 在接口中 TrainingSetListener
      参数:
      e - a TrainingSetEvent value
    • acceptTestSet

      public void acceptTestSet(TestSetEvent e)
      Accept a test set
      指定者:
      acceptTestSet 在接口中 TestSetListener
      参数:
      e - a TestSetEvent value
    • acceptDataSet

      public void acceptDataSet(DataSetEvent e)
      Accept a data set
      指定者:
      acceptDataSet 在接口中 DataSourceListener
      指定者:
      acceptDataSet 在类中 AbstractTrainAndTestSetProducer
      参数:
      e - a DataSetEvent value
    • stop

      public void stop()
      Stop processing
      指定者:
      stop 在接口中 BeanCommon
      指定者:
      stop 在类中 AbstractTrainAndTestSetProducer
    • isBusy

      public boolean isBusy()
      Returns true if. at this time, the bean is busy with some (i.e. perhaps a worker thread is performing some calculation).
      指定者:
      isBusy 在接口中 BeanCommon
      返回:
      true if the bean is busy.
    • enumerateRequests

      public Enumeration enumerateRequests()
      Get list of user requests
      指定者:
      enumerateRequests 在接口中 UserRequestAcceptor
      返回:
      an Enumeration value
    • performRequest

      public void performRequest(String request)
      Perform the named request
      指定者:
      performRequest 在接口中 UserRequestAcceptor
      参数:
      request - a String value
      抛出:
      IllegalArgumentException - if an error occurs
    • eventGeneratable

      public boolean eventGeneratable(String eventName)
      Returns true, if at the current time, the named event could be generated. Assumes that the supplied event name is an event that could be generated by this bean
      指定者:
      eventGeneratable 在接口中 EventConstraints
      参数:
      eventName - the name of the event in question
      返回:
      true if the named event could be generated at this point in time