📄 adtree.html
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>iteration</CODE> - the index of the current iteration (0-based)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if this iteration fails</DL></DD></DL><HR><A NAME="boost()"><!-- --></A><H3>boost</H3><PRE>public void <B>boost</B>() throws java.lang.Exception</PRE><DL><DD>Performs a single boosting iteration, using two-class optimized method. Will add a new splitter node and two prediction nodes to the tree (unless merging takes place).<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if try to boost without setting up tree first or there are no instances to train with</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" title="class in weka.core">Instance</A> instance)</PRE><DL><DD>Returns the class probability distribution for an instance.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#distributionForInstance(weka.core.Instance)">distributionForInstance</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>instance</CODE> - the instance to be classified<DT><B>Returns:</B><DD>the distribution the tree generates for the instance</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></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string containing a description of the classifier</DL></DD></DL><HR><A NAME="graphType()"><!-- --></A><H3>graphType</H3><PRE>public int <B>graphType</B>()</PRE><DL><DD>Returns the type of graph this classifier represents.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Drawable.html#graphType()">graphType</A></CODE> in interface <CODE><A HREF="../../../weka/core/Drawable.html" title="interface in weka.core">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Drawable.TREE</DL></DD></DL><HR><A NAME="graph()"><!-- --></A><H3>graph</H3><PRE>public java.lang.String <B>graph</B>() throws java.lang.Exception</PRE><DL><DD>Returns graph describing the tree.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Drawable.html#graph()">graph</A></CODE> in interface <CODE><A HREF="../../../weka/core/Drawable.html" title="interface in weka.core">Drawable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the graph of the tree in dotty format<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="legend()"><!-- --></A><H3>legend</H3><PRE>public java.lang.String <B>legend</B>()</PRE><DL><DD>Returns the legend of the tree, describing how results are to be interpreted.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string containing the legend of the classifier</DL></DD></DL><HR><A NAME="numOfBoostingIterationsTipText()"><!-- --></A><H3>numOfBoostingIterationsTipText</H3><PRE>public java.lang.String <B>numOfBoostingIterationsTipText</B>()</PRE><DL><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="getNumOfBoostingIterations()"><!-- --></A><H3>getNumOfBoostingIterations</H3><PRE>public int <B>getNumOfBoostingIterations</B>()</PRE><DL><DD>Gets the number of boosting iterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of boosting iterations</DL></DD></DL><HR><A NAME="setNumOfBoostingIterations(int)"><!-- --></A><H3>setNumOfBoostingIterations</H3><PRE>public void <B>setNumOfBoostingIterations</B>(int b)</PRE><DL><DD>Sets the number of boosting iterations.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the number of boosting iterations to use</DL></DD></DL><HR><A NAME="searchPathTipText()"><!-- --></A><H3>searchPathTipText</H3><PRE>public java.lang.String <B>searchPathTipText</B>()</PRE><DL><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="getSearchPath()"><!-- --></A><H3>getSearchPath</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getSearchPath</B>()</PRE><DL><DD>Gets the method of searching the tree for a new insertion. Will be one of SEARCHPATH_ALL, SEARCHPATH_HEAVIEST, SEARCHPATH_ZPURE, SEARCHPATH_RANDOM.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the tree searching mode</DL></DD></DL><HR><A NAME="setSearchPath(weka.core.SelectedTag)"><!-- --></A><H3>setSearchPath</H3><PRE>public void <B>setSearchPath</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> newMethod)</PRE><DL><DD>Sets the method of searching the tree for a new insertion. Will be one of SEARCHPATH_ALL, SEARCHPATH_HEAVIEST, SEARCHPATH_ZPURE, SEARCHPATH_RANDOM.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the new tree searching mode</DL></DD></DL><HR><A NAME="randomSeedTipText()"><!-- --></A><H3>randomSeedTipText</H3><PRE>public java.lang.String <B>randomSeedTipText</B>()</PRE><DL><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="getRandomSeed()"><!-- --></A><H3>getRandomSeed</H3><PRE>public int <B>getRandomSeed</B>()</PRE><DL><DD>Gets random seed for a random walk.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the random seed</DL></DD></DL><HR><A NAME="setRandomSeed(int)"><!-- --></A><H3>setRandomSeed</H3><PRE>public void <B>setRandomSeed</B>(int seed)</PRE><DL><DD>Sets random seed for a random walk.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="saveInstanceDataTipText()"><!-- --></A><H3>saveInstanceDataTipText</H3><PRE>public java.lang.String <B>saveInstanceDataTipText</B>()</PRE><DL><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="getSaveInstanceData()"><!-- --></A><H3>getSaveInstanceData</H3><PRE>public boolean <B>getSaveInstanceData</B>()</PRE><DL><DD>Gets whether the tree is to save instance data.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the random seed</DL></DD></DL><HR><A NAME="setSaveInstanceData(boolean)"><!-- --></A><H3>setSaveInstanceData</H3><PRE>public void <B>setSaveInstanceData</B>(boolean v)</PRE><DL><DD>Sets whether the tree is to save instance data.<P><DD><DL></DL></DD><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..<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -