📄 testinstances.html
字号:
<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of numeric attributes</DL></DD></DL><HR><A NAME="setNumRelationalString(int)"><!-- --></A><H3>setNumRelationalString</H3><PRE>public void <B>setNumRelationalString</B>(int value)</PRE><DL><DD>sets the number of string attributes in a relational attribute<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="getNumRelationalString()"><!-- --></A><H3>getNumRelationalString</H3><PRE>public int <B>getNumRelationalString</B>()</PRE><DL><DD>returns the current number of string attributes in a relational attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of string attributes</DL></DD></DL><HR><A NAME="setNumRelationalDate(int)"><!-- --></A><H3>setNumRelationalDate</H3><PRE>public void <B>setNumRelationalDate</B>(int value)</PRE><DL><DD>sets the number of date attributes in a relational attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of date attributes</DL></DD></DL><HR><A NAME="getNumRelationalDate()"><!-- --></A><H3>getNumRelationalDate</H3><PRE>public int <B>getNumRelationalDate</B>()</PRE><DL><DD>returns the current number of date attributes in a relational attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of date attributes</DL></DD></DL><HR><A NAME="setNumInstancesRelational(int)"><!-- --></A><H3>setNumInstancesRelational</H3><PRE>public void <B>setNumInstancesRelational</B>(int value)</PRE><DL><DD>sets the number of instances in relational/bag attributes 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="getNumInstancesRelational()"><!-- --></A><H3>getNumInstancesRelational</H3><PRE>public int <B>getNumInstancesRelational</B>()</PRE><DL><DD>returns the current number of instances in relational/bag attributes to produce<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances</DL></DD></DL><HR><A NAME="setMultiInstance(boolean)"><!-- --></A><H3>setMultiInstance</H3><PRE>public void <B>setMultiInstance</B>(boolean value)</PRE><DL><DD>sets whether multi-instance data should be generated (with a fixed data structure)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - whether multi-instance data is generated</DL></DD></DL><HR><A NAME="getMultiInstance()"><!-- --></A><H3>getMultiInstance</H3><PRE>public boolean <B>getMultiInstance</B>()</PRE><DL><DD>Gets whether multi-instance data (with a fixed structure) is generated<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if multi-instance data is generated</DL></DD></DL><HR><A NAME="setRelationalFormat(int, weka.core.Instances)"><!-- --></A><H3>setRelationalFormat</H3><PRE>public void <B>setRelationalFormat</B>(int index, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> value)</PRE><DL><DD>sets the structure for the bags for the relational attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the relational attribute<DD><CODE>value</CODE> - the new structure</DL></DD></DL><HR><A NAME="getRelationalFormat(int)"><!-- --></A><H3>getRelationalFormat</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getRelationalFormat</B>(int index)</PRE><DL><DD>returns the format for the specified relational attribute, can be null<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the relational attribute<DT><B>Returns:</B><DD>the current structure</DL></DD></DL><HR><A NAME="setRelationalClassFormat(weka.core.Instances)"><!-- --></A><H3>setRelationalClassFormat</H3><PRE>public void <B>setRelationalClassFormat</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> value)</PRE><DL><DD>sets the structure for the relational class attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the structure for the relational attribute</DL></DD></DL><HR><A NAME="getRelationalClassFormat()"><!-- --></A><H3>getRelationalClassFormat</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getRelationalClassFormat</B>()</PRE><DL><DD>returns the current strcuture of the relational class attribute, can be null<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the relational structure of the class attribute</DL></DD></DL><HR><A NAME="getNumAttributes()"><!-- --></A><H3>getNumAttributes</H3><PRE>public int <B>getNumAttributes</B>()</PRE><DL><DD>returns the overall number of attributes (incl. class, if that is also generated)<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the overall number of attributes</DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getData</B>()</PRE><DL><DD>returns the current dataset, can be null<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current dataset</DL></DD></DL><HR><A NAME="setHandler(weka.core.CapabilitiesHandler)"><!-- --></A><H3>setHandler</H3><PRE>public void <B>setHandler</B>(<A HREF="../../weka/core/CapabilitiesHandler.html" title="interface in weka.core">CapabilitiesHandler</A> value)</PRE><DL><DD>sets the Capabilities handler to generate the data for<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the handler to generate the data for</DL></DD></DL><HR><A NAME="getHandler()"><!-- --></A><H3>getHandler</H3><PRE>public <A HREF="../../weka/core/CapabilitiesHandler.html" title="interface in weka.core">CapabilitiesHandler</A> <B>getHandler</B>()</PRE><DL><DD>returns the current set CapabilitiesHandler to generate the dataset for, can be null<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the handler to generate the data for</DL></DD></DL><HR><A NAME="generate()"><!-- --></A><H3>generate</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>generate</B>() throws java.lang.Exception</PRE><DL><DD>generates a new dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the generated data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="forCapabilities(weka.core.Capabilities)"><!-- --></A><H3>forCapabilities</H3><PRE>public static <A HREF="../../weka/core/TestInstances.html" title="class in weka.core">TestInstances</A> <B>forCapabilities</B>(<A HREF="../../weka/core/Capabilities.html" title="class in weka.core">Capabilities</A> c)</PRE><DL><DD>returns a TestInstances instance setup already for the the given capabilities.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the capabilities to base the TestInstances on<DT><B>Returns:</B><DD>the configured TestInstances object</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>returns a string representation of the object<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of the object</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args) throws java.lang.Exception</PRE><DL><DD>for running the class from commandline, prints the generated data to stdout<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the commandline parameters<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/core/Tee.html" title="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -