costcurve.html

来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 420 行 · 第 1/2 页

HTML
420
字号
&nbsp;<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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="RELATION_NAME"><!-- --></A><H3>RELATION_NAME</H3><PRE>public static final java.lang.String <B>RELATION_NAME</B></PRE><DL><DD>The name of the relation used in cost curve datasets<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.evaluation.CostCurve.RELATION_NAME">Constant Field Values</A></DL></DL><HR><A NAME="PROB_COST_FUNC_NAME"><!-- --></A><H3>PROB_COST_FUNC_NAME</H3><PRE>public static final java.lang.String <B>PROB_COST_FUNC_NAME</B></PRE><DL><DD>attribute name: Probability Cost Function<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.evaluation.CostCurve.PROB_COST_FUNC_NAME">Constant Field Values</A></DL></DL><HR><A NAME="NORM_EXPECTED_COST_NAME"><!-- --></A><H3>NORM_EXPECTED_COST_NAME</H3><PRE>public static final java.lang.String <B>NORM_EXPECTED_COST_NAME</B></PRE><DL><DD>attribute name: Normalized Expected Cost<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.evaluation.CostCurve.NORM_EXPECTED_COST_NAME">Constant Field Values</A></DL></DL><HR><A NAME="THRESHOLD_NAME"><!-- --></A><H3>THRESHOLD_NAME</H3><PRE>public static final java.lang.String <B>THRESHOLD_NAME</B></PRE><DL><DD>attribute name: Threshold<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.evaluation.CostCurve.THRESHOLD_NAME">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="CostCurve()"><!-- --></A><H3>CostCurve</H3><PRE>public <B>CostCurve</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getCurve(weka.core.FastVector)"><!-- --></A><H3>getCurve</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getCurve</B>(<A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;predictions)</PRE><DL><DD>Calculates the performance stats for the default class and return  results as a set of Instances. The structure of these Instances is as follows:<p> <ul>  <li> <b>Probability Cost Function </b> <li> <b>Normalized Expected Cost</b> <li> <b>Threshold</b> contains the probability threshold that gives rise to the previous performance values.  </ul> <p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>predictions</CODE> - the predictions to base the curve on<DT><B>Returns:</B><DD>datapoints as a set of instances, null if no predictions have been made.<DT><B>See Also:</B><DD><A HREF="../../../weka/classifiers/evaluation/TwoClassStats.html" title="class in weka.classifiers.evaluation"><CODE>TwoClassStats</CODE></A></DL></DD></DL><HR><A NAME="getCurve(weka.core.FastVector, int)"><!-- --></A><H3>getCurve</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getCurve</B>(<A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;predictions,                          int&nbsp;classIndex)</PRE><DL><DD>Calculates the performance stats for the desired class and return  results as a set of Instances.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>predictions</CODE> - the predictions to base the curve on<DD><CODE>classIndex</CODE> - index of the class of interest.<DT><B>Returns:</B><DD>datapoints as a set of instances.</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE><DL><DD>Tests the CostCurve generation from the command line. The classifier is currently hardcoded. Pipe in an arff file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - currently ignored</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=2 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>&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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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;<A HREF="../../../weka/classifiers/evaluation/ConfusionMatrix.html" title="class in weka.classifiers.evaluation"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/classifiers/evaluation/EvaluationUtils.html" title="class in weka.classifiers.evaluation"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?weka/classifiers/evaluation/CostCurve.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CostCurve.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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