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

📄 databaseresultproducer.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this result producer<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/experiment/DatabaseResultListener.html#globalInfo()">globalInfo</A></CODE> in class <CODE><A HREF="../../weka/experiment/DatabaseResultListener.html">DatabaseResultListener</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the result producer suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="doRunKeys(int)"><!-- --></A><H3>doRunKeys</H3><PRE>public void <B>doRunKeys</B>(int&nbsp;run)               throws java.lang.Exception</PRE><DL><DD>Gets the keys for a specified run number. Different run numbers correspond to different randomizations of the data. Keys produced should be sent to the current ResultListener<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#doRunKeys(int)">doRunKeys</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>run</CODE> - the run number to get keys for.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if a problem occurs while getting the keys</DL></DD></DL><HR><A NAME="doRun(int)"><!-- --></A><H3>doRun</H3><PRE>public void <B>doRun</B>(int&nbsp;run)           throws java.lang.Exception</PRE><DL><DD>Gets the results for a specified run number. Different run numbers correspond to different randomizations of the data. Results produced should be sent to the current ResultListener<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#doRun(int)">doRun</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>run</CODE> - the run number to get results for.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if a problem occurs while getting the results</DL></DD></DL><HR><A NAME="preProcess(weka.experiment.ResultProducer)"><!-- --></A><H3>preProcess</H3><PRE>public void <B>preProcess</B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A>&nbsp;rp)                throws java.lang.Exception</PRE><DL><DD>Prepare for the results to be received.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/experiment/DatabaseResultListener.html#preProcess(weka.experiment.ResultProducer)">preProcess</A></CODE> in class <CODE><A HREF="../../weka/experiment/DatabaseResultListener.html">DatabaseResultListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the ResultProducer that will generate the results<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs during preprocessing.</DL></DD></DL><HR><A NAME="postProcess(weka.experiment.ResultProducer)"><!-- --></A><H3>postProcess</H3><PRE>public void <B>postProcess</B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A>&nbsp;rp)                 throws java.lang.Exception</PRE><DL><DD>When this method is called, it indicates that no more results will be sent that need to be grouped together in any way.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/experiment/DatabaseResultListener.html#postProcess(weka.experiment.ResultProducer)">postProcess</A></CODE> in class <CODE><A HREF="../../weka/experiment/DatabaseResultListener.html">DatabaseResultListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the ResultProducer that generated the results<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="preProcess()"><!-- --></A><H3>preProcess</H3><PRE>public void <B>preProcess</B>()                throws java.lang.Exception</PRE><DL><DD>Prepare to generate results. The ResultProducer should call preProcess(this) on the ResultListener it is to send results to.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#preProcess()">preProcess</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs during preprocessing.</DL></DD></DL><HR><A NAME="postProcess()"><!-- --></A><H3>postProcess</H3><PRE>public void <B>postProcess</B>()                 throws java.lang.Exception</PRE><DL><DD>When this method is called, it indicates that no more requests to generate results for the current experiment will be sent. The ResultProducer should call preProcess(this) on the ResultListener it is to send results to.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#postProcess()">postProcess</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="acceptResult(weka.experiment.ResultProducer, java.lang.Object[], java.lang.Object[])"><!-- --></A><H3>acceptResult</H3><PRE>public void <B>acceptResult</B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A>&nbsp;rp,                         java.lang.Object[]&nbsp;key,                         java.lang.Object[]&nbsp;result)                  throws java.lang.Exception</PRE><DL><DD>Accepts results from a ResultProducer.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/experiment/DatabaseResultListener.html#acceptResult(weka.experiment.ResultProducer, java.lang.Object[], java.lang.Object[])">acceptResult</A></CODE> in class <CODE><A HREF="../../weka/experiment/DatabaseResultListener.html">DatabaseResultListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the ResultProducer that generated the results<DD><CODE>key</CODE> - an array of Objects (Strings or Doubles) that uniquely identify a result for a given ResultProducer with given compatibilityState<DD><CODE>result</CODE> - the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the result could not be accepted.</DL></DD></DL><HR><A NAME="isResultRequired(weka.experiment.ResultProducer, java.lang.Object[])"><!-- --></A><H3>isResultRequired</H3><PRE>public boolean <B>isResultRequired</B>(<A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A>&nbsp;rp,                                java.lang.Object[]&nbsp;key)                         throws java.lang.Exception</PRE><DL><DD>Determines whether the results for a specified key must be generated.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/experiment/DatabaseResultListener.html#isResultRequired(weka.experiment.ResultProducer, java.lang.Object[])">isResultRequired</A></CODE> in class <CODE><A HREF="../../weka/experiment/DatabaseResultListener.html">DatabaseResultListener</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the ResultProducer wanting to generate the results<DD><CODE>key</CODE> - an array of Objects (Strings or Doubles) that uniquely identify a result for a given ResultProducer with given compatibilityState<DT><B>Returns:</B><DD>true if the result should be generated<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if it could not be determined if the result  is needed.</DL></DD></DL><HR><A NAME="getKeyNames()"><!-- --></A><H3>getKeyNames</H3><PRE>public java.lang.String[] <B>getKeyNames</B>()                               throws java.lang.Exception</PRE><DL><DD>Gets the names of each of the columns produced for a single run.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#getKeyNames()">getKeyNames</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each column<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong.</DL></DD></DL><HR><A NAME="getKeyTypes()"><!-- --></A><H3>getKeyTypes</H3><PRE>public java.lang.Object[] <B>getKeyTypes</B>()                               throws java.lang.Exception</PRE><DL><DD>Gets the data types of each of the columns produced for a single run. This method should really be static.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#getKeyTypes()">getKeyTypes</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing objects of the type of each column. The  objects should be Strings, or Doubles.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong.</DL></DD></DL><HR><A NAME="getResultNames()"><!-- --></A><H3>getResultNames</H3><PRE>public java.lang.String[] <B>getResultNames</B>()                                  throws java.lang.Exception</PRE><DL><DD>Gets the names of each of the columns produced for a single run. A new result field is added for the number of results used to produce each average. If only averages are being produced the names are not altered, if standard deviations are produced then "Dev_" and "Avg_" are prepended to each result deviation and average field respectively.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#getResultNames()">getResultNames</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each column<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong.</DL></DD></DL><HR><A NAME="getResultTypes()"><!-- --></A><H3>getResultTypes</H3><PRE>public java.lang.Object[] <B>getResultTypes</B>()                                  throws java.lang.Exception</PRE><DL><DD>Gets the data types of each of the columns produced for a single run.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#getResultTypes()">getResultTypes</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing objects of the type of each column. The  objects should be Strings, or Doubles.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong.</DL></DD></DL><HR><A NAME="getCompatibilityState()"><!-- --></A><H3>getCompatibilityState</H3><PRE>public java.lang.String <B>getCompatibilityState</B>()</PRE><DL><DD>Gets a description of the internal settings of the result producer, sufficient for distinguishing a ResultProducer instance from another with different settings (ignoring those settings set through this interface). For example,

⌨️ 快捷键说明

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