⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testinstances.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
 <pre> -W &lt;classname&gt;  The Capabilities handler to base the dataset on.  The other parameters can be used to override the ones  determined from the handler. Additional parameters for  handler can be passed on after the '--'.</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></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 this object.<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></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL></DD></DL><HR><A NAME="setRelation(java.lang.String)"><!-- --></A><H3>setRelation</H3><PRE>public void <B>setRelation</B>(java.lang.String&nbsp;value)</PRE><DL><DD>sets the name of the relation<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the name of the relation</DL></DD></DL><HR><A NAME="getRelation()"><!-- --></A><H3>getRelation</H3><PRE>public java.lang.String <B>getRelation</B>()</PRE><DL><DD>returns the current name of the relation<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of the relation</DL></DD></DL><HR><A NAME="setSeed(int)"><!-- --></A><H3>setSeed</H3><PRE>public void <B>setSeed</B>(int&nbsp;value)</PRE><DL><DD>sets the seed value for the random number generator<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the seed</DL></DD></DL><HR><A NAME="getSeed()"><!-- --></A><H3>getSeed</H3><PRE>public int <B>getSeed</B>()</PRE><DL><DD>returns the current seed value<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the seed value</DL></DD></DL><HR><A NAME="setNumInstances(int)"><!-- --></A><H3>setNumInstances</H3><PRE>public void <B>setNumInstances</B>(int&nbsp;value)</PRE><DL><DD>sets the number of instances to produce<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of instances</DL></DD></DL><HR><A NAME="getNumInstances()"><!-- --></A><H3>getNumInstances</H3><PRE>public int <B>getNumInstances</B>()</PRE><DL><DD>returns the current number of instances to produce<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances</DL></DD></DL><HR><A NAME="setClassType(int)"><!-- --></A><H3>setClassType</H3><PRE>public void <B>setClassType</B>(int&nbsp;value)</PRE><DL><DD>sets the class attribute type<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the class attribute type</DL></DD></DL><HR><A NAME="getClassType()"><!-- --></A><H3>getClassType</H3><PRE>public int <B>getClassType</B>()</PRE><DL><DD>returns the current class type<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the class attribute type</DL></DD></DL><HR><A NAME="setNumClasses(int)"><!-- --></A><H3>setNumClasses</H3><PRE>public void <B>setNumClasses</B>(int&nbsp;value)</PRE><DL><DD>sets the number of classes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of classes</DL></DD></DL><HR><A NAME="getNumClasses()"><!-- --></A><H3>getNumClasses</H3><PRE>public int <B>getNumClasses</B>()</PRE><DL><DD>returns the current number of classes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of classes</DL></DD></DL><HR><A NAME="setClassIndex(int)"><!-- --></A><H3>setClassIndex</H3><PRE>public void <B>setClassIndex</B>(int&nbsp;value)</PRE><DL><DD>sets the class index (0-based)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the class index<DT><B>See Also:</B><DD><A HREF="../../weka/core/TestInstances.html#CLASS_IS_LAST"><CODE>CLASS_IS_LAST</CODE></A>, <A HREF="../../weka/core/TestInstances.html#NO_CLASS"><CODE>NO_CLASS</CODE></A></DL></DD></DL><HR><A NAME="getClassIndex()"><!-- --></A><H3>getClassIndex</H3><PRE>public int <B>getClassIndex</B>()</PRE><DL><DD>returns the current class index (0-based), -1 is last attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the class index<DT><B>See Also:</B><DD><A HREF="../../weka/core/TestInstances.html#CLASS_IS_LAST"><CODE>CLASS_IS_LAST</CODE></A>, <A HREF="../../weka/core/TestInstances.html#NO_CLASS"><CODE>NO_CLASS</CODE></A></DL></DD></DL><HR><A NAME="setNoClass(boolean)"><!-- --></A><H3>setNoClass</H3><PRE>public void <B>setNoClass</B>(boolean&nbsp;value)</PRE><DL><DD>whether to have no class, e.g., for clusterers; otherwise the class attribute index is set to last<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - whether to have no class<DT><B>See Also:</B><DD><A HREF="../../weka/core/TestInstances.html#CLASS_IS_LAST"><CODE>CLASS_IS_LAST</CODE></A>, <A HREF="../../weka/core/TestInstances.html#NO_CLASS"><CODE>NO_CLASS</CODE></A></DL></DD></DL><HR><A NAME="getNoClass()"><!-- --></A><H3>getNoClass</H3><PRE>public boolean <B>getNoClass</B>()</PRE><DL><DD>whether no class attribute is generated<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if no class attribute is generated</DL></DD></DL><HR><A NAME="setNumNominal(int)"><!-- --></A><H3>setNumNominal</H3><PRE>public void <B>setNumNominal</B>(int&nbsp;value)</PRE><DL><DD>sets the number of nominal attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of nominal attributes</DL></DD></DL><HR><A NAME="getNumNominal()"><!-- --></A><H3>getNumNominal</H3><PRE>public int <B>getNumNominal</B>()</PRE><DL><DD>returns the current number of nominal attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of nominal attributes</DL></DD></DL><HR><A NAME="setNumNominalValues(int)"><!-- --></A><H3>setNumNominalValues</H3><PRE>public void <B>setNumNominalValues</B>(int&nbsp;value)</PRE><DL><DD>sets the number of values for nominal attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of values</DL></DD></DL><HR><A NAME="getNumNominalValues()"><!-- --></A><H3>getNumNominalValues</H3><PRE>public int <B>getNumNominalValues</B>()</PRE><DL><DD>returns the current number of values for nominal attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of values</DL></DD></DL><HR><A NAME="setNumNumeric(int)"><!-- --></A><H3>setNumNumeric</H3><PRE>public void <B>setNumNumeric</B>(int&nbsp;value)</PRE><DL><DD>sets the number of numeric attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of numeric attributes</DL></DD></DL><HR><A NAME="getNumNumeric()"><!-- --></A><H3>getNumNumeric</H3><PRE>public int <B>getNumNumeric</B>()</PRE><DL><DD>returns the current number of numeric attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of numeric attributes</DL></DD></DL><HR><A NAME="setNumString(int)"><!-- --></A><H3>setNumString</H3><PRE>public void <B>setNumString</B>(int&nbsp;value)</PRE><DL><DD>sets the number of string attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of string attributes</DL></DD></DL><HR><A NAME="getNumString()"><!-- --></A><H3>getNumString</H3><PRE>public int <B>getNumString</B>()</PRE><DL><DD>returns the current number of string attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of string attributes</DL></DD></DL><HR><A NAME="setWords(java.lang.String)"><!-- --></A><H3>setWords</H3><PRE>public void <B>setWords</B>(java.lang.String&nbsp;value)</PRE><DL><DD>Sets the comma-separated list of words to use for generating strings. The list must contain at least 2 words, otherwise an exception will be thrown.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the list of words<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if not at least 2 words are provided</DL></DD></DL><HR><A NAME="getWords()"><!-- --></A><H3>getWords</H3><PRE>public java.lang.String <B>getWords</B>()</PRE><DL><DD>returns the words used for assembling strings in a comma-separated list.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the words as comma-separated list</DL></DD></DL><HR><A NAME="setWordSeparators(java.lang.String)"><!-- --></A><H3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -