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

📄 datagenerator.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/datagenerators/DataGenerator.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[]&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses a list of options for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/datagenerators/DataGenerator.html#setOutput(java.io.PrintWriter)">setOutput</A></B>(java.io.PrintWriter&nbsp;newOutput)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the print writer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/datagenerators/DataGenerator.html#setRandom(java.util.Random)">setRandom</A></B>(java.util.Random&nbsp;newRandom)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the random generator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/datagenerators/DataGenerator.html#setRelationName(java.lang.String)">setRelationName</A></B>(java.lang.String&nbsp;relationName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the relation name the dataset should have.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/datagenerators/DataGenerator.html#setSeed(int)">setSeed</A></B>(int&nbsp;newSeed)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the random number seed.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= 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="DataGenerator()"><!-- --></A><H3>DataGenerator</H3><PRE>public <B>DataGenerator</B>()</PRE><DL><DD>initializes with default settings. <br/> Note: default values are set via a default&lt;name&gt; method. These  default methods are also used in the listOptions method and in the setOptions method. Why? Derived generators can override the return value of these default methods, to avoid exceptions.<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="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[]&nbsp;options)                throws java.lang.Exception</PRE><DL><DD>Parses a list of options for this object. <p/> For list of valid options see class description. <p/><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 the datagenerator RDG1. Removing of  blacklisted options has to be done in the derived class, that defines the blacklist-entry.<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<DT><B>See Also:</B><DD><A HREF="../../weka/datagenerators/DataGenerator.html#removeBlacklist(java.lang.String[])"><CODE>removeBlacklist(String[])</CODE></A></DL></DD></DL><HR><A NAME="defineDataFormat()"><!-- --></A><H3>defineDataFormat</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>defineDataFormat</B>()                           throws java.lang.Exception</PRE><DL><DD>Initializes the format for the dataset produced.  Must be called before the generateExample or generateExamples methods are used. Also sets a default relation name in case the current relation name is empty.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the format for the dataset<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the generating of the format failed<DT><B>See Also:</B><DD><A HREF="../../weka/datagenerators/DataGenerator.html#defaultRelationName()"><CODE>defaultRelationName()</CODE></A></DL></DD></DL><HR><A NAME="generateExample()"><!-- --></A><H3>generateExample</H3><PRE>public abstract <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>generateExample</B>()                                  throws java.lang.Exception</PRE><DL><DD>Generates one example of the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the generated example<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the format of the dataset is not yet defined<DD><CODE>java.lang.Exception</CODE> - if the generator only works with generateExamples which means in non single mode</DL></DD></DL><HR><A NAME="generateExamples()"><!-- --></A><H3>generateExamples</H3><PRE>public abstract <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>generateExamples</B>()                                    throws java.lang.Exception</PRE><DL><DD>Generates all examples of the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the generated dataset<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the format of the dataset is not yet defined<DD><CODE>java.lang.Exception</CODE> - if the generator only works with generateExample, which means in single mode</DL></DD></DL><HR><A NAME="generateStart()"><!-- --></A><H3>generateStart</H3><PRE>public abstract java.lang.String <B>generateStart</B>()                                        throws java.lang.Exception</PRE><DL><DD>Generates a comment string that documentates the data generator. By default this string is added at the beginning of the produced output as ARFF file type, next after the options.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>string contains info about the generated rules<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the generating of the documentation fails</DL></DD></DL><HR><A NAME="generateFinished()"><!-- --></A><H3>generateFinished</H3><PRE>public abstract java.lang.String <B>generateFinished</B>()                                           throws java.lang.Exception</PRE><DL><DD>Generates a comment string that documentates the data generator. By default this string is added at the end of the produced output as ARFF file type.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>string contains info about the generated rules<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the generating of the documentation fails</DL></DD></DL><HR><A NAME="getSingleModeFlag()"><!-- --></A><H3>getSingleModeFlag</H3><PRE>public abstract boolean <B>getSingleModeFlag</B>()                                   throws java.lang.Exception</PRE><DL><DD>Return if single mode is set for the given data generator mode depends on option setting and or generator type.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>single mode flag<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if mode is not set yet</DL></DD></DL><HR><A NAME="setDebug(boolean)"><!-- --></A><H3>setDebug</H3><PRE>public void <B>setDebug</B>(boolean&nbsp;debug)</PRE><DL><DD>Sets the debug flag.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>debug</CODE> - the new debug flag</DL></DD></DL><HR><A NAME="getDebug()"><!-- --></A><H3>getDebug</H3><PRE>public boolean <B>getDebug</B>()</PRE><DL><DD>Gets the debug flag.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the debug flag</DL></DD></DL><HR><A NAME="debugTipText()"><!-- --></A><H3>debugTipText</H3><PRE>public java.lang.String <B>debugTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><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="setRelationName(java.lang.String)"><!-- --></A><H3>setRelationName</H3><PRE>public void <B>setRelationName</B>(java.lang.String&nbsp;relationName)</PRE><DL><DD>Sets the relation name the dataset should have.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>relationName</CODE> - the new relation name</DL></DD></DL><HR>

⌨️ 快捷键说明

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