📄 cvparameterselection.html
字号:
<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/classifiers/CVParameterSelection.html#getDebug()">getDebug</A></B>()</CODE><BR> Gets whether debugging is turned on</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/CVParameterSelection.html#getNumFolds()">getNumFolds</A></B>()</CODE><BR> Get the number of folds used for cross-validation.</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/classifiers/CVParameterSelection.html#getOptions()">getOptions</A></B>()</CODE><BR> Gets the current settings of the Classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/CVParameterSelection.html#getSeed()">getSeed</A></B>()</CODE><BR> Gets the random number seed.</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/classifiers/CVParameterSelection.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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/CVParameterSelection.html#main(java.lang.String[])">main</A></B>(java.lang.String[] argv)</CODE><BR> Main method for testing this class.</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/classifiers/CVParameterSelection.html#setClassifier(weka.classifiers.Classifier)">setClassifier</A></B>(<A HREF="../../weka/classifiers/Classifier.html">Classifier</A> newClassifier)</CODE><BR> Set the classifier for boosting.</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/classifiers/CVParameterSelection.html#setDebug(boolean)">setDebug</A></B>(boolean debug)</CODE><BR> Sets 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/classifiers/CVParameterSelection.html#setNumFolds(int)">setNumFolds</A></B>(int newNumFolds)</CODE><BR> Set the number of folds used for cross-validation.</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/classifiers/CVParameterSelection.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/classifiers/CVParameterSelection.html#setSeed(int)">setSeed</A></B>(int seed)</CODE><BR> Sets the seed for random number generation.</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/classifiers/CVParameterSelection.html#toString()">toString</A></B>()</CODE><BR> Returns description of the cross-validated classifier.</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/classifiers/CVParameterSelection.html#toSummaryString()">toSummaryString</A></B>()</CODE><BR> Returns a string that summarizes the object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.classifiers.Classifier"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.classifiers.<A HREF="../../weka/classifiers/Classifier.html">Classifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/classifiers/Classifier.html#forName(java.lang.String, java.lang.String[])">forName</A>, <A HREF="../../weka/classifiers/Classifier.html#makeCopies(weka.classifiers.Classifier, int)">makeCopies</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ 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_Classifier"><!-- --></A><H3>m_Classifier</H3><PRE>protected <A HREF="../../weka/classifiers/Classifier.html">Classifier</A> <B>m_Classifier</B></PRE><DL><DD>The generated base classifier</DL><HR><A NAME="m_ClassifierOptions"><!-- --></A><H3>m_ClassifierOptions</H3><PRE>protected java.lang.String[] <B>m_ClassifierOptions</B></PRE><DL><DD>The base classifier options (not including those being set by cross-validation)</DL><HR><A NAME="m_BestClassifierOptions"><!-- --></A><H3>m_BestClassifierOptions</H3><PRE>protected java.lang.String[] <B>m_BestClassifierOptions</B></PRE><DL><DD>The set of all classifier options as determined by cross-validation</DL><HR><A NAME="m_BestPerformance"><!-- --></A><H3>m_BestPerformance</H3><PRE>protected double <B>m_BestPerformance</B></PRE><DL><DD>The cross-validated performance of the best options</DL><HR><A NAME="m_CVParams"><!-- --></A><H3>m_CVParams</H3><PRE>protected <A HREF="../../weka/core/FastVector.html">FastVector</A> <B>m_CVParams</B></PRE><DL><DD>The set of parameters to cross-validate over</DL><HR><A NAME="m_NumAttributes"><!-- --></A><H3>m_NumAttributes</H3><PRE>protected int <B>m_NumAttributes</B></PRE><DL><DD>The number of attributes in the data</DL><HR><A NAME="m_TrainFoldSize"><!-- --></A><H3>m_TrainFoldSize</H3><PRE>protected int <B>m_TrainFoldSize</B></PRE><DL><DD>The number of instances in a training fold</DL><HR><A NAME="m_NumFolds"><!-- --></A><H3>m_NumFolds</H3><PRE>protected int <B>m_NumFolds</B></PRE><DL><DD>The number of folds used in cross-validation</DL><HR><A NAME="m_Seed"><!-- --></A><H3>m_Seed</H3><PRE>protected int <B>m_Seed</B></PRE><DL><DD>Random number seed</DL><HR><A NAME="m_Debug"><!-- --></A><H3>m_Debug</H3><PRE>protected boolean <B>m_Debug</B></PRE><DL><DD>Debugging mode, gives extra output if true</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="CVParameterSelection()"><!-- --></A><H3>CVParameterSelection</H3><PRE>public <B>CVParameterSelection</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="createOptions()"><!-- --></A><H3>createOptions</H3><PRE>protected java.lang.String[] <B>createOptions</B>()</PRE><DL><DD>Create the options array to pass to the classifier. The parameter values and positions are taken from m_ClassifierOptions and m_CVParams.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the options array</DL></DD></DL><HR><A NAME="findParamsByCrossValidation(int, weka.core.Instances)"><!-- --></A><H3>findParamsByCrossValidation</H3><PRE>protected void <B>findParamsByCrossValidation</B>(int depth, <A HREF="../../weka/core/Instances.html">Instances</A> trainData) throws java.lang.Exception</PRE><DL><DD>Finds the best parameter combination. (recursive for each parameter being optimised).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>depth</CODE> - the index of the parameter to be optimised at this level<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</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> -W classname <br> Specify the full class name of classifier to perform cross-validation
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -