📄 simplelogistic.html
字号:
<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> -I <iterations> Set fixed number of iterations for LogitBoost</pre> <pre> -S Use stopping criterion on training set (instead of cross-validation)</pre> <pre> -P Use error on probabilities (rmse) instead of misclassification error for stopping criterion</pre> <pre> -M <iterations> Set maximum number of boosting iterations</pre> <pre> -H <iterations> Set parameter for heuristic for early stopping of LogitBoost. If enabled, the minimum is selected greedily, stopping if the current minimum has not changed for iter iterations. By default, heuristic is enabled with value 50. Set to zero to disable heuristic.</pre> <pre> -W <beta> Set beta for weight trimming for LogitBoost. Set to 0 for no weight trimming. </pre> <pre> -A The AIC is used to choose the best iteration (instead of CV or training error). </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>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="getNumBoostingIterations()"><!-- --></A><H3>getNumBoostingIterations</H3><PRE>public int <B>getNumBoostingIterations</B>()</PRE><DL><DD>Get the value of numBoostingIterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of boosting iterations</DL></DD></DL><HR><A NAME="getUseCrossValidation()"><!-- --></A><H3>getUseCrossValidation</H3><PRE>public boolean <B>getUseCrossValidation</B>()</PRE><DL><DD>Get the value of useCrossValidation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if cross-validation is used</DL></DD></DL><HR><A NAME="getErrorOnProbabilities()"><!-- --></A><H3>getErrorOnProbabilities</H3><PRE>public boolean <B>getErrorOnProbabilities</B>()</PRE><DL><DD>Get the value of errorOnProbabilities.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>If true, use minimize error on probabilities instead of misclassification error</DL></DD></DL><HR><A NAME="getMaxBoostingIterations()"><!-- --></A><H3>getMaxBoostingIterations</H3><PRE>public int <B>getMaxBoostingIterations</B>()</PRE><DL><DD>Get the value of maxBoostingIterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the maximum number of boosting iterations</DL></DD></DL><HR><A NAME="getHeuristicStop()"><!-- --></A><H3>getHeuristicStop</H3><PRE>public int <B>getHeuristicStop</B>()</PRE><DL><DD>Get the value of heuristicStop.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value of heuristicStop</DL></DD></DL><HR><A NAME="getWeightTrimBeta()"><!-- --></A><H3>getWeightTrimBeta</H3><PRE>public double <B>getWeightTrimBeta</B>()</PRE><DL><DD>Get the value of weightTrimBeta.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUseAIC()"><!-- --></A><H3>getUseAIC</H3><PRE>public boolean <B>getUseAIC</B>()</PRE><DL><DD>Get the value of useAIC.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of useAIC.</DL></DD></DL><HR><A NAME="setNumBoostingIterations(int)"><!-- --></A><H3>setNumBoostingIterations</H3><PRE>public void <B>setNumBoostingIterations</B>(int n)</PRE><DL><DD>Set the value of numBoostingIterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the number of boosting iterations</DL></DD></DL><HR><A NAME="setUseCrossValidation(boolean)"><!-- --></A><H3>setUseCrossValidation</H3><PRE>public void <B>setUseCrossValidation</B>(boolean l)</PRE><DL><DD>Set the value of useCrossValidation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - whether to use cross-validation</DL></DD></DL><HR><A NAME="setErrorOnProbabilities(boolean)"><!-- --></A><H3>setErrorOnProbabilities</H3><PRE>public void <B>setErrorOnProbabilities</B>(boolean l)</PRE><DL><DD>Set the value of errorOnProbabilities.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - If true, use minimize error on probabilities instead of misclassification error</DL></DD></DL><HR><A NAME="setMaxBoostingIterations(int)"><!-- --></A><H3>setMaxBoostingIterations</H3><PRE>public void <B>setMaxBoostingIterations</B>(int n)</PRE><DL><DD>Set the value of maxBoostingIterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the maximum number of boosting iterations</DL></DD></DL><HR><A NAME="setHeuristicStop(int)"><!-- --></A><H3>setHeuristicStop</H3><PRE>public void <B>setHeuristicStop</B>(int n)</PRE><DL><DD>Set the value of heuristicStop.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the value of heuristicStop</DL></DD></DL><HR><A NAME="setWeightTrimBeta(double)"><!-- --></A><H3>setWeightTrimBeta</H3><PRE>public void <B>setWeightTrimBeta</B>(double n)</PRE><DL><DD>Set the value of weightTrimBeta.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setUseAIC(boolean)"><!-- --></A><H3>setUseAIC</H3><PRE>public void <B>setUseAIC</B>(boolean c)</PRE><DL><DD>Set the value of useAIC.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - Value to assign to useAIC.</DL></DD></DL><HR><A NAME="getNumRegressions()"><!-- --></A><H3>getNumRegressions</H3><PRE>public int <B>getNumRegressions</B>()</PRE><DL><DD>Get the number of LogitBoost iterations performed (= the number of regression functions fit by LogitBoost).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of LogitBoost iterations performed</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -