📄 adtree.html
字号:
<A NAME="next(int)"><!-- --></A><H3>next</H3><PRE>public void <B>next</B>(int iteration) throws java.lang.Exception</PRE><DL><DD>Performs one iteration.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html#next(int)">next</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html">IterativeClassifier</A></CODE></DL></DD><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).<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">Instance</A> instance)</PRE><DL><DD>Returns the class probability distribution for an 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>the distribution the tree generates for the instance</DL></DD></DL><HR><A NAME="predictionValueForInstance(weka.core.Instance, weka.classifiers.adtree.PredictionNode, double)"><!-- --></A><H3>predictionValueForInstance</H3><PRE>protected double <B>predictionValueForInstance</B>(<A HREF="../../../weka/core/Instance.html">Instance</A> inst, <A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A> currentNode, double currentValue)</PRE><DL><DD>Returns the class prediction value (vote) for an instance.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - the instance<DD><CODE>currentNode</CODE> - the root of the tree to get the values from<DD><CODE>currentValue</CODE> - the current value before adding the value contained in the subtree<DT><B>Returns:</B><DD>the class prediction value (vote)</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 string containing a description of the classifier</DL></DD></DL><HR><A NAME="toString(weka.classifiers.adtree.PredictionNode, int)"><!-- --></A><H3>toString</H3><PRE>protected java.lang.String <B>toString</B>(<A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A> currentNode, int level)</PRE><DL><DD>Traverses the tree, forming a string that describes it.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>currentNode</CODE> - the current node under investigation<DD><CODE>level</CODE> - the current level in the tree<DT><B>Returns:</B><DD>the string describing the subtree</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.<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">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="graphTraverse(weka.classifiers.adtree.PredictionNode, java.lang.StringBuffer, int, int, weka.core.Instances)"><!-- --></A><H3>graphTraverse</H3><PRE>protected void <B>graphTraverse</B>(<A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A> currentNode, java.lang.StringBuffer text, int splitOrder, int predOrder, <A HREF="../../../weka/core/Instances.html">Instances</A> instances) throws java.lang.Exception</PRE><DL><DD>Traverses the tree, graphing each node.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>currentNode</CODE> - the currentNode under investigation<DD><CODE>text</CODE> - the string built so far<DD><CODE>splitOrder</CODE> - the order the parent splitter was added to the tree<DD><CODE>predOrder</CODE> - the order this predictor was added to the split<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.<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="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the classifier suitable for displaying in the explorer/experimenter gui</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.<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.<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">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.<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">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.<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.<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.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the random seed</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.<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.<DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -