estimator.html

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

HTML
903
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Capabilities of this Estimator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#getDebug()">getDebug</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get whether debugging is turned on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#getOptions()">getOptions</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current settings of the Estimator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#getProbability(double)">getProbability</A></B>(double&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a probability estimate for a value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#listOptions()">listOptions</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumeration describing the available options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#makeCopies(weka.estimators.Estimator, int)">makeCopies</A></B>(<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>&nbsp;model,           int&nbsp;num)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a given number of deep copies of the given estimator using serialization.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#makeCopy(weka.estimators.Estimator)">makeCopy</A></B>(<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>&nbsp;model)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a deep copy of the given estimator using serialization.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#setDebug(boolean)">setDebug</A></B>(boolean&nbsp;debug)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set debugging mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[]&nbsp;options)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses a given list of options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#testCapabilities(weka.core.Instances, int)">testCapabilities</A></B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                 int&nbsp;attrIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if the estimator can handle the data.</TD></TR></TABLE>&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>getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= 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="Estimator()"><!-- --></A><H3>Estimator</H3><PRE>public <B>Estimator</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="addValue(double, double)"><!-- --></A><H3>addValue</H3><PRE>public void <B>addValue</B>(double&nbsp;data,                     double&nbsp;weight)</PRE><DL><DD>Add a new data value to the current estimator.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the new data value<DD><CODE>weight</CODE> - the weight assigned to the data value</DL></DD></DL><HR><A NAME="addValues(weka.core.Instances, int)"><!-- --></A><H3>addValues</H3><PRE>public void <B>addValues</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                      int&nbsp;attrIndex)               throws java.lang.Exception</PRE><DL><DD>Initialize the estimator with a new dataset. Finds min and max first.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset used to build this estimator<DD><CODE>attrIndex</CODE> - attribute the estimator is for<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if building of estimator goes wrong</DL></DD></DL><HR><A NAME="addValues(weka.core.Instances, int, double, double, double)"><!-- --></A><H3>addValues</H3><PRE>public void <B>addValues</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                      int&nbsp;attrIndex,                      double&nbsp;min,                      double&nbsp;max,                      double&nbsp;factor)               throws java.lang.Exception</PRE><DL><DD>Initialize the estimator with all values of one attribute of a dataset.  Some estimator might ignore the min and max values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset used to build this estimator<DD><CODE>attrIndex</CODE> - attribute the estimator is for<DD><CODE>min</CODE> - minimal border of range<DD><CODE>max</CODE> - maximal border of range<DD><CODE>factor</CODE> - number of instances has been reduced to that factor<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if building of estimator goes wrong</DL></DD></DL><HR><A NAME="addValues(weka.core.Instances, int, int, int)"><!-- --></A><H3>addValues</H3><PRE>public void <B>addValues</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                      int&nbsp;attrIndex,                      int&nbsp;classIndex,                      int&nbsp;classValue)               throws java.lang.Exception</PRE><DL><DD>Initialize the estimator using only the instance of one class.  It is using the values of one attribute only.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset used to build this estimator<DD><CODE>attrIndex</CODE> - attribute the estimator is for<DD><CODE>classIndex</CODE> - index of the class attribute<DD><CODE>classValue</CODE> - the class value<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if building of estimator goes wrong</DL></DD></DL><HR><A NAME="addValues(weka.core.Instances, int, int, int, double, double)"><!-- --></A><H3>addValues</H3><PRE>public void <B>addValues</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                      int&nbsp;attrIndex,                      int&nbsp;classIndex,                      int&nbsp;classValue,                      double&nbsp;min,                      double&nbsp;max)               throws java.lang.Exception</PRE><DL><DD>Initialize the estimator using only the instance of one class.  It is using the values of one attribute only.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset used to build this estimator<DD><CODE>attrIndex</CODE> - attribute the estimator is for<DD><CODE>classIndex</CODE> - index of the class attribute<DD><CODE>classValue</CODE> - the class value<DD><CODE>min</CODE> - minimal value of this attribute<DD><CODE>max</CODE> - maximal value of this attribute<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if building of estimator goes wrong</DL></DD></DL><HR><A NAME="getProbability(double)"><!-- --></A><H3>getProbability</H3><PRE>public abstract double <B>getProbability</B>(double&nbsp;data)</PRE><DL><DD>Get a probability estimate for a value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the value to estimate the probability of<DT><B>Returns:</B><DD>the estimated probability of the supplied value</DL></DD></DL><HR><A NAME="buildEstimator(weka.estimators.Estimator, java.lang.String[], boolean)"><!-- --></A><H3>buildEstimator</H3><PRE>public static void <B>buildEstimator</B>(<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>&nbsp;est,                                  java.lang.String[]&nbsp;options,                                  boolean&nbsp;isIncremental)                           throws java.lang.Exception</PRE><DL><DD>Build an estimator using the options. The data is given in the options.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>est</CODE> - the estimator used<DD><CODE>options</CODE> - the list of options<DD><CODE>isIncremental</CODE> - true if estimator is incremental<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong or the user requests help on command options</DL></DD></DL><HR><A NAME="buildEstimator(weka.estimators.Estimator, weka.core.Instances, int, int, int, boolean)"><!-- --></A><H3>buildEstimator</H3><PRE>public static void <B>buildEstimator</B>(<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>&nbsp;est,                                  <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;instances,                                  int&nbsp;attrIndex,                                  int&nbsp;classIndex,                                  int&nbsp;classValueIndex,                                  boolean&nbsp;isIncremental)                           throws java.lang.Exception</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="clone(weka.estimators.Estimator)"><!-- --></A><H3>clone</H3><PRE>public static <A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A> <B>clone</B>(<A HREF="../../weka/estimators/Estimator.html" title="class in weka.estimators">Estimator</A>&nbsp;model)                       throws java.lang.Exception</PRE><DL><DD>Creates a deep copy of the given estimator using serialization.<P><DD><DL></DL></DD><DD><DL>

⌨️ 快捷键说明

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