📄 measuredperformance.html
字号:
another copy of your measure into the current copy. Suppose you were implementing sample mean. The current instance would have a mean mu and sample count m. If buildSingleAverage were invoked on another instance with mean nu and sample count n, you would update the current instance to mean (m*mu+n*nu)/(m+n) and count m+n. This is actually the computation of the micro average.<p> <p>In some cases the criterion is better if the value returned by <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getAverage()"><CODE>Averagable.getAverage()</CODE></A> is smaller. In order to support optimizations, the method <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getFitness()"><CODE>PerformanceCriterion.getFitness()</CODE></A> should return the result of <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getAverage()"><CODE>Averagable.getAverage()</CODE></A> (not from <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMikroAverage()"><CODE>Averagable.getMikroAverage()</CODE></A> since the macro average is often more stable for this purpose and will be returned by getAverage() if possible) in cases where higher values are better. If smaller values are better, the method should return something like -1 * <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getAverage()"><CODE>Averagable.getAverage()</CODE></A>.</p> <p>The methods <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getName()"><CODE>Averagable.getName()</CODE></A> and <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getDescription()"><CODE>PerformanceCriterion.getDescription()</CODE></A> are user by the user interface. Please note that the name should only contain lowercase letters and underscore (RapidMiner parameter format). You might also want to override <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#toResultString()"><CODE>ResultObjectAdapter.toResultString()</CODE></A> or <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getVisualizationComponent(com.rapidminer.operator.IOContainer)"><CODE>Averagable.getVisualizationComponent(com.rapidminer.operator.IOContainer)</CODE></A> in order to provide a nice visualization for the performance criterion but you usually don't have to.</p><P><P><DL><DT><B>Version:</B></DT> <DD>$Id: MeasuredPerformance.java,v 2.14 2006/03/21 15:35:50 ingomierswa Exp $</DD><DT><B>Author:</B></DT> <DD>Ingo Mierswa, Simon Fischer</DD><DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.rapidminer.operator.performance.MeasuredPerformance">Serialized Form</A></DL><HR><P><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html#MeasuredPerformance()">MeasuredPerformance</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html#MeasuredPerformance(com.rapidminer.operator.performance.MeasuredPerformance)">MeasuredPerformance</A></B>(<A HREF="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html" title="class in com.rapidminer.operator.performance">MeasuredPerformance</A> o)</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html#countExample(com.rapidminer.example.Example)">countExample</A></B>(<A HREF="../../../../com/rapidminer/example/Example.html" title="class in com.rapidminer.example">Example</A> example)</CODE><BR> Counts a single example, e.g. by summing up errors.</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="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html#startCounting(com.rapidminer.example.ExampleSet)">startCounting</A></B>(<A HREF="../../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A> set)</CODE><BR> <B>Deprecated.</B> <I>Please use the other start counting method directly</I></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="../../../../com/rapidminer/operator/performance/MeasuredPerformance.html#startCounting(com.rapidminer.example.ExampleSet, boolean)">startCounting</A></B>(<A HREF="../../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A> set, boolean useExampleWeights)</CODE><BR> Initializes the criterion.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.performance.PerformanceCriterion"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.operator.performance.<A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html" title="class in com.rapidminer.operator.performance">PerformanceCriterion</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#compareTo(com.rapidminer.operator.performance.PerformanceCriterion)">compareTo</A>, <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getDescription()">getDescription</A>, <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getExampleCount()">getExampleCount</A>, <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getFitness()">getFitness</A>, <A HREF="../../../../com/rapidminer/operator/performance/PerformanceCriterion.html#getMaxFitness()">getMaxFitness</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.tools.math.Averagable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.tools.math.<A HREF="../../../../com/rapidminer/tools/math/Averagable.html" title="class in com.rapidminer.tools.math">Averagable</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/rapidminer/tools/math/Averagable.html#buildAverage(com.rapidminer.tools.math.Averagable)">buildAverage</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#buildSingleAverage(com.rapidminer.tools.math.Averagable)">buildSingleAverage</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#clone()">clone</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#cloneAveragable(com.rapidminer.tools.math.Averagable)">cloneAveragable</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#formatPercent()">formatPercent</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getAverage()">getAverage</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getAverageCount()">getAverageCount</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getExtension()">getExtension</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getFileDescription()">getFileDescription</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMakroAverage()">getMakroAverage</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMakroStandardDeviation()">getMakroStandardDeviation</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMakroVariance()">getMakroVariance</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMikroAverage()">getMikroAverage</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMikroStandardDeviation()">getMikroStandardDeviation</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getMikroVariance()">getMikroVariance</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getName()">getName</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getStandardDeviation()">getStandardDeviation</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getVariance()">getVariance</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#getVisualizationComponent(com.rapidminer.operator.IOContainer)">getVisualizationComponent</A>, <A HREF="../../../../com/rapidminer/tools/math/Averagable.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.ResultObjectAdapter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.operator.<A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html" title="class in com.rapidminer.operator">ResultObjectAdapter</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#addAction(javax.swing.Action)">addAction</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#getActions()">getActions</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#getResultIcon()">getResultIcon</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#isSavable()">isSavable</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#log(java.lang.String)">log</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#logError(java.lang.String)">logError</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#logNote(java.lang.String)">logNote</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#logWarning(java.lang.String)">logWarning</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#readResolve()">readResolve</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#save(java.io.File)">save</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#toHTML(java.lang.String)">toHTML</A>, <A HREF="../../../../com/rapidminer/operator/ResultObjectAdapter.html#toResultString()">toResultString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.AbstractIOObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.operator.<A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html" title="class in com.rapidminer.operator">AbstractIOObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#copy()">copy</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#getLog()">getLog</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#getSource()">getSource</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#initWriting()">initWriting</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#read(java.io.InputStream)">read</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#setSource(java.lang.String)">setSource</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#setWorkingOperator(com.rapidminer.operator.Operator)">setWorkingOperator</A>, <A HREF="../../../../com/rapidminer/operator/AbstractIOObject.html#write(java.io.OutputStream)">write</A></CODE></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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.IOObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface com.rapidminer.operator.<A HREF="../../../../com/rapidminer/operator/IOObject.html" title="interface in com.rapidminer.operator">IOObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/rapidminer/operator/IOObject.html#copy()">copy</A>, <A HREF="../../../../com/rapidminer/operator/IOObject.html#getLog()">getLog</A>, <A HREF="../../../../com/rapidminer/operator/IOObject.html#getSource()">getSource</A>, <A HREF="../../../../com/rapidminer/operator/IOObject.html#setSource(java.lang.String)">setSource</A>, <A HREF="../../../../com/rapidminer/operator/IOObject.html#setWorkingOperator(com.rapidminer.operator.Operator)">setWorkingOperator</A>, <A HREF="../../../../com/rapidminer/operator/IOObject.html#write(java.io.OutputStream)">write</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -