📄 numericprediction.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Wed Sep 04 10:31:49 CDT 2002 --><TITLE>: Class NumericPrediction</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </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="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</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/NominalPrediction.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/evaluation/ThresholdCurve.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> <A HREF="NumericPrediction.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">weka.classifiers.evaluation</FONT><BR>Class NumericPrediction</H2><PRE>java.lang.Object | +--<B>weka.classifiers.evaluation.NumericPrediction</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A>, java.io.Serializable</DD></DL><HR><DL><DT>public class <B>NumericPrediction</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A>, java.io.Serializable</DL><P>Encapsulates an evaluatable numeric prediction: the predicted class value plus the actual class value.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#weka.classifiers.evaluation.NumericPrediction">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_weka.classifiers.evaluation.Prediction"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface weka.classifiers.evaluation.<A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html#MISSING_VALUE">MISSING_VALUE</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../weka/classifiers/evaluation/NumericPrediction.html#NumericPrediction(double, double)">NumericPrediction</A></B>(double actual, double predicted)</CODE><BR> Creates the NumericPrediction object with a default weight of 1.0.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../weka/classifiers/evaluation/NumericPrediction.html#NumericPrediction(double, double, double)">NumericPrediction</A></B>(double actual, double predicted, double weight)</CODE><BR> Creates the NumericPrediction object.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/NumericPrediction.html#actual()">actual</A></B>()</CODE><BR> Gets the actual class value.</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/NumericPrediction.html#error()">error</A></B>()</CODE><BR> Calculates the prediction error.</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/NumericPrediction.html#predicted()">predicted</A></B>()</CODE><BR> Gets the predicted class value.</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/NumericPrediction.html#toString()">toString</A></B>()</CODE><BR> Gets a human readable representation of this prediction.</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/NumericPrediction.html#weight()">weight</A></B>()</CODE><BR> Gets the weight assigned to this prediction.</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, equals, finalize, getClass, hashCode, notify, notifyAll, 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="NumericPrediction(double, double)"><!-- --></A><H3>NumericPrediction</H3><PRE>public <B>NumericPrediction</B>(double actual, double predicted)</PRE><DL><DD>Creates the NumericPrediction object with a default weight of 1.0.<DD><DL><DT><B>Parameters:</B><DD><CODE>actual</CODE> - the actual value, or MISSING_VALUE.<DD><CODE>predicted</CODE> - the predicted value, or MISSING_VALUE.</DL></DD></DL><HR><A NAME="NumericPrediction(double, double, double)"><!-- --></A><H3>NumericPrediction</H3><PRE>public <B>NumericPrediction</B>(double actual, double predicted, double weight)</PRE><DL><DD>Creates the NumericPrediction object.<DD><DL><DT><B>Parameters:</B><DD><CODE>actual</CODE> - the actual value, or MISSING_VALUE.<DD><CODE>predicted</CODE> - the predicted value, or MISSING_VALUE.<DD><CODE>weight</CODE> - the weight assigned to the prediction.</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="actual()"><!-- --></A><H3>actual</H3><PRE>public double <B>actual</B>()</PRE><DL><DD>Gets the actual class value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html#actual()">actual</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the actual class value, or MISSING_VALUE if no prediction was made.</DL></DD></DL><HR><A NAME="predicted()"><!-- --></A><H3>predicted</H3><PRE>public double <B>predicted</B>()</PRE><DL><DD>Gets the predicted class value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html#predicted()">predicted</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the predicted class value, or MISSING_VALUE if no prediction was made.</DL></DD></DL><HR><A NAME="weight()"><!-- --></A><H3>weight</H3><PRE>public double <B>weight</B>()</PRE><DL><DD>Gets the weight assigned to this prediction. This is typically the weight of the test instance the prediction was made for.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html#weight()">weight</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/evaluation/Prediction.html">Prediction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the weight assigned to this prediction.</DL></DD></DL><HR><A NAME="error()"><!-- --></A><H3>error</H3><PRE>public double <B>error</B>()</PRE><DL><DD>Calculates the prediction error. This is defined as the predicted value minus the actual value.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the error for this prediction, or MISSING_VALUE if either the actual or predicted value is missing.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Gets a human readable representation of this prediction.<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a human readable representation of this prediction.</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> </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="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</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/NominalPrediction.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/evaluation/ThresholdCurve.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> <A HREF="NumericPrediction.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -