⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adtree.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the random seed</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[]&nbsp;options)                throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -B num <br> Set the number of boosting iterations (default 10) <p> -E num <br> Set the nodes to expand: -3(all), -2(weight), -1(z_pure), >=0 seed for random walk (default -3) <p> -D <br> Save the instance data with the model <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 ADTree.<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="measureTreeSize()"><!-- --></A><H3>measureTreeSize</H3><PRE>public double <B>measureTreeSize</B>()</PRE><DL><DD>Calls measure function for tree size - the total number of nodes.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the tree size</DL></DD></DL><HR><A NAME="measureNumLeaves()"><!-- --></A><H3>measureNumLeaves</H3><PRE>public double <B>measureNumLeaves</B>()</PRE><DL><DD>Calls measure function for leaf size - the number of prediction nodes.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the leaf size</DL></DD></DL><HR><A NAME="measureNumPredictionLeaves()"><!-- --></A><H3>measureNumPredictionLeaves</H3><PRE>public double <B>measureNumPredictionLeaves</B>()</PRE><DL><DD>Calls measure function for prediction leaf size - the number of prediction nodes without children.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the leaf size</DL></DD></DL><HR><A NAME="measureNodesExpanded()"><!-- --></A><H3>measureNodesExpanded</H3><PRE>public double <B>measureNodesExpanded</B>()</PRE><DL><DD>Returns the number of nodes expanded.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of nodes expanded during search</DL></DD></DL><HR><A NAME="measureExamplesProcessed()"><!-- --></A><H3>measureExamplesProcessed</H3><PRE>public double <B>measureExamplesProcessed</B>()</PRE><DL><DD>Returns the number of examples "counted".<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of nodes processed during search</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&nbsp;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="numOfAllNodes(weka.classifiers.adtree.PredictionNode)"><!-- --></A><H3>numOfAllNodes</H3><PRE>protected int <B>numOfAllNodes</B>(<A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A>&nbsp;root)</PRE><DL><DD>Returns the total number of nodes in a tree.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the tree being measured<DT><B>Returns:</B><DD>tree size in number of splitter + prediction nodes</DL></DD></DL><HR><A NAME="numOfPredictionNodes(weka.classifiers.adtree.PredictionNode)"><!-- --></A><H3>numOfPredictionNodes</H3><PRE>protected int <B>numOfPredictionNodes</B>(<A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A>&nbsp;root)</PRE><DL><DD>Returns the number of prediction nodes in a tree.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the tree being measured<DT><B>Returns:</B><DD>tree size in number of prediction nodes</DL></DD></DL><HR><A NAME="numOfPredictionLeafNodes(weka.classifiers.adtree.PredictionNode)"><!-- --></A><H3>numOfPredictionLeafNodes</H3><PRE>protected int <B>numOfPredictionLeafNodes</B>(<A HREF="../../../weka/classifiers/adtree/PredictionNode.html">PredictionNode</A>&nbsp;root)</PRE><DL><DD>Returns the number of leaf nodes in a tree - prediction nodes without children.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the tree being measured<DT><B>Returns:</B><DD>tree leaf size in number of prediction nodes</DL></DD></DL><HR><A NAME="getRandom(int)"><!-- --></A><H3>getRandom</H3><PRE>protected int <B>getRandom</B>(int&nbsp;max)</PRE><DL><DD>Gets the next random value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>max</CODE> - the maximum value (+1) to be returned<DT><B>Returns:</B><DD>the next random value (between 0 and max-1)</DL></DD></DL><HR><A NAME="nextSplitAddedOrder()"><!-- --></A><H3>nextSplitAddedOrder</H3><PRE>public int <B>nextSplitAddedOrder</B>()</PRE><DL><DD>Returns the next number in the order that splitter nodes have been added to the tree, and records that a new splitter has been added.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the next number in the order</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>&nbsp;instances)                     throws java.lang.Exception</PRE><DL><DD>Builds a classifier for a set of instances.<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>instances</CODE> - the instances to train the classifier with<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="done()"><!-- --></A><H3>done</H3><PRE>public void <B>done</B>()</PRE><DL><DD>Frees memory that is no longer needed for a final model - will no longer be able to increment the classifier after calling this.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html#done()">done</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html">IterativeClassifier</A></CODE></DL></DD><DD>Following copied from interface: <CODE>weka.classifiers.IterativeClassifier</CODE></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if cleanup fails</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Creates a clone that is identical to the current tree, but is independent. Deep copies the essential elements such as the tree nodes, and the instances (because the weights change.) Reference copies several elements such as the potential splitter sets, assuming that such elements should never differ between clones.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../../weka/classifiers/IterativeClassifier.html">IterativeClassifier</A></CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the clone</DL></DD></DL><HR><A NAME="merge(weka.classifiers.adtree.ADTree)"><!-- --></A><H3>merge</H3><PRE>public void <B>merge</B>(<A HREF="../../../weka/classifiers/adtree/ADTree.html">ADTree</A>&nbsp;mergeWith)           throws java.lang.Exception</PRE><DL><DD>Merges two trees together. Modifies the tree being acted on, leaving tree passed as a parameter untouched (cloned). Does not check to see whether training instances are compatible - strange things could occur if they are not.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mergeWith</CODE> - the tree to merge with<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if merge could not be performed</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;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 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBa

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -