📄 decisiontable.html
字号:
<B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DecisionTable()"><!-- --></A><H3>DecisionTable</H3><PRE>public <B>DecisionTable</B>()</PRE><DL><DD>Constructor for a DecisionTable</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="resetOptions()"><!-- --></A><H3>resetOptions</H3><PRE>protected void <B>resetOptions</B>()</PRE><DL><DD>Resets the options.<DD><DL></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="setCrossVal(int)"><!-- --></A><H3>setCrossVal</H3><PRE>public void <B>setCrossVal</B>(int folds)</PRE><DL><DD>Sets the number of folds for cross validation (1 = leave one out)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>folds</CODE> - the number of folds</DL></DD></DL><HR><A NAME="getCrossVal()"><!-- --></A><H3>getCrossVal</H3><PRE>public int <B>getCrossVal</B>()</PRE><DL><DD>Gets the number of folds for cross validation<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of cross validation folds</DL></DD></DL><HR><A NAME="setMaxStale(int)"><!-- --></A><H3>setMaxStale</H3><PRE>public void <B>setMaxStale</B>(int stale)</PRE><DL><DD>Sets the number of non improving decision tables to consider before abandoning the search.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>stale</CODE> - the number of nodes</DL></DD></DL><HR><A NAME="getMaxStale()"><!-- --></A><H3>getMaxStale</H3><PRE>public int <B>getMaxStale</B>()</PRE><DL><DD>Gets the number of non improving decision tables<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of non improving decision tables</DL></DD></DL><HR><A NAME="setUseIBk(boolean)"><!-- --></A><H3>setUseIBk</H3><PRE>public void <B>setUseIBk</B>(boolean ibk)</PRE><DL><DD>Sets whether IBk should be used instead of the majority class<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ibk</CODE> - true if IBk is to be used</DL></DD></DL><HR><A NAME="getUseIBk()"><!-- --></A><H3>getUseIBk</H3><PRE>public boolean <B>getUseIBk</B>()</PRE><DL><DD>Gets whether IBk is being used instead of the majority class<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if IBk is being used</DL></DD></DL><HR><A NAME="setDisplayRules(boolean)"><!-- --></A><H3>setDisplayRules</H3><PRE>public void <B>setDisplayRules</B>(boolean rules)</PRE><DL><DD>Sets whether rules are to be printed<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rules</CODE> - true if rules are to be printed</DL></DD></DL><HR><A NAME="getDisplayRules()"><!-- --></A><H3>getDisplayRules</H3><PRE>public boolean <B>getDisplayRules</B>()</PRE><DL><DD>Gets whether rules are being printed<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if rules are being printed</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 the options for this object. Valid options are: <p> -S num <br> Number of fully expanded non improving subsets to consider before terminating a best first search. (Default = 5) <p> -X num <br> Use cross validation to evaluate features. Use number of folds = 1 for leave one out CV. (Default = leave one out CV) <p> -I <br> Use nearest neighbour instead of global table majority. <p> -R <br> Prints the decision table. <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="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../weka/core/Instances.html">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Generates 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> - set of instances serving as training data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the classifier has not been generated 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>Calculates the class membership probabilities for the given test 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 to be classified<DT><B>Returns:</B><DD>predicted class probability distribution<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if distribution can't be computed</DL></DD></DL><HR><A NAME="printFeatures()"><!-- --></A><H3>printFeatures</H3><PRE>public java.lang.String <B>printFeatures</B>()</PRE><DL><DD>Returns a string description of the features selected<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string of features</DL></DD></DL><HR><A NAME="measureNumRules()"><!-- --></A><H3>measureNumRules</H3><PRE>public double <B>measureNumRules</B>()</PRE><DL><DD>Returns the number of rules<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of rules</DL></DD></DL><HR><A NAME="enumerateMeasures()"><!-- --></A><H3>enumerateMeasures</H3><PRE>public java.util.Enumeration <B>enumerateMeasures</B>()</PRE><DL><DD>Returns an enumeration of the additional measure names<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#enumerateMeasures()">enumerateMeasures</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of the measure names</DL></DD></DL><HR><A NAME="getMeasure(java.lang.String)"><!-- --></A><H3>getMeasure</H3><PRE>public double <B>getMeasure</B>(java.lang.String additionalMeasureName)</PRE><DL><DD>Returns the value of the named measure<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#getMeasure(java.lang.String)">getMeasure</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>measureName</CODE> - the name of the measure to query for its value<DT><B>Returns:</B><DD>the value of the named measure<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the named measure is not supported</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a description of 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 description of the classifier as a string.</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> - the command-line options</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/DecisionStump.html"><B>PREV CLASS</B></A> <A HREF="../../weka/classifiers/DecisionTable.hashKey.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="DecisionTable.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -