📄 logistic.html
字号:
<!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_LL"><!-- --></A><H3>m_LL</H3><PRE>protected double <B>m_LL</B></PRE><DL><DD>The log-likelihood of the built model</DL><HR><A NAME="m_LLn"><!-- --></A><H3>m_LLn</H3><PRE>protected double <B>m_LLn</B></PRE><DL><DD>The log-likelihood of the null model</DL><HR><A NAME="m_Par"><!-- --></A><H3>m_Par</H3><PRE>protected double[] <B>m_Par</B></PRE><DL><DD>The coefficients of the model</DL><HR><A NAME="m_NumPredictors"><!-- --></A><H3>m_NumPredictors</H3><PRE>protected int <B>m_NumPredictors</B></PRE><DL><DD>The number of attributes in the model</DL><HR><A NAME="m_ClassIndex"><!-- --></A><H3>m_ClassIndex</H3><PRE>protected int <B>m_ClassIndex</B></PRE><DL><DD>The index of the class attribute</DL><HR><A NAME="m_Ridge"><!-- --></A><H3>m_Ridge</H3><PRE>protected double <B>m_Ridge</B></PRE><DL><DD>The ridge parameter.</DL><HR><A NAME="m_Debug"><!-- --></A><H3>m_Debug</H3><PRE>protected boolean <B>m_Debug</B></PRE><DL><DD>Debugging output</DL><!-- ========= 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="Logistic()"><!-- --></A><H3>Logistic</H3><PRE>public <B>Logistic</B>()</PRE><DL></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="lnsrch(int, double[], double, double[], double[], double[], double, double[][], double[])"><!-- --></A><H3>lnsrch</H3><PRE>public void <B>lnsrch</B>(int n, double[] xold, double fold, double[] g, double[] p, double[] x, double stpmax, double[][] X, double[] Y) throws java.lang.Exception</PRE><DL><DD>Finds a new point x in the direction p from a point xold at which the value of the function has decreased sufficiently.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - number of variables<DD><CODE>xold</CODE> - old point<DD><CODE>fold</CODE> - value at that point<DD><CODE>g</CODE> - gtradient at that point<DD><CODE>p</CODE> - direction<DD><CODE>x</CODE> - new value along direction p from xold<DD><CODE>stpmax</CODE> - maximum step length<DD><CODE>X</CODE> - instance data<DD><CODE>Y</CODE> - class values<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="Norm(double)"><!-- --></A><H3>Norm</H3><PRE>protected static double <B>Norm</B>(double z)</PRE><DL><DD>Returns probability.<DD><DL></DL></DD></DL><HR><A NAME="evaluateProbability(double[])"><!-- --></A><H3>evaluateProbability</H3><PRE>protected double <B>evaluateProbability</B>(double[] instDat)</PRE><DL><DD>Evaluate the probability for this point using the current coefficients<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instDat</CODE> - the instance data<DT><B>Returns:</B><DD>the probability for this instance</DL></DD></DL><HR><A NAME="calculateLogLikelihood(double[][], double[], weka.core.Matrix, double[])"><!-- --></A><H3>calculateLogLikelihood</H3><PRE>protected double <B>calculateLogLikelihood</B>(double[][] X, double[] Y, <A HREF="../../weka/core/Matrix.html">Matrix</A> jacobian, double[] deltas)</PRE><DL><DD>Calculates the log likelihood of the current set of coefficients (stored in m_Par), given the data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>X</CODE> - the instance data<DD><CODE>Y</CODE> - the class values for each instance<DD><CODE>jacobian</CODE> - the matrix which will contain the jacobian matrix after the method returns<DD><CODE>deltas</CODE> - an array which will contain the parameter adjustments after the method returns<DT><B>Returns:</B><DD>the log likelihood of the data.</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<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">OptionHandler</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. Valid options are:<p> -D <br> Turn on debugging output.<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">OptionHandler</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>Gets the current settings of the classifier.<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">OptionHandler</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="setDebug(boolean)"><!-- --></A><H3>setDebug</H3><PRE>public void <B>setDebug</B>(boolean debug)</PRE><DL><DD>Sets whether debugging output will be printed.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>debug</CODE> - true if debugging output should be printed</DL></DD></DL><HR><A NAME="getDebug()"><!-- --></A><H3>getDebug</H3><PRE>public boolean <B>getDebug</B>()</PRE><DL><DD>Gets whether debugging output will be printed.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if debugging output will be printed</DL></DD></DL><HR><A NAME="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../weka/core/Instances.html">Instances</A> train) throws java.lang.Exception</PRE><DL><DD>Builds the classifier<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/classifiers/Classifier.html#buildClassifier(weka.core.Instances)">buildClassifier</A></CODE> in class <CODE><A HREF="../../weka/classifiers/Classifier.html">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the training data to be used for generating the boosted classifier.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the classifier could not be built successfully</DL></DD></DL><HR><A NAME="distributionForInstance(weka.core.Instance)"><!-- --></A><H3>distributionForInstance</H3><PRE>public double[] <B>distributionForInstance</B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance) throws java.lang.Exception</PRE><DL><DD>Computes the distribution for a given instance<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/classifiers/DistributionClassifier.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></CODE> in class <CODE><A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance for which distribution is computed<DT><B>Returns:</B><DD>the distribution<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the distribution can't be computed successfully</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Gets a string describing the classifier.<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 string describing the classifer built.</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.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain the command line arguments to the scheme (see Evaluation)</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/LinearRegression.html"><B>PREV CLASS</B></A> <A HREF="../../weka/classifiers/LogitBoost.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="Logistic.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -