📄 crossvalidationresultproducer.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#setOutputFile(java.io.File)">setOutputFile</A></B>(java.io.File newOutputFile)</CODE><BR> Set the value of OutputFile.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#setRawOutput(boolean)">setRawOutput</A></B>(boolean d)</CODE><BR> Set to true if raw split evaluator output is to be saved</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#setResultListener(weka.experiment.ResultListener)">setResultListener</A></B>(<A HREF="../../weka/experiment/ResultListener.html" title="interface in weka.experiment">ResultListener</A> listener)</CODE><BR> Sets the object to send results of each run to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#setSplitEvaluator(weka.experiment.SplitEvaluator)">setSplitEvaluator</A></B>(<A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A> newSplitEvaluator)</CODE><BR> Set the SplitEvaluator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#splitEvaluatorTipText()">splitEvaluatorTipText</A></B>()</CODE><BR> Returns the tip text for this property</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/experiment/CrossValidationResultProducer.html#toString()">toString</A></B>()</CODE><BR> Gets a text descrption of the result producer.</TD></TR></TABLE> <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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DATASET_FIELD_NAME"><!-- --></A><H3>DATASET_FIELD_NAME</H3><PRE>public static java.lang.String <B>DATASET_FIELD_NAME</B></PRE><DL><DL></DL></DL><HR><A NAME="RUN_FIELD_NAME"><!-- --></A><H3>RUN_FIELD_NAME</H3><PRE>public static java.lang.String <B>RUN_FIELD_NAME</B></PRE><DL><DL></DL></DL><HR><A NAME="FOLD_FIELD_NAME"><!-- --></A><H3>FOLD_FIELD_NAME</H3><PRE>public static java.lang.String <B>FOLD_FIELD_NAME</B></PRE><DL><DL></DL></DL><HR><A NAME="TIMESTAMP_FIELD_NAME"><!-- --></A><H3>TIMESTAMP_FIELD_NAME</H3><PRE>public static java.lang.String <B>TIMESTAMP_FIELD_NAME</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CrossValidationResultProducer()"><!-- --></A><H3>CrossValidationResultProducer</H3><PRE>public <B>CrossValidationResultProducer</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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<P><DD><DL></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="setInstances(weka.core.Instances)"><!-- --></A><H3>setInstances</H3><PRE>public void <B>setInstances</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances)</PRE><DL><DD>Sets the dataset that results will be obtained for.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#setInstances(weka.core.Instances)">setInstances</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - a value of type 'Instances'.</DL></DD></DL><HR><A NAME="setResultListener(weka.experiment.ResultListener)"><!-- --></A><H3>setResultListener</H3><PRE>public void <B>setResultListener</B>(<A HREF="../../weka/experiment/ResultListener.html" title="interface in weka.experiment">ResultListener</A> listener)</PRE><DL><DD>Sets the object to send results of each run to.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#setResultListener(weka.experiment.ResultListener)">setResultListener</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - a value of type 'ResultListener'</DL></DD></DL><HR><A NAME="setAdditionalMeasures(java.lang.String[])"><!-- --></A><H3>setAdditionalMeasures</H3><PRE>public void <B>setAdditionalMeasures</B>(java.lang.String[] additionalMeasures)</PRE><DL><DD>Set a list of method names for additional measures to look for in SplitEvaluators. This could contain many measures (of which only a subset may be produceable by the current SplitEvaluator) if an experiment is the type that iterates over a set of properties.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/ResultProducer.html#setAdditionalMeasures(java.lang.String[])">setAdditionalMeasures</A></CODE> in interface <CODE><A HREF="../../weka/experiment/ResultProducer.html" title="interface in weka.experiment">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>additionalMeasures</CODE> - an array of measure names, null if none</DL></DD></DL><HR><A NAME="enumerateMeasures()"><!-- --></A><H3>enumerateMeasures</H3><PRE>public java.util.Enumeration <B>enumerateMeasures</B>()</PRE><DL><DD>Returns an enumeration of any additional measure names that might be in the SplitEvaluator<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#enumerateMeasures()">enumerateMeasures</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html" title="interface in weka.core">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of the measure names</DL></DD></DL><HR><A NAME="getMeasure(java.lang.String)"><!-- --></A><H3>getMeasure</H3><PRE>public double <B>getMeasure</B>(java.lang.String additionalMeasureName)</PRE><DL><DD>Returns the value of the named measure<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#getMeasure(java.lang.String)">getMeasure</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html" title="interface in weka.core">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>additionalMeasureName</CODE> - the name of the measure to query for its value<DT><B>Returns:</B><DD>the value of the named measure<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the named measure is not supported</DL></DD></DL><HR><A NAME="getTimestamp()"><!-- --></A><H3>getTimestamp</H3><PRE>public static java.lang.Double <B>getTimestamp</B>()</PRE><DL><DD>Gets a Double representing the current date and time. eg: 1:46pm on 20/5/1999 -> 19990520.1346<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a value of type Double</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.<P><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" title="interface in weka.experiment">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>Perform any postprocessing. When this method is called, it indicates that no more requests to generate results for the current experiment will be sent.<P><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" title="interface in weka.experiment">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="doRunKeys(int)"><!-- --></A><H3>doRunKeys</H3><PRE>public void <B>doRunKeys</B>(int 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<P><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" title="interface in weka.experiment">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 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<P><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" title="interface in weka.experiment">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="getKeyNames()"><!-- --></A><H3>getKeyNames</H3><PRE>public java.lang.String[] <B>getKeyNames</B>()</PRE><DL><DD>Gets the names of each of the columns produced for a single run. This method should really be static.<P><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" title="interface in weka.experiment">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each column</DL></DD></DL><HR><A NAME="getKeyTypes()"><!-- --></A><H3>getKeyTypes</H3><PRE>public java.lang.Object[] <B>getKeyTypes</B>()</PRE><DL><DD>Gets the data types of each of the columns produced for a single run. This method should really be static.<P><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" title="interface in weka.experiment">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.</DL></DD></DL><HR><A NAME="getResultNames()"><!-- --></A><H3>getResultNames</H3><PRE>public java.lang.String[] <B>getResultNames</B>()</PRE><DL><DD>Gets the names of each of the columns produced for a single run. This method should really be static.<P><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" title="interface in weka.experiment">ResultProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each column</DL></DD></DL><HR><A NAME="getResultTypes()"><!-- --></A><H3>getResultTypes</H3><PRE>public java.lang.Object[] <B>getResultTypes</B>()</PRE><DL><DD>Gets the data types of each of the columns produced for a single run. This method should really be static.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -