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

📄 rule.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - set of instances serving as training data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the rule has not been generated successfully</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>Calculates a prediction for an instance using this rule or M5 model tree<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the prediction<DT><B>Throws:</B><DD><CODE>if</CODE> - a prediction can't be made.<DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="topOfTree()"><!-- --></A><H3>topOfTree</H3><PRE>public <A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html" title="class in weka.classifiers.trees.m5">RuleNode</A> <B>topOfTree</B>()</PRE><DL><DD>Returns the top of the tree.<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>Return a description of the m5 tree or rule<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the m5 tree or rule as a String</DL></DD></DL><HR><A NAME="setUnpruned(boolean)"><!-- --></A><H3>setUnpruned</H3><PRE>public void <B>setUnpruned</B>(boolean&nbsp;unpruned)</PRE><DL><DD>Use unpruned tree/rules<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>unpruned</CODE> - true if unpruned tree/rules are to be generated</DL></DD></DL><HR><A NAME="getUnpruned()"><!-- --></A><H3>getUnpruned</H3><PRE>public boolean <B>getUnpruned</B>()</PRE><DL><DD>Get whether unpruned tree/rules are being generated<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if unpruned tree/rules are to be generated</DL></DD></DL><HR><A NAME="setUseTree(boolean)"><!-- --></A><H3>setUseTree</H3><PRE>public void <B>setUseTree</B>(boolean&nbsp;u)</PRE><DL><DD>Use an m5 tree rather than generate rules<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>u</CODE> - true if m5 tree is to be used</DL></DD></DL><HR><A NAME="getUseTree()"><!-- --></A><H3>getUseTree</H3><PRE>public boolean <B>getUseTree</B>()</PRE><DL><DD>get whether an m5 tree is being used rather than rules<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if an m5 tree is being used.</DL></DD></DL><HR><A NAME="setSmoothing(boolean)"><!-- --></A><H3>setSmoothing</H3><PRE>public void <B>setSmoothing</B>(boolean&nbsp;s)</PRE><DL><DD>Smooth predictions<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - true if smoothing is to be used</DL></DD></DL><HR><A NAME="getSmoothing()"><!-- --></A><H3>getSmoothing</H3><PRE>public boolean <B>getSmoothing</B>()</PRE><DL><DD>Get whether or not smoothing has been turned on<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if smoothing is being used</DL></DD></DL><HR><A NAME="notCoveredInstances()"><!-- --></A><H3>notCoveredInstances</H3><PRE>public <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>notCoveredInstances</B>()</PRE><DL><DD>Get the instances not covered by this rule<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the instances not covered</DL></DD></DL><HR><A NAME="getRegressionTree()"><!-- --></A><H3>getRegressionTree</H3><PRE>public boolean <B>getRegressionTree</B>()</PRE><DL><DD>Get the value of regressionTree.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of regressionTree.</DL></DD></DL><HR><A NAME="setRegressionTree(boolean)"><!-- --></A><H3>setRegressionTree</H3><PRE>public void <B>setRegressionTree</B>(boolean&nbsp;newregressionTree)</PRE><DL><DD>Set the value of regressionTree.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newregressionTree</CODE> - Value to assign to regressionTree.</DL></DD></DL><HR><A NAME="setMinNumInstances(double)"><!-- --></A><H3>setMinNumInstances</H3><PRE>public void <B>setMinNumInstances</B>(double&nbsp;minNum)</PRE><DL><DD>Set the minumum number of instances to allow at a leaf node<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minNum</CODE> - the minimum number of instances</DL></DD></DL><HR><A NAME="getMinNumInstances()"><!-- --></A><H3>getMinNumInstances</H3><PRE>public double <B>getMinNumInstances</B>()</PRE><DL><DD>Get the minimum number of instances to allow at a leaf node<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>double</code> value</DL></DD></DL><HR><A NAME="getM5RootNode()"><!-- --></A><H3>getM5RootNode</H3><PRE>public <A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html" title="class in weka.classifiers.trees.m5">RuleNode</A> <B>getM5RootNode</B>()</PRE><DL><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/m5/PreConstructedLinearModel.html" title="class in weka.classifiers.trees.m5"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/classifiers/trees/m5/RuleNode.html" title="class in weka.classifiers.trees.m5"><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="Rule.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 + -