📄 testinstances.html
字号:
<A HREF="../../constant-values.html#weka.core.TestInstances.NO_CLASS">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_WORDS"><!-- --></A><H3>DEFAULT_WORDS</H3><PRE>public static final java.lang.String[] <B>DEFAULT_WORDS</B></PRE><DL><DD>the default list of words used in strings<P><DL></DL></DL><HR><A NAME="DEFAULT_SEPARATORS"><!-- --></A><H3>DEFAULT_SEPARATORS</H3><PRE>public static final java.lang.String <B>DEFAULT_SEPARATORS</B></PRE><DL><DD>the default word separators used in strings<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.TestInstances.DEFAULT_SEPARATORS">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TestInstances()"><!-- --></A><H3>TestInstances</H3><PRE>public <B>TestInstances</B>()</PRE><DL><DD>the default constructor<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>creates a clone of the current object<P><DD><DL><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of the current object</DL></DD></DL><HR><A NAME="assign(weka.core.TestInstances)"><!-- --></A><H3>assign</H3><PRE>public void <B>assign</B>(<A HREF="../../weka/core/TestInstances.html" title="class in weka.core">TestInstances</A> t)</PRE><DL><DD>updates itself with all the settings from the given TestInstances object<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the object to get the settings from</DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</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 enumeration of all the available options.</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. <p/> <!-- options-start --> Valid options are: <p/> <pre> -relation <name> The name of the data set.</pre> <pre> -seed <num> The seed value.</pre> <pre> -num-instances <num> The number of instances in the datasets (default 20).</pre> <pre> -class-type <num> The class type, see constants in weka.core.Attribute (default 1=nominal).</pre> <pre> -class-values <num> The number of classes to generate (for nominal classes only) (default 2).</pre> <pre> -class-index <num> The class index, with -1=last, (default -1).</pre> <pre> -no-class Doesn't include a class attribute in the output.</pre> <pre> -nominal <num> The number of nominal attributes (default 1).</pre> <pre> -nominal-values <num> The number of values for nominal attributes (default 2).</pre> <pre> -numeric <num> The number of numeric attributes (default 0).</pre> <pre> -string <num> The number of string attributes (default 0).</pre> <pre> -words <comma-separated-list> The words to use in string attributes.</pre> <pre> -word-separators <chars> The word separators to use in string attributes.</pre> <pre> -date <num> The number of date attributes (default 0).</pre> <pre> -relational <num> The number of relational attributes (default 0).</pre> <pre> -relational-nominal <num> The number of nominal attributes in a rel. attribute (default 1).</pre> <pre> -relational-nominal-values <num> The number of values for nominal attributes in a rel. attribute (default 2).</pre> <pre> -relational-numeric <num> The number of numeric attributes in a rel. attribute (default 0).</pre> <pre> -relational-string <num> The number of string attributes in a rel. attribute (default 0).</pre> <pre> -relational-date <num> The number of date attributes in a rel. attribute (default 0).</pre> <pre> -num-instances-relational <num> The number of instances in relational/bag attributes (default 10).</pre> <pre> -multi-instance Generates multi-instance data.</pre> <pre> -W <classname> 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 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 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 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 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 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 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -