|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.datagenerators.DataGenerator
weka.datagenerators.ClassificationGenerator
weka.datagenerators.classifiers.classification.LED24
public class LED24
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/.
@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)
| Constructor Summary | |
|---|---|
LED24()
initializes the generator with default values |
|
| Method Summary | |
|---|---|
Instances |
defineDataFormat()
Initializes the format for the dataset produced. |
Instance |
generateExample()
Generates one example of the dataset. |
Instances |
generateExamples()
Generates all examples of the dataset. |
String |
generateFinished()
Generates a comment string that documentats the data generator. |
String |
generateStart()
Generates a comment string that documentates the data generator. |
double |
getNoisePercent()
Gets the noise percentage. |
String[] |
getOptions()
Gets the current settings of the datagenerator. |
String |
getRevision()
Returns the revision string. |
boolean |
getSingleModeFlag()
Return if single mode is set for the given data generator mode depends on option setting and or generator type. |
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. |
String |
globalInfo()
Returns a string describing this data generator. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] args)
Main method for executing this class. |
String |
noisePercentTipText()
Returns the tip text for this property |
void |
setNoisePercent(double value)
Sets the noise percentage. |
void |
setOptions(String[] options)
Parses a list of options for this object. |
| Methods inherited from class weka.datagenerators.ClassificationGenerator |
|---|
getNumExamples, numExamplesTipText, setNumExamples |
| Methods inherited from class weka.datagenerators.DataGenerator |
|---|
debugTipText, defaultOutput, formatTipText, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LED24()
| Method Detail |
|---|
public String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class ClassificationGenerator
public void setOptions(String[] options)
throws Exception
-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 in interface OptionHandlersetOptions in class ClassificationGeneratoroptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class ClassificationGeneratorDataGenerator.removeBlacklist(String[])public double getNoisePercent()
public void setNoisePercent(double value)
value - the noise percentage.public String noisePercentTipText()
public boolean getSingleModeFlag()
throws Exception
getSingleModeFlag in class DataGeneratorException - if mode is not set yet
public Instances defineDataFormat()
throws Exception
defineDataFormat in class DataGeneratorException - if the generating of the format failedDataGenerator.getSeed()
public Instance generateExample()
throws Exception
generateExample in class DataGeneratorException - if the format of the dataset is not yet defined
Exception - if the generator only works with generateExamples
which means in non single mode
public Instances generateExamples()
throws Exception
generateExamples in class DataGeneratorException - if the format of the dataset is not yet defined
Exception - if the generator only works with generateExample,
which means in single modeDataGenerator.getSeed()public String generateStart()
generateStart in class DataGenerator
public String generateFinished()
throws Exception
generateFinished in class DataGeneratorException - if the generating of the documentaion failspublic String getRevision()
getRevision in interface RevisionHandlerpublic static void main(String[] args)
args - should contain arguments for the data producer:
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||