📄 c45pruneableclassifiertreeg.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="C45PruneableClassifierTreeG(weka.classifiers.trees.j48.ModelSelection, boolean, float, boolean, boolean, boolean)"><!-- --></A><H3>C45PruneableClassifierTreeG</H3><PRE>public <B>C45PruneableClassifierTreeG</B>(<A HREF="../../../../weka/classifiers/trees/j48/ModelSelection.html" title="class in weka.classifiers.trees.j48">ModelSelection</A> toSelectLocModel, boolean pruneTree, float cf, boolean raiseTree, boolean relabel, boolean cleanup) throws java.lang.Exception</PRE><DL><DD>Constructor for pruneable tree structure. Stores reference to associated training data at each node.<P><DL><DT><B>Parameters:</B><DD><CODE>toSelectLocModel</CODE> - selection method for local splitting model<DD><CODE>pruneTree</CODE> - true if the tree is to be pruned<DD><CODE>cf</CODE> - the confidence factor for pruning<DD><CODE>raiseTree</CODE> - <DD><CODE>cleanup</CODE> - <DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DL><HR><A NAME="C45PruneableClassifierTreeG(weka.classifiers.trees.j48.ModelSelection, weka.core.Instances, weka.classifiers.trees.j48.ClassifierSplitModel, boolean, float, boolean, boolean, boolean, boolean)"><!-- --></A><H3>C45PruneableClassifierTreeG</H3><PRE>public <B>C45PruneableClassifierTreeG</B>(<A HREF="../../../../weka/classifiers/trees/j48/ModelSelection.html" title="class in weka.classifiers.trees.j48">ModelSelection</A> toSelectLocModel, <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html" title="class in weka.classifiers.trees.j48">ClassifierSplitModel</A> gs, boolean prune, float cf, boolean raise, boolean isLeaf, boolean relabel, boolean cleanup)</PRE><DL><DD>Constructor for pruneable tree structure. Used to create new nodes in the tree during grafting.<P><DL><DT><B>Parameters:</B><DD><CODE>toSelectLocModel</CODE> - selection method for local splitting model<DD><CODE>data</CODE> - the dta used to produce split model<DD><CODE>gs</CODE> - the split model<DD><CODE>prune</CODE> - true if the tree is to be pruned<DD><CODE>cf</CODE> - the confidence factor for pruning<DD><CODE>raise</CODE> - <DD><CODE>isLeaf</CODE> - if this node is a leaf or not<DD><CODE>relabel</CODE> - whether relabeling occured<DD><CODE>cleanup</CODE> - <DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getCapabilities()"><!-- --></A><H3>getCapabilities</H3><PRE>public <A HREF="../../../../weka/core/Capabilities.html" title="class in weka.core">Capabilities</A> <B>getCapabilities</B>()</PRE><DL><DD>Returns default capabilities of the classifier tree.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/CapabilitiesHandler.html#getCapabilities()">getCapabilities</A></CODE> in interface <CODE><A HREF="../../../../weka/core/CapabilitiesHandler.html" title="interface in weka.core">CapabilitiesHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html#getCapabilities()">getCapabilities</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html" title="class in weka.classifiers.trees.j48">ClassifierTree</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the capabilities of this classifier tree<DT><B>See Also:</B><DD><A HREF="../../../../weka/core/Capabilities.html" title="class in weka.core"><CODE>Capabilities</CODE></A></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" title="class in weka.core">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Method for building a pruneable classifier tree.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html#buildClassifier(weka.core.Instances)">buildClassifier</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html" title="class in weka.classifiers.trees.j48">ClassifierTree</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>datathe</CODE> - data for building the tree<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="collapse()"><!-- --></A><H3>collapse</H3><PRE>public final void <B>collapse</B>()</PRE><DL><DD>Collapses a tree to a node if training error doesn't increase.<P><DD><DL></DL></DD></DL><HR><A NAME="prune()"><!-- --></A><H3>prune</H3><PRE>public void <B>prune</B>() throws java.lang.Exception</PRE><DL><DD>Prunes a tree using C4.5's pruning procedure.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="doGrafting(weka.core.Instances)"><!-- --></A><H3>doGrafting</H3><PRE>public void <B>doGrafting</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Initializes variables for grafting. sets up limits array (for numeric attributes) and calls the recursive function traverseTree.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data for the tree<DT><B>Throws:</B><DD><CODE>exception</CODE> - if anything goes wrong<DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="setDescendents(java.util.ArrayList, weka.classifiers.trees.j48.C45PruneableClassifierTreeG)"><!-- --></A><H3>setDescendents</H3><PRE>public void <B>setDescendents</B>(java.util.ArrayList t, <A HREF="../../../../weka/classifiers/trees/j48/C45PruneableClassifierTreeG.html" title="class in weka.classifiers.trees.j48">C45PruneableClassifierTreeG</A> originalLeaf)</PRE><DL><DD>add the grafted nodes at originalLeaf's position in tree. a recursive function that terminates when t is empty.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the list of nodes to graft<DD><CODE>originalLeaf</CODE> - the leaf that the grafts are replacing</DL></DD></DL><HR><A NAME="biprob(double, double, double)"><!-- --></A><H3>biprob</H3><PRE>public double <B>biprob</B>(double x, double n, double r) throws java.lang.Exception</PRE><DL><DD>Significance test<P><DD><DL><DT><B>Parameters:</B><DD><CODE>double</CODE> - x, double n, double r.<DT><B>Returns:</B><DD>returns the probability of obtaining x or MORE out of n if r proportion of n are positive. z for normal estimation of binomial probability of obtaining x or more out of n, if r proportion of n are positive<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Prints tree structure.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html" title="class in weka.classifiers.trees.j48">ClassifierTree</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the tree structure</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html#getRevision()">getRevision</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierTree.html" title="class in weka.classifiers.trees.j48">ClassifierTree</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../weka/classifiers/trees/j48/C45PruneableClassifierTree.html" title="class in weka.classifiers.trees.j48"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/trees/j48/C45Split.html" title="class in weka.classifiers.trees.j48"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?weka/classifiers/trees/j48/C45PruneableClassifierTreeG.html" target="_top"><B>FRAMES</B></A> <A HREF="C45PruneableClassifierTreeG.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -