类 RegressionGenerator

java.lang.Object
weka.datagenerators.DataGenerator
weka.datagenerators.RegressionGenerator
所有已实现的接口:
Serializable, OptionHandler, Randomizable, RevisionHandler
直接已知子类:
MexicanHat

public abstract class RegressionGenerator extends DataGenerator
Abstract class for data generators for regression classifiers.

Example usage as the main of a datagenerator called RandomGenerator:

 public static void main(String[] args) {
   try {
     DataGenerator.makeData(new RandomGenerator(), args);
   } 
   catch (Exception e) {
     e.printStackTrace();
     System.err.println(e.getMessage());
   }
 }
 
版本:
$Revision: 1.3 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • RegressionGenerator

      public RegressionGenerator()
      initializes the generator with default values
  • 方法详细资料

    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 DataGenerator
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Sets the options.
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 DataGenerator
      参数:
      options - the options
      抛出:
      Exception - if invalid option
    • getOptions

      public String[] getOptions()
      Gets the current settings of the classifier.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 DataGenerator
      返回:
      an array of strings suitable for passing to setOptions
      另请参阅:
      • DataGenerator.removeBlacklist(String[])
    • setNumExamples

      public void setNumExamples(int numExamples)
      Sets the number of examples, given by option.
      参数:
      numExamples - the new number of examples
    • getNumExamples

      public int getNumExamples()
      Gets the number of examples, given by option.
      返回:
      the number of examples, given by option
    • numExamplesTipText

      public String numExamplesTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui