📄 rulenode.html
字号:
<TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#prune()">prune</A></B>()</CODE><BR> Recursively prune the tree</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#returnLeaves(weka.core.FastVector[])">returnLeaves</A></B>(<A HREF="../../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>[] v)</CODE><BR> Return a list containing all the leaves in the tree</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html" title="class in weka.classifiers.trees.m5">RuleNode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#rightNode()">rightNode</A></B>()</CODE><BR> Get the right child of this node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#setMinNumInstances(double)">setMinNumInstances</A></B>(double minNum)</CODE><BR> Set the minumum number of instances to allow at a leaf node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#setRegressionTree(boolean)">setRegressionTree</A></B>(boolean newregressionTree)</CODE><BR> Set the value of regressionTree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#split()">split</A></B>()</CODE><BR> Finds an attribute and split point for this node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#splitAtt()">splitAtt</A></B>()</CODE><BR> Get the index of the splitting attribute for this node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#splitVal()">splitVal</A></B>()</CODE><BR> Get the split point for this node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#toString()">toString</A></B>()</CODE><BR> print the linear model at this node</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html#treeToString(int)">treeToString</A></B>(int level)</CODE><BR> Recursively builds a textual description of the tree</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.classifiers.Classifier"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.classifiers.<A HREF="../../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../weka/classifiers/Classifier.html#debugTipText()">debugTipText</A>, <A HREF="../../../../weka/classifiers/Classifier.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A>, <A HREF="../../../../weka/classifiers/Classifier.html#forName(java.lang.String, java.lang.String[])">forName</A>, <A HREF="../../../../weka/classifiers/Classifier.html#getDebug()">getDebug</A>, <A HREF="../../../../weka/classifiers/Classifier.html#getOptions()">getOptions</A>, <A HREF="../../../../weka/classifiers/Classifier.html#listOptions()">listOptions</A>, <A HREF="../../../../weka/classifiers/Classifier.html#makeCopies(weka.classifiers.Classifier, int)">makeCopies</A>, <A HREF="../../../../weka/classifiers/Classifier.html#makeCopy(weka.classifiers.Classifier)">makeCopy</A>, <A HREF="../../../../weka/classifiers/Classifier.html#setDebug(boolean)">setDebug</A>, <A HREF="../../../../weka/classifiers/Classifier.html#setOptions(java.lang.String[])">setOptions</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_numParameters"><!-- --></A><H3>m_numParameters</H3><PRE>public int <B>m_numParameters</B></PRE><DL><DD>the number of paramters in the chosen model for this node---either the subtree model or the linear model. The constant term is counted as a paramter---this is for pruning purposes<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="RuleNode(double, double, weka.classifiers.trees.m5.RuleNode)"><!-- --></A><H3>RuleNode</H3><PRE>public <B>RuleNode</B>(double globalDev, double globalAbsDev, <A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html" title="class in weka.classifiers.trees.m5">RuleNode</A> parent)</PRE><DL><DD>Creates a new <code>RuleNode</code> instance.<P><DT><B>Parameters:</B><DD><CODE>globalDev</CODE> - the global standard deviation of the class<DD><CODE>globalAbsDev</CODE> - the global absolute deviation of the class<DD><CODE>parent</CODE> - the parent of this node</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Build this node (find an attribute and split point)<P><DD><DL><DT><B>Specified by:</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" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the instances on which to build this node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="classifyInstance(weka.core.Instance)"><!-- --></A><H3>classifyInstance</H3><PRE>public double <B>classifyInstance</B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> inst) throws java.lang.Exception</PRE><DL><DD>Classify an instance using this node. Recursively calls classifyInstance on child nodes.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/classifiers/Classifier.html#classifyInstance(weka.core.Instance)">classifyInstance</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>inst</CODE> - the instance to classify<DT><B>Returns:</B><DD>the prediction for this instance<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="split()"><!-- --></A><H3>split</H3><PRE>public void <B>split</B>() throws java.lang.Exception</PRE><DL><DD>Finds an attribute and split point for this node<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="numLeaves(int)"><!-- --></A><H3>numLeaves</H3><PRE>public int <B>numLeaves</B>(int leafCounter)</PRE><DL><DD>Sets the leaves' numbers<P><DD><DL><DT><B>Parameters:</B><DD><CODE>leafCounter</CODE> - the number of leaves counted<DT><B>Returns:</B><DD>the number of the total leaves under the node</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>print the linear model at this node<P><DD><DL></DL></DD></DL><HR><A NAME="printNodeLinearModel()"><!-- --></A><H3>printNodeLinearModel</H3><PRE>public java.lang.String <B>printNodeLinearModel</B>()</PRE><DL><DD>print the linear model at this node<P><DD><DL></DL></DD></DL><HR><A NAME="printLeafModels()"><!-- --></A><H3>printLeafModels</H3><PRE>public java.lang.String <B>printLeafModels</B>()</PRE><DL><DD>print all leaf models<P><DD><DL></DL></DD></DL><HR><A NAME="nodeToString()"><!-- --></A><H3>nodeToString</H3><PRE>public java.lang.String <B>nodeToString</B>()</PRE><DL><DD>Returns a description of this node (debugging purposes)<P><DD><DL><DT><B>Returns:</B><DD>a string describing this node</DL></DD></DL><HR><A NAME="treeToString(int)"><!-- --></A><H3>treeToString</H3><PRE>public java.lang.String <B>treeToString</B>(int level)</PRE><DL><DD>Recursively builds a textual description of the tree<P><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - the level of this node<DT><B>Returns:</B><DD>string describing the tree</DL></DD></DL><HR><A NAME="installLinearModels()"><!-- --></A><H3>installLinearModels</H3><PRE>public void <B>installLinearModels</B>() throws java.lang.Exception</PRE><DL><DD>Traverses the tree and installs linear models at each node. This method must be called if pruning is not to be performed.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="installSmoothedModels()"><!-- --></A><H3>installSmoothedModels</H3><PRE>public void <B>installSmoothedModels</B>() throws java.lang.Exception</PRE><DL><DD><DL><DT><B>Throws:</B>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -