Class RegressionGenerator

  • All Implemented Interfaces:
    Serializable, OptionHandler, Randomizable, RevisionHandler
    Direct Known Subclasses:
    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());
       }
     }
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • RegressionGenerator

        public RegressionGenerator()
        initializes the generator with default values
    • Method Detail

      • setNumExamples

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

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

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