twoclassstats.html
来自「由java开发的软件包」· HTML 代码 · 共 634 行 · 第 1/2 页
HTML
634 行
</TABLE><A NAME="setTruePositive(double)"><!-- --></A><H3>setTruePositive</H3><PRE>public void <B>setTruePositive</B>(double tp)</PRE><DL><DD>Sets the number of positive instances predicted as positive<P><DD><DL></DL></DD></DL><HR><A NAME="setFalsePositive(double)"><!-- --></A><H3>setFalsePositive</H3><PRE>public void <B>setFalsePositive</B>(double fp)</PRE><DL><DD>Sets the number of negative instances predicted as positive<P><DD><DL></DL></DD></DL><HR><A NAME="setTrueNegative(double)"><!-- --></A><H3>setTrueNegative</H3><PRE>public void <B>setTrueNegative</B>(double tn)</PRE><DL><DD>Sets the number of negative instances predicted as negative<P><DD><DL></DL></DD></DL><HR><A NAME="setFalseNegative(double)"><!-- --></A><H3>setFalseNegative</H3><PRE>public void <B>setFalseNegative</B>(double fn)</PRE><DL><DD>Sets the number of positive instances predicted as negative<P><DD><DL></DL></DD></DL><HR><A NAME="getTruePositive()"><!-- --></A><H3>getTruePositive</H3><PRE>public double <B>getTruePositive</B>()</PRE><DL><DD>Gets the number of positive instances predicted as positive<P><DD><DL></DL></DD></DL><HR><A NAME="getFalsePositive()"><!-- --></A><H3>getFalsePositive</H3><PRE>public double <B>getFalsePositive</B>()</PRE><DL><DD>Gets the number of negative instances predicted as positive<P><DD><DL></DL></DD></DL><HR><A NAME="getTrueNegative()"><!-- --></A><H3>getTrueNegative</H3><PRE>public double <B>getTrueNegative</B>()</PRE><DL><DD>Gets the number of negative instances predicted as negative<P><DD><DL></DL></DD></DL><HR><A NAME="getFalseNegative()"><!-- --></A><H3>getFalseNegative</H3><PRE>public double <B>getFalseNegative</B>()</PRE><DL><DD>Gets the number of positive instances predicted as negative<P><DD><DL></DL></DD></DL><HR><A NAME="getTruePositiveRate()"><!-- --></A><H3>getTruePositiveRate</H3><PRE>public double <B>getTruePositiveRate</B>()</PRE><DL><DD>Calculate the true positive rate. This is defined as<p> <pre> correctly classified positives ------------------------------ total positives </pre><P><DD><DL><DT><B>Returns:</B><DD>the true positive rate</DL></DD></DL><HR><A NAME="getFalsePositiveRate()"><!-- --></A><H3>getFalsePositiveRate</H3><PRE>public double <B>getFalsePositiveRate</B>()</PRE><DL><DD>Calculate the false positive rate. This is defined as<p> <pre> incorrectly classified negatives -------------------------------- total negatives </pre><P><DD><DL><DT><B>Returns:</B><DD>the false positive rate</DL></DD></DL><HR><A NAME="getPrecision()"><!-- --></A><H3>getPrecision</H3><PRE>public double <B>getPrecision</B>()</PRE><DL><DD>Calculate the precision. This is defined as<p> <pre> correctly classified positives ------------------------------ total predicted as positive </pre><P><DD><DL><DT><B>Returns:</B><DD>the precision</DL></DD></DL><HR><A NAME="getRecall()"><!-- --></A><H3>getRecall</H3><PRE>public double <B>getRecall</B>()</PRE><DL><DD>Calculate the recall. This is defined as<p> <pre> correctly classified positives ------------------------------ total positives </pre><p> (Which is also the same as the truePositiveRate.)<P><DD><DL><DT><B>Returns:</B><DD>the recall</DL></DD></DL><HR><A NAME="getFMeasure()"><!-- --></A><H3>getFMeasure</H3><PRE>public double <B>getFMeasure</B>()</PRE><DL><DD>Calculate the F-Measure. This is defined as<p> <pre> 2 * recall * precision ---------------------- recall + precision </pre><P><DD><DL><DT><B>Returns:</B><DD>the F-Measure</DL></DD></DL><HR><A NAME="getFallout()"><!-- --></A><H3>getFallout</H3><PRE>public double <B>getFallout</B>()</PRE><DL><DD>Calculate the fallout. This is defined as<p> <pre> incorrectly classified negatives -------------------------------- total predicted as positive </pre><P><DD><DL><DT><B>Returns:</B><DD>the fallout</DL></DD></DL><HR><A NAME="getConfusionMatrix()"><!-- --></A><H3>getConfusionMatrix</H3><PRE>public <A HREF="../../../weka/classifiers/evaluation/ConfusionMatrix.html" title="class in weka.classifiers.evaluation">ConfusionMatrix</A> <B>getConfusionMatrix</B>()</PRE><DL><DD>Generates a <code>ConfusionMatrix</code> representing the current two-class statistics, using class names "negative" and "positive".<P><DD><DL><DT><B>Returns:</B><DD>a <code>ConfusionMatrix</code>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string containing the various performance measures for the current object<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../weka/classifiers/evaluation/ThresholdCurve.html" title="class in weka.classifiers.evaluation"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TwoClassStats.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?