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

📄 classifiertree.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)                     throws java.lang.Exception</PRE><DL><DD>Method for building a classifier tree.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="buildTree(weka.core.Instances, boolean)"><!-- --></A><H3>buildTree</H3><PRE>public void <B>buildTree</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                      boolean&nbsp;keepData)               throws java.lang.Exception</PRE><DL><DD>Builds the tree structure.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data for which the tree structure is to be generated.<DD><CODE>keepData</CODE> - is training data to be kept?<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="buildTree(weka.core.Instances, weka.core.Instances, boolean)"><!-- --></A><H3>buildTree</H3><PRE>public void <B>buildTree</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;train,                      <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;test,                      boolean&nbsp;keepData)               throws java.lang.Exception</PRE><DL><DD>Builds the tree structure with hold out set<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>train</CODE> - the data for which the tree structure is to be generated.<DD><CODE>test</CODE> - the test data for potential pruning<DD><CODE>keepData</CODE> - is training Data to be kept?<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</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>&nbsp;instance)                        throws java.lang.Exception</PRE><DL><DD>Classifies an instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="cleanup(weka.core.Instances)"><!-- --></A><H3>cleanup</H3><PRE>public final void <B>cleanup</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;justHeaderInfo)</PRE><DL><DD>Cleanup in order to save memory.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="distributionForInstance(weka.core.Instance, boolean)"><!-- --></A><H3>distributionForInstance</H3><PRE>public final double[] <B>distributionForInstance</B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                                              boolean&nbsp;useLaplace)                                       throws java.lang.Exception</PRE><DL><DD>Returns class probabilities for a weighted instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="assignIDs(int)"><!-- --></A><H3>assignIDs</H3><PRE>public int <B>assignIDs</B>(int&nbsp;lastID)</PRE><DL><DD>Assigns a uniqe id to every node in the tree.<P><DD><DL></DL></DD><DD><DL></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 described by a string<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="prefix()"><!-- --></A><H3>prefix</H3><PRE>public java.lang.String <B>prefix</B>()                        throws java.lang.Exception</PRE><DL><DD>Returns tree in prefix order.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="toSource(java.lang.String)"><!-- --></A><H3>toSource</H3><PRE>public java.lang.StringBuffer[] <B>toSource</B>(java.lang.String&nbsp;className)                                  throws java.lang.Exception</PRE><DL><DD>Returns source code for the tree as an if-then statement. The  class is assigned to variable "p", and assumes the tested  instance is named "i". The results are returned as two stringbuffers:  a section of code for assignment of the class, and a section of code containing support code (eg: other support methods).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the classname that this static classifier has<DT><B>Returns:</B><DD>an array containing two stringbuffers, the first string containing assignment code, and the second containing source for support code.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="numLeaves()"><!-- --></A><H3>numLeaves</H3><PRE>public int <B>numLeaves</B>()</PRE><DL><DD>Returns number of leaves in tree structure.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="numNodes()"><!-- --></A><H3>numNodes</H3><PRE>public int <B>numNodes</B>()</PRE><DL><DD>Returns number of nodes in tree structure.<P><DD><DL></DL></DD><DD><DL></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></DL></DD><DD><DL></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=3 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>&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="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html" title="class in weka.classifiers.trees.j48"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/classifiers/trees/j48/Distribution.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" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ClassifierTree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -