📄 evaluation.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#SFMeanSchemeEntropy()">SFMeanSchemeEntropy</A></B>()</CODE><BR> Returns the entropy per instance for the scheme</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#SFPriorEntropy()">SFPriorEntropy</A></B>()</CODE><BR> Returns the total entropy for the null model</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#SFSchemeEntropy()">SFSchemeEntropy</A></B>()</CODE><BR> Returns the total entropy for the scheme</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumAbsErr()">sumAbsErr</A></B>()</CODE><BR> Gets the value of the sumAbsErr variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumClass()">sumClass</A></B>()</CODE><BR> Gets the value of the sumClass variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumClassPredicted()">sumClassPredicted</A></B>()</CODE><BR> Gets the value of the sumClassPredicted variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumErr()">sumErr</A></B>()</CODE><BR> Gets the value of the sumErr variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumKBInfo()">sumKBInfo</A></B>()</CODE><BR> Gets the value of the sumKBInfo variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumPredicted()">sumPredicted</A></B>()</CODE><BR> Gets the value of the sumPredicted variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumPriorAbsErr()">sumPriorAbsErr</A></B>()</CODE><BR> Gets the value of the sumPriorAbsError variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumPriorEntropy()">sumPriorEntropy</A></B>()</CODE><BR> Gets the value of the sumPriorEntropy variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumPriorSqrErr()">sumPriorSqrErr</A></B>()</CODE><BR> Gets the value of the sumPriorSqrErr variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumSchemeEntropy()">sumSchemeEntropy</A></B>()</CODE><BR> Gets the value of the sumSchemeEntropy variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumSqrClass()">sumSqrClass</A></B>()</CODE><BR> Gets the value of the sumSqrClass variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumSqrErr()">sumSqrErr</A></B>()</CODE><BR> Gets the value of the sumSqrErr variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#sumSqrPredicted()">sumSqrPredicted</A></B>()</CODE><BR> Gets the value of the sumSqrPredicted variable.</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/classifiers/Evaluation.html#toClassDetailsString()">toClassDetailsString</A></B>()</CODE><BR> </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/classifiers/Evaluation.html#toClassDetailsString(java.lang.String)">toClassDetailsString</A></B>(java.lang.String title)</CODE><BR> Generates a breakdown of the accuracy for each class, incorporating various information-retrieval statistics, such as true/false positive rate, precision/recall/F-Measure.</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/classifiers/Evaluation.html#toCumulativeMarginDistributionString()">toCumulativeMarginDistributionString</A></B>()</CODE><BR> Output the cumulative margin distribution as a string suitable for input for gnuplot or similar package.</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/classifiers/Evaluation.html#toMatrixString()">toMatrixString</A></B>()</CODE><BR> Calls toMatrixString() with a default title.</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/classifiers/Evaluation.html#toMatrixString(java.lang.String)">toMatrixString</A></B>(java.lang.String title)</CODE><BR> Outputs the performance statistics as a classification confusion matrix.</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/classifiers/Evaluation.html#toSummaryString()">toSummaryString</A></B>()</CODE><BR> Calls toSummaryString() with no title and no complexity stats</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/classifiers/Evaluation.html#toSummaryString(boolean)">toSummaryString</A></B>(boolean printComplexityStatistics)</CODE><BR> Calls toSummaryString() with a default title.</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/classifiers/Evaluation.html#toSummaryString(java.lang.String, boolean)">toSummaryString</A></B>(java.lang.String title, boolean printComplexityStatistics)</CODE><BR> Outputs the performance statistics in summary form.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#totalCost()">totalCost</A></B>()</CODE><BR> Gets the total cost, that is, the cost of each prediction times the weight of the instance, summed over all instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#trainClassVals()">trainClassVals</A></B>()</CODE><BR> Gets a copy of the trainClassVals array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#trainClassWeights()">trainClassWeights</A></B>()</CODE><BR> Gets a copy of the trainClassWeights array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#trueNegativeRate(int)">trueNegativeRate</A></B>(int classIndex)</CODE><BR> Calculate the true negative rate with respect to a particular class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#truePositiveRate(int)">truePositiveRate</A></B>(int classIndex)</CODE><BR> Calculate the true positive rate with respect to a particular class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#unclassified()">unclassified</A></B>()</CODE><BR> Gets the number of instances not classified (that is, for which no prediction was made by the classifier).</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/classifiers/Evaluation.html#updatePriors(weka.core.Instance)">updatePriors</A></B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance)</CODE><BR> Updates the class prior probabilities (when incrementally training)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#wekaStaticWrapper(weka.classifiers.Sourcable, java.lang.String)">wekaStaticWrapper</A></B>(<A HREF="../../weka/classifiers/Sourcable.html">Sourcable</A> classifier, java.lang.String className)</CODE><BR> Wraps a static classifier in enough source to test using the weka class libraries.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/Evaluation.html#withClass()">withClass</A></B>()</CODE><BR> Gets the value of the withClass variable</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Evaluation(weka.core.Instances)"><!-- --></A><H3>Evaluation</H3><PRE>public <B>Evaluation</B>(<A HREF="../../weka/core/Instances.html">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Initializes all the counters for the evaluation.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - set of training instances, to get some header information and prior class distribution information<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the class is not defined</DL></DD></DL><HR><A NAME="Evaluation(weka.core.Instances, weka.classifiers.CostMatrix)"><!-- --></A><H3>Evaluation</H3><PRE>public <B>Evaluation</B>(<A HREF="../../weka/core/Instances.html">Instances</A> data, <A HREF="../../weka/classifiers/CostMatrix.html">CostMatrix</A> costMatrix) throws java.lang.Exception</PRE><DL><DD>Initializes all the counters for the evaluation and also takes a cost matrix as parameter.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - set of instances, to get some header information<DD><CODE>costMatrix</CODE> - the cost matrix---if null, default costs will be used<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if cost matrix is not compatible with data, the class is not defined or the class is numeric</DL></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="numClasses()"><!-- --></A><H3>numClasses</H3><PRE>public final int <B>numClasses</B>()</PRE><DL><DD>Gets the number of classes<DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -