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

📄 confusionmatrix.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_ClassNames"><!-- --></A><H3>m_ClassNames</H3><PRE>protected java.lang.String[] <B>m_ClassNames</B></PRE><DL><DD>Stores the names of the classes</DL><!-- ========= 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="ConfusionMatrix(java.lang.String[])"><!-- --></A><H3>ConfusionMatrix</H3><PRE>public <B>ConfusionMatrix</B>(java.lang.String[]&nbsp;classNames)</PRE><DL><DD>Creates the confusion matrix with the given class names.<DD><DL><DT><B>Parameters:</B><DD><CODE>classNames</CODE> - an array containing the names the classes.</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="makeWeighted(weka.classifiers.CostMatrix)"><!-- --></A><H3>makeWeighted</H3><PRE>public <A HREF="../../../weka/classifiers/evaluation/ConfusionMatrix.html">ConfusionMatrix</A> <B>makeWeighted</B>(<A HREF="../../../weka/classifiers/CostMatrix.html">CostMatrix</A>&nbsp;costs)                             throws java.lang.Exception</PRE><DL><DD>Makes a copy of this ConfusionMatrix after applying the supplied CostMatrix to the cells. The resulting ConfusionMatrix can be used to get cost-weighted statistics.<DD><DL><DT><B>Parameters:</B><DD><CODE>costs</CODE> - the CostMatrix.<DT><B>Returns:</B><DD>a ConfusionMatrix that has had costs applied.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the CostMatrix is not of the same size as this ConfusionMatrix.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()                       throws java.lang.CloneNotSupportedException</PRE><DL><DD>Creates and returns a clone of this object.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/core/Matrix.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../weka/core/Matrix.html">Matrix</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Gets the number of classes.<DD><DL><DT><B>Returns:</B><DD>the number of classes</DL></DD></DL><HR><A NAME="className(int)"><!-- --></A><H3>className</H3><PRE>public java.lang.String <B>className</B>(int&nbsp;index)</PRE><DL><DD>Gets the name of one of the classes.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the class.<DT><B>Returns:</B><DD>the class name.</DL></DD></DL><HR><A NAME="addPrediction(weka.classifiers.evaluation.NominalPrediction)"><!-- --></A><H3>addPrediction</H3><PRE>public void <B>addPrediction</B>(<A HREF="../../../weka/classifiers/evaluation/NominalPrediction.html">NominalPrediction</A>&nbsp;pred)                   throws java.lang.Exception</PRE><DL><DD>Includes a prediction in the confusion matrix.<DD><DL><DT><B>Parameters:</B><DD><CODE>pred</CODE> - the NominalPrediction to include<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if no valid prediction was made (i.e.  unclassified).</DL></DD></DL><HR><A NAME="addPredictions(weka.core.FastVector)"><!-- --></A><H3>addPredictions</H3><PRE>public void <B>addPredictions</B>(<A HREF="../../../weka/core/FastVector.html">FastVector</A>&nbsp;predictions)                    throws java.lang.Exception</PRE><DL><DD>Includes a whole bunch of predictions in the confusion matrix.<DD><DL><DT><B>Parameters:</B><DD><CODE>predictions</CODE> - a FastVector containing the NominalPredictions to include<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if no valid prediction was made (i.e.  unclassified).</DL></DD></DL><HR><A NAME="getTwoClassStats(int)"><!-- --></A><H3>getTwoClassStats</H3><PRE>public <A HREF="../../../weka/classifiers/evaluation/TwoClassStats.html">TwoClassStats</A> <B>getTwoClassStats</B>(int&nbsp;classIndex)</PRE><DL><DD>Gets the performance with respect to one of the classes as a TwoClassStats object.<DD><DL><DT><B>Parameters:</B><DD><CODE>classIndex</CODE> - the index of the class of interest.<DT><B>Returns:</B><DD>the generated TwoClassStats object.</DL></DD></DL><HR><A NAME="correct()"><!-- --></A><H3>correct</H3><PRE>public double <B>correct</B>()</PRE><DL><DD>Gets the number of correct classifications (that is, for which a correct prediction was made). (Actually the sum of the weights of these classifications)<DD><DL><DT><B>Returns:</B><DD>the number of correct classifications</DL></DD></DL><HR><A NAME="incorrect()"><!-- --></A><H3>incorrect</H3><PRE>public double <B>incorrect</B>()</PRE><DL><DD>Gets the number of incorrect classifications (that is, for which an incorrect prediction was made). (Actually the sum of the weights of these classifications)<DD><DL><DT><B>Returns:</B><DD>the number of incorrect classifications</DL></DD></DL><HR><A NAME="total()"><!-- --></A><H3>total</H3><PRE>public double <B>total</B>()</PRE><DL><DD>Gets the number of predictions that were made (actually the sum of the weights of predictions where the class value was known).<DD><DL><DT><B>Returns:</B><DD>the number of predictions with known class</DL></DD></DL><HR><A NAME="errorRate()"><!-- --></A><H3>errorRate</H3><PRE>public double <B>errorRate</B>()</PRE><DL><DD>Returns the estimated error rate.<DD><DL><DT><B>Returns:</B><DD>the estimated error rate (between 0 and 1).</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Calls toString() with a default title.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/core/Matrix.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../weka/core/Matrix.html">Matrix</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the confusion matrix as a string</DL></DD></DL><HR><A NAME="toString(java.lang.String)"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>(java.lang.String&nbsp;title)</PRE><DL><DD>Outputs the performance statistics as a classification confusion matrix. For each class value, shows the distribution of  predicted class values.<DD><DL><DT><B>Parameters:</B><DD><CODE>title</CODE> - the title for the confusion matrix<DT><B>Returns:</B><DD>the confusion matrix as a String</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../weka/classifiers/evaluation/CostCurve.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ConfusionMatrix.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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