estimator.html
来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 903 行 · 第 1/3 页
HTML
903 行
<BR> Returns the Capabilities of this Estimator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#getDebug()">getDebug</A></B>()</CODE><BR> Get whether debugging is turned on.</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/estimators/Estimator.html#getOptions()">getOptions</A></B>()</CODE><BR> 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 double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#getProbability(double)">getProbability</A></B>(double data)</CODE><BR> 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> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#listOptions()">listOptions</A></B>()</CODE><BR> 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 <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> model, int num)</CODE><BR> 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 <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> model)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#setDebug(boolean)">setDebug</A></B>(boolean debug)</CODE><BR> Set debugging mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/estimators/Estimator.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[] options)</CODE><BR> Parses a given list of options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> data, int attrIndex)</CODE><BR> Test if the estimator can handle the data.</TD></TR></TABLE> <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> <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 data, double 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> data, int 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> data, int attrIndex, double min, double max, double 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> data, int attrIndex, int classIndex, int 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> data, int attrIndex, int classIndex, int classValue, double min, double 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 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> est, java.lang.String[] options, boolean 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> est, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, int attrIndex, int classIndex, int classValueIndex, boolean 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> 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 + -
显示快捷键?