所有已实现的接口:
Serializable, OptionHandler, Randomizable, RevisionHandler, TechnicalInformationHandler

public class LED24 extends ClassificationGenerator implements TechnicalInformationHandler
This generator produces data for a display with 7 LEDs. The original output consists of 10 concepts and 7 boolean attributes. Here, in addition to the 7 necessary boolean attributes, 17 other, irrelevant boolean attributes with random values are added to make it harder. By default 10 percent of noise are added to the data.

More information can be found here:
L. Breiman J.H. Friedman R.A. Olshen, C.J. Stone (1984). Classification and Regression Trees. Belmont, California. URL http://www.ics.uci.edu/~mlearn/databases/led-display-creator/.

Link:
http://www.ics.uci.edu/~mlearn/databases/led-display-creator/

BibTeX:

 @inbook{Olshen1984,
    address = {Belmont, California},
    author = {L. Breiman J.H. Friedman R.A. Olshen and C.J. Stone},
    pages = {43-49},
    publisher = {Wadsworth International Group},
    title = {Classification and Regression Trees},
    year = {1984},
    ISBN = {0412048418},
    URL = {http://www.ics.uci.edu/\~mlearn/databases/led-display-creator/}
 }
 

Valid options are:

 -h
  Prints this help.
 -o <file>
  The name of the output file, otherwise the generated data is
  printed to stdout.
 -r <name>
  The name of the relation.
 -d
  Whether to print debug informations.
 -S
  The seed for random function (default 1)
 -n <num>
  The number of examples to generate (default 100)
 -N <num>
  The noise percentage. (default 10.0)
版本:
$Revision: 1.6 $
作者:
Richard Kirkby (rkirkby at cs dot waikato dot ac dot nz), FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • LED24

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

    • globalInfo

      public String globalInfo()
      Returns a string describing this data generator.
      返回:
      a description of the data generator suitable for displaying in the explorer/experimenter gui
    • getTechnicalInformation

      public TechnicalInformation getTechnicalInformation()
      Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
      指定者:
      getTechnicalInformation 在接口中 TechnicalInformationHandler
      返回:
      the technical information about this class
    • listOptions

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

      public void setOptions(String[] options) throws Exception
      Parses a list of options for this object.

      Valid options are:

       -h
        Prints this help.
       -o <file>
        The name of the output file, otherwise the generated data is
        printed to stdout.
       -r <name>
        The name of the relation.
       -d
        Whether to print debug informations.
       -S
        The seed for random function (default 1)
       -n <num>
        The number of examples to generate (default 100)
       -N <num>
        The noise percentage. (default 10.0)
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 ClassificationGenerator
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

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

      public double getNoisePercent()
      Gets the noise percentage.
      返回:
      the noise percentage.
    • setNoisePercent

      public void setNoisePercent(double value)
      Sets the noise percentage.
      参数:
      value - the noise percentage.
    • noisePercentTipText

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

      public boolean getSingleModeFlag() throws Exception
      Return if single mode is set for the given data generator mode depends on option setting and or generator type.
      指定者:
      getSingleModeFlag 在类中 DataGenerator
      返回:
      single mode flag
      抛出:
      Exception - if mode is not set yet
    • defineDataFormat

      public Instances defineDataFormat() throws Exception
      Initializes the format for the dataset produced. Must be called before the generateExample or generateExamples methods are used. Re-initializes the random number generator with the given seed.
      覆盖:
      defineDataFormat 在类中 DataGenerator
      返回:
      the format for the dataset
      抛出:
      Exception - if the generating of the format failed
      另请参阅:
    • generateExample

      public Instance generateExample() throws Exception
      Generates one example of the dataset.
      指定者:
      generateExample 在类中 DataGenerator
      返回:
      the generated example
      抛出:
      Exception - if the format of the dataset is not yet defined
      Exception - if the generator only works with generateExamples which means in non single mode
    • generateExamples

      public Instances generateExamples() throws Exception
      Generates all examples of the dataset. Re-initializes the random number generator with the given seed, before generating instances.
      指定者:
      generateExamples 在类中 DataGenerator
      返回:
      the generated dataset
      抛出:
      Exception - if the format of the dataset is not yet defined
      Exception - if the generator only works with generateExample, which means in single mode
      另请参阅:
    • generateStart

      public String generateStart()
      Generates a comment string that documentates the data generator. By default this string is added at the beginning of the produced output as ARFF file type, next after the options.
      指定者:
      generateStart 在类中 DataGenerator
      返回:
      string contains info about the generated rules
    • generateFinished

      public String generateFinished() throws Exception
      Generates a comment string that documentats the data generator. By default this string is added at the end of theproduces output as ARFF file type.
      指定者:
      generateFinished 在类中 DataGenerator
      返回:
      string contains info about the generated rules
      抛出:
      Exception - if the generating of the documentaion fails
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] args)
      Main method for executing this class.
      参数:
      args - should contain arguments for the data producer: