类 RegressionGenerator
java.lang.Object
weka.datagenerators.DataGenerator
weka.datagenerators.RegressionGenerator
- 所有已实现的接口:
Serializable
,OptionHandler
,Randomizable
,RevisionHandler
- 直接已知子类:
MexicanHat
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)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
Gets the number of examples, given by option.String[]
Gets the current settings of the classifier.Returns an enumeration describing the available options.Returns the tip text for this propertyvoid
setNumExamples
(int numExamples) Sets the number of examples, given by option.void
setOptions
(String[] options) Sets the options.从类继承的方法 weka.datagenerators.DataGenerator
debugTipText, defaultOutput, defineDataFormat, formatTipText, generateExample, generateExamples, generateFinished, generateStart, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, getSingleModeFlag, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed
从接口继承的方法 weka.core.RevisionHandler
getRevision
-
构造器详细资料
-
RegressionGenerator
public RegressionGenerator()initializes the generator with default values
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中DataGenerator
- 返回:
- an enumeration of all the available options.
-
setOptions
Sets the options.- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中DataGenerator
- 参数:
options
- the options- 抛出:
Exception
- if invalid option
-
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
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-