bayesianlogisticregression.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,780 行 · 第 1/5 页
HTML
1,780 行
</DD><DD><DL></DL></DD></DL><HR><A NAME="classifyInstance(weka.core.Instance)"><!-- --></A><H3>classifyInstance</H3><PRE>public double <B>classifyInstance</B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance) throws java.lang.Exception</PRE><DL><DD>Classifies the given instance using the Bayesian Logistic Regression function.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#classifyInstance(weka.core.Instance)">classifyInstance</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the test instance<DT><B>Returns:</B><DD>the classification<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if classification can't be done successfully</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Outputs the linear regression model as a string.<P><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>the model as string</DL></DD></DL><HR><A NAME="CVBasedHyperparameter()"><!-- --></A><H3>CVBasedHyperparameter</H3><PRE>public double <B>CVBasedHyperparameter</B>() throws java.lang.Exception</PRE><DL><DD>Method computes the best hyperparameter value by doing cross -validation on the training data and compute the likelihood. The method can parse a range of values or a list of values.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Best hyperparameter value with the max likelihood value on the training data.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="getLoglikeliHood(double[], weka.core.Instances)"><!-- --></A><H3>getLoglikeliHood</H3><PRE>public double <B>getLoglikeliHood</B>(double[] betas, <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>likelihood for a given set of betas and instances</DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#listOptions()">listOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options.</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. <p/> <!-- options-start --> Valid options are: <p/> <pre> -D Show Debugging Output </pre> <pre> -P <integer> Distribution of the Prior (1=Gaussian, 2=Laplacian) (default: 1=Gaussian)</pre> <pre> -H <integer> Hyperparameter Selection Method (1=Norm-based, 2=CV-based, 3=specific value) (default: 1=Norm-based)</pre> <pre> -V <double> Specified Hyperparameter Value (use in conjunction with -H 3) (default: 0.27)</pre> <pre> -R <string> Hyperparameter Range (use in conjunction with -H 2) (format: R:start-end,multiplier OR L:val(1), val(2), ..., val(n)) (default: R:0.01-316,3.16)</pre> <pre> -Tl <double> Tolerance Value (default: 0.0005)</pre> <pre> -S <double> Threshold Value (default: 0.5)</pre> <pre> -F <integer> Number Of Folds (use in conjuction with -H 2) (default: 2)</pre> <pre> -I <integer> Max Number of Iterations (default: 100)</pre> <pre> -N Normalize the data</pre> <!-- options-end --><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../weka/classifiers/Classifier.html#getOptions()">Classifier</A></CODE></B></DD><DD>Gets the current settings of the Classifier.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] argv)</PRE><DL><DD>Main method for testing this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - the options</DL></DD></DL><HR><A NAME="debugTipText()"><!-- --></A><H3>debugTipText</H3><PRE>public java.lang.String <B>debugTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#debugTipText()">debugTipText</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setDebug(boolean)"><!-- --></A><H3>setDebug</H3><PRE>public void <B>setDebug</B>(boolean debugMode)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../weka/classifiers/Classifier.html#setDebug(boolean)">Classifier</A></CODE></B></DD><DD>Set debugging mode.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#setDebug(boolean)">setDebug</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>debugMode</CODE> - true if debug output should be printed</DL></DD></DL><HR><A NAME="hyperparameterSelectionTipText()"><!-- --></A><H3>hyperparameterSelectionTipText</H3><PRE>public java.lang.String <B>hyperparameterSelectionTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getHyperparameterSelection()"><!-- --></A><H3>getHyperparameterSelection</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getHyperparameterSelection</B>()</PRE><DL><DD>Get the method used to select the hyperparameter<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the method used to select the hyperparameter</DL></DD></DL><HR><A NAME="setHyperparameterSelection(weka.core.SelectedTag)"><!-- --></A><H3>setHyperparameterSelection</H3><PRE>public void <B>setHyperparameterSelection</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> newMethod)</PRE><DL><DD>Set the method used to select the hyperparameter<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the method used to set the hyperparameter</DL></DD></DL><HR><A NAME="priorClassTipText()"><!-- --></A><H3>priorClassTipText</H3><PRE>public java.lang.String <B>priorClassTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setPriorClass(weka.core.SelectedTag)"><!-- --></A><H3>setPriorClass</H3><PRE>public void <B>setPriorClass</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> newMethod)</PRE><DL><DD>Set the type of prior to use.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the type of prior to use.</DL></DD></DL><HR><A NAME="getPriorClass()"><!-- --></A><H3>getPriorClass</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getPriorClass</B>()</PRE><DL><DD>Get the type of prior to use.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of prior to use</DL></DD></DL><HR><A NAME="thresholdTipText()"><!-- --></A><H3>thresholdTipText</H3><PRE>public java.lang.String <B>thresholdTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getThreshold()"><!-- --></A><H3>getThreshold</H3><PRE>public
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?