📄 j48graft.html
字号:
</DL><HR><A NAME="prefix()"><!-- --></A><H3>prefix</H3><PRE>public java.lang.String <B>prefix</B>() throws java.lang.Exception</PRE><DL><DD>Returns tree in prefix order.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Matchable.html#prefix()">prefix</A></CODE> in interface <CODE><A HREF="../../../weka/core/Matchable.html" title="interface in weka.core">Matchable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the tree in prefix order<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="toSource(java.lang.String)"><!-- --></A><H3>toSource</H3><PRE>public java.lang.String <B>toSource</B>(java.lang.String className) throws java.lang.Exception</PRE><DL><DD>Returns tree as an if-then statement.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/classifiers/Sourcable.html#toSource(java.lang.String)">toSource</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/Sourcable.html" title="interface in weka.classifiers">Sourcable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the Java class<DT><B>Returns:</B><DD>the tree as a Java if-then type statement<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</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. Valid options are: <p> -U <br> Use unpruned tree.<p> -C confidence <br> Set confidence threshold for pruning. (Default: 0.25) <p> -M number <br> Set minimum number of instances per leaf. (Default: 2) <p> -B <br> Use binary splits for nominal attributes. <p> -S <br> Don't perform subtree raising. <p> -L <br> Do not clean up after the tree has been built. -A <br> If set, Laplace smoothing is used for predicted probabilites. (note: this option only affects initial tree; grafting process always uses laplace). <p> -E <br> Allow relabelling when grafting. <p><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. <!-- options-start --> Valid options are: <p/> <pre> -U Use unpruned tree.</pre> <pre> -C <pruning confidence> Set confidence threshold for pruning. (default 0.25)</pre> <pre> -M <minimum number of instances> Set minimum number of instances per leaf. (default 2)</pre> <pre> -B Use binary splits only.</pre> <pre> -S Don't perform subtree raising.</pre> <pre> -L Do not clean up after the tree has been built.</pre> <pre> -A Laplace smoothing for predicted probabilities. (note: this option only affects initial tree; grafting process always uses laplace).</pre> <pre> -E Relabel when grafting.</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="useLaplaceTipText()"><!-- --></A><H3>useLaplaceTipText</H3><PRE>public java.lang.String <B>useLaplaceTipText</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="getUseLaplace()"><!-- --></A><H3>getUseLaplace</H3><PRE>public boolean <B>getUseLaplace</B>()</PRE><DL><DD>Get the value of useLaplace.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of useLaplace.</DL></DD></DL><HR><A NAME="setUseLaplace(boolean)"><!-- --></A><H3>setUseLaplace</H3><PRE>public void <B>setUseLaplace</B>(boolean newuseLaplace)</PRE><DL><DD>Set the value of useLaplace.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newuseLaplace</CODE> - Value to assign to useLaplace.</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.<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>a description of the classifier</DL></DD></DL><HR><A NAME="toSummaryString()"><!-- --></A><H3>toSummaryString</H3><PRE>public java.lang.String <B>toSummaryString</B>()</PRE><DL><DD>Returns a superconcise version of the model<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Summarizable.html#toSummaryString()">toSummaryString</A></CODE> in interface <CODE><A HREF="../../../weka/core/Summarizable.html" title="interface in weka.core">Summarizable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a summary of the model</DL></DD></DL><HR><A NAME="measureTreeSize()"><!-- --></A><H3>measureTreeSize</H3><PRE>public double <B>measureTreeSize</B>()</PRE><DL><DD>Returns the size of the tree<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size of the tree</DL></DD></DL><HR><A NAME="measureNumLeaves()"><!-- --></A><H3>measureNumLeaves</H3><PRE>public double <B>measureNumLeaves</B>()</PRE><DL><DD>Returns the number of leaves<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of leaves</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 (same as number of leaves)<P><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<P><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" title="interface in weka.core">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<P><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" title="interface in weka.core">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>additionalMeasureName</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="unprunedTipText()"><!-- --></A><H3>unprunedTipText</H3><PRE>public java.lang.String <B>unprunedTipText</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="getUnpruned()"><!-- --></A><H3>getUnpruned</H3><PRE>public boolean <B>getUnpruned</B>()</PRE><DL><DD>Get the value of unpruned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of unpruned.</DL></DD></DL><HR><A NAME="setUnpruned(boolean)"><!-- --></A><H3>setUnpruned</H3><PRE>public void <B>setUnpruned</B>(boolean v)</PRE><DL><DD>Set the value of unpruned.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to unpruned.</DL></DD></DL><HR><A NAME="relabelTipText()"><!-- --></A><H3>relabelTipText</H3><PRE>public java.lang.String <B>relabelTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -