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

📄 testinstances.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
setWordSeparators</H3><PRE>public void <B>setWordSeparators</B>(java.lang.String&nbsp;value)</PRE><DL><DD>sets the word separators (chars) to use for assembling strings.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the characters to use as separators</DL></DD></DL><HR><A NAME="getWordSeparators()"><!-- --></A><H3>getWordSeparators</H3><PRE>public java.lang.String <B>getWordSeparators</B>()</PRE><DL><DD>returns the word separators (chars) to use for assembling strings.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current separators</DL></DD></DL><HR><A NAME="setNumDate(int)"><!-- --></A><H3>setNumDate</H3><PRE>public void <B>setNumDate</B>(int&nbsp;value)</PRE><DL><DD>sets the number of data attributes<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="getNumDate()"><!-- --></A><H3>getNumDate</H3><PRE>public int <B>getNumDate</B>()</PRE><DL><DD>returns the current number of date attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of date attributes</DL></DD></DL><HR><A NAME="setNumRelational(int)"><!-- --></A><H3>setNumRelational</H3><PRE>public void <B>setNumRelational</B>(int&nbsp;value)</PRE><DL><DD>sets the number of relational attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the number of relational attributes</DL></DD></DL><HR><A NAME="getNumRelational()"><!-- --></A><H3>getNumRelational</H3><PRE>public int <B>getNumRelational</B>()</PRE><DL><DD>returns the current number of relational attributes<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of relational attributes</DL></DD></DL><HR><A NAME="setNumInstancesRelational(int)"><!-- --></A><H3>setNumInstancesRelational</H3><PRE>public void <B>setNumInstancesRelational</B>(int&nbsp;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&nbsp;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&nbsp;index,                                <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;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&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../weka/core/Tee.html" title="class in weka.core"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/UnassignedClassException.html" title="class in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?weka/core/TestInstances.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TestInstances.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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