📄 rdg1.html
字号:
<pre> -r <name> The name of the relation.</pre> <pre> -d Whether to print debug informations.</pre> <pre> -S The seed for random function (default 1)</pre> <pre> -n <num> The number of examples to generate (default 100)</pre> <pre> -a <num> The number of attributes (default 10).</pre> <pre> -c <num> The number of classes (default 2)</pre> <pre> -R <num> maximum size for rules (default 10) </pre> <pre> -M <num> minimum size for rules (default 1) </pre> <pre> -I <num> number of irrelevant attributes (default 0)</pre> <pre> -N number of numeric attributes (default 0)</pre> <pre> -V switch on voting (default is no voting)</pre> <!-- options-end --><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/datagenerators/ClassificationGenerator.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../../weka/datagenerators/ClassificationGenerator.html" title="class in weka.datagenerators">ClassificationGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of the datagenerator RDG1.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/datagenerators/ClassificationGenerator.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../../weka/datagenerators/ClassificationGenerator.html" title="class in weka.datagenerators">ClassificationGenerator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions<DT><B>See Also:</B><DD><A HREF="../../../../weka/datagenerators/DataGenerator.html#removeBlacklist(java.lang.String[])"><CODE>DataGenerator.removeBlacklist(String[])</CODE></A></DL></DD></DL><HR><A NAME="setNumAttributes(int)"><!-- --></A><H3>setNumAttributes</H3><PRE>public void <B>setNumAttributes</B>(int numAttributes)</PRE><DL><DD>Sets the number of attributes the dataset should have.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numAttributes</CODE> - the new number of attributes</DL></DD></DL><HR><A NAME="getNumAttributes()"><!-- --></A><H3>getNumAttributes</H3><PRE>public int <B>getNumAttributes</B>()</PRE><DL><DD>Gets the number of attributes that should be produced.<P><DD><DL><DT><B>Returns:</B><DD>the number of attributes that should be produced</DL></DD></DL><HR><A NAME="numAttributesTipText()"><!-- --></A><H3>numAttributesTipText</H3><PRE>public java.lang.String <B>numAttributesTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setNumClasses(int)"><!-- --></A><H3>setNumClasses</H3><PRE>public void <B>setNumClasses</B>(int numClasses)</PRE><DL><DD>Sets the number of classes the dataset should have.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numClasses</CODE> - the new number of classes</DL></DD></DL><HR><A NAME="getNumClasses()"><!-- --></A><H3>getNumClasses</H3><PRE>public int <B>getNumClasses</B>()</PRE><DL><DD>Gets the number of classes the dataset should have.<P><DD><DL><DT><B>Returns:</B><DD>the number of classes the dataset should have</DL></DD></DL><HR><A NAME="numClassesTipText()"><!-- --></A><H3>numClassesTipText</H3><PRE>public java.lang.String <B>numClassesTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getMaxRuleSize()"><!-- --></A><H3>getMaxRuleSize</H3><PRE>public int <B>getMaxRuleSize</B>()</PRE><DL><DD>Gets the maximum number of tests in rules.<P><DD><DL><DT><B>Returns:</B><DD>the maximum number of tests allowed in rules</DL></DD></DL><HR><A NAME="setMaxRuleSize(int)"><!-- --></A><H3>setMaxRuleSize</H3><PRE>public void <B>setMaxRuleSize</B>(int newMaxRuleSize)</PRE><DL><DD>Sets the maximum number of tests in rules.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newMaxRuleSize</CODE> - new maximum number of tests allowed in rules.</DL></DD></DL><HR><A NAME="maxRuleSizeTipText()"><!-- --></A><H3>maxRuleSizeTipText</H3><PRE>public java.lang.String <B>maxRuleSizeTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getMinRuleSize()"><!-- --></A><H3>getMinRuleSize</H3><PRE>public int <B>getMinRuleSize</B>()</PRE><DL><DD>Gets the minimum number of tests in rules.<P><DD><DL><DT><B>Returns:</B><DD>the minimum number of tests allowed in rules</DL></DD></DL><HR><A NAME="setMinRuleSize(int)"><!-- --></A><H3>setMinRuleSize</H3><PRE>public void <B>setMinRuleSize</B>(int newMinRuleSize)</PRE><DL><DD>Sets the minimum number of tests in rules.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newMinRuleSize</CODE> - new minimum number of test in rules.</DL></DD></DL><HR><A NAME="minRuleSizeTipText()"><!-- --></A><H3>minRuleSizeTipText</H3><PRE>public java.lang.String <B>minRuleSizeTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getNumIrrelevant()"><!-- --></A><H3>getNumIrrelevant</H3><PRE>public int <B>getNumIrrelevant</B>()</PRE><DL><DD>Gets the number of irrelevant attributes.<P><DD><DL><DT><B>Returns:</B><DD>the number of irrelevant attributes</DL></DD></DL><HR><A NAME="setNumIrrelevant(int)"><!-- --></A><H3>setNumIrrelevant</H3><PRE>public void <B>setNumIrrelevant</B>(int newNumIrrelevant)</PRE><DL><DD>Sets the number of irrelevant attributes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newNumIrrelevant</CODE> - the number of irrelevant attributes.</DL></DD></DL><HR><A NAME="numIrrelevantTipText()"><!-- --></A><H3>numIrrelevantTipText</H3><PRE>public java.lang.String <B>numIrrelevantTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getNumNumeric()"><!-- --></A><H3>getNumNumeric</H3><PRE>public int <B>getNumNumeric</B>()</PRE><DL><DD>Gets the number of numerical attributes.<P><DD><DL><DT><B>Returns:</B><DD>the number of numerical attributes.</DL></DD></DL><HR><A NAME="setNumNumeric(int)"><!-- --></A><H3>setNumNumeric</H3><PRE>public void <B>setNumNumeric</B>(int newNumNumeric)</PRE><DL><DD>Sets the number of numerical attributes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newNumNumeric</CODE> - the number of numerical attributes.</DL></DD></DL><HR><A NAME="numNumericTipText()"><!-- --></A><H3>numNumericTipText</H3><PRE>public java.lang.String <B>numNumericTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getVoteFlag()"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -