类 Agrawal
java.lang.Object
weka.datagenerators.DataGenerator
weka.datagenerators.ClassificationGenerator
weka.datagenerators.classifiers.classification.Agrawal
Generates a people database and is based on the paper by Agrawal et al.:
R. Agrawal, T. Imielinski, A. Swami (1993). Database Mining: A Performance Perspective. IEEE Transactions on Knowledge and Data Engineering. 5(6):914-925. URL http://www.almaden.ibm.com/software/quest/Publications/ByDate.html. BibTeX:
R. Agrawal, T. Imielinski, A. Swami (1993). Database Mining: A Performance Perspective. IEEE Transactions on Knowledge and Data Engineering. 5(6):914-925. URL http://www.almaden.ibm.com/software/quest/Publications/ByDate.html. BibTeX:
@article{Agrawal1993, author = {R. Agrawal and T. Imielinski and A. Swami}, journal = {IEEE Transactions on Knowledge and Data Engineering}, note = {Special issue on Learning and Discovery in Knowledge-Based Databases}, number = {6}, pages = {914-925}, title = {Database Mining: A Performance Perspective}, volume = {5}, year = {1993}, URL = {http://www.almaden.ibm.com/software/quest/Publications/ByDate.html}, PDF = {http://www.almaden.ibm.com/software/quest/Publications/papers/tkde93.pdf} }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)
-F <num> The function to use for generating the data. (default 1)
-B Whether to balance the class.
-P <num> The perturbation factor. (default 0.05)
- 版本:
- $Revision: 1.6 $
- 作者:
- Richard Kirkby (rkirkby at cs dot waikato dot ac dot nz), FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
function 1static final int
function 10static final int
function 2static final int
function 3static final int
function 4static final int
function 5static final int
function 6static final int
function 7static final int
function 8static final int
function 9static final Tag[]
the funtion tags -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyInitializes the format for the dataset produced.Returns the tip text for this propertyGenerates one example of the dataset.Generates all examples of the dataset.Generates a comment string that documentats the data generator.Generates a comment string that documentates the data generator.boolean
Gets whether the class is balanced.Gets the function for generating the data.String[]
Gets the current settings of the datagenerator.double
Gets the perturbation fraction.Returns the revision string.boolean
Return if single mode is set for the given data generator mode depends on option setting and or generator type.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.Returns a string describing this data generator.Returns an enumeration describing the available options.static void
Main method for executing this class.Returns the tip text for this propertyvoid
setBalanceClass
(boolean value) Sets whether the class is balanced.void
setFunction
(SelectedTag value) Sets the function for generating the data.void
setOptions
(String[] options) Parses a list of options for this object.void
setPerturbationFraction
(double value) Sets the perturbation fraction.从类继承的方法 weka.datagenerators.ClassificationGenerator
getNumExamples, numExamplesTipText, setNumExamples
从类继承的方法 weka.datagenerators.DataGenerator
debugTipText, defaultOutput, formatTipText, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed
-
字段详细资料
-
FUNCTION_1
public static final int FUNCTION_1function 1- 另请参阅:
-
FUNCTION_2
public static final int FUNCTION_2function 2- 另请参阅:
-
FUNCTION_3
public static final int FUNCTION_3function 3- 另请参阅:
-
FUNCTION_4
public static final int FUNCTION_4function 4- 另请参阅:
-
FUNCTION_5
public static final int FUNCTION_5function 5- 另请参阅:
-
FUNCTION_6
public static final int FUNCTION_6function 6- 另请参阅:
-
FUNCTION_7
public static final int FUNCTION_7function 7- 另请参阅:
-
FUNCTION_8
public static final int FUNCTION_8function 8- 另请参阅:
-
FUNCTION_9
public static final int FUNCTION_9function 9- 另请参阅:
-
FUNCTION_10
public static final int FUNCTION_10function 10- 另请参阅:
-
FUNCTION_TAGS
the funtion tags
-
-
构造器详细资料
-
Agrawal
public Agrawal()initializes the generator with default values
-
-
方法详细资料
-
globalInfo
Returns a string describing this data generator.- 返回:
- a description of the data generator suitable for displaying in the explorer/experimenter gui
-
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
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中ClassificationGenerator
- 返回:
- an enumeration of all the available options
-
setOptions
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)
-F <num> The function to use for generating the data. (default 1)
-B Whether to balance the class.
-P <num> The perturbation factor. (default 0.05)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中ClassificationGenerator
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the datagenerator.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中ClassificationGenerator
- 返回:
- an array of strings suitable for passing to setOptions
- 另请参阅:
-
DataGenerator.removeBlacklist(String[])
-
getFunction
Gets the function for generating the data.- 返回:
- the function.
- 另请参阅:
-
setFunction
Sets the function for generating the data.- 参数:
value
- the function.- 另请参阅:
-
functionTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getBalanceClass
public boolean getBalanceClass()Gets whether the class is balanced.- 返回:
- whether the class is balanced.
-
setBalanceClass
public void setBalanceClass(boolean value) Sets whether the class is balanced.- 参数:
value
- whether to balance the class.
-
balanceClassTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getPerturbationFraction
public double getPerturbationFraction()Gets the perturbation fraction.- 返回:
- the perturbation fraction.
-
setPerturbationFraction
public void setPerturbationFraction(double value) Sets the perturbation fraction.- 参数:
value
- the perturbation fraction.
-
perturbationFractionTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getSingleModeFlag
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
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
Generates one example of the dataset.- 指定者:
generateExample
在类中DataGenerator
- 返回:
- the generated example
- 抛出:
Exception
- if the format of the dataset is not yet definedException
- if the generator only works with generateExamples which means in non single mode
-
generateExamples
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 definedException
- if the generator only works with generateExample, which means in single mode- 另请参阅:
-
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
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
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Main method for executing this class.- 参数:
args
- should contain arguments for the data producer:
-