conjunctiverulemodel.html
来自「数据挖掘方面最新软件」· HTML 代码 · 共 686 行 · 第 1/3 页
HTML
686 行
public double <B>predict</B>(<A HREF="../../../../../com/rapidminer/example/Example.html" title="class in com.rapidminer.example">Example</A> example) throws <A HREF="../../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../../com/rapidminer/operator/learner/SimplePredictionModel.html#predict(com.rapidminer.example.Example)">SimplePredictionModel</A></CODE></B></DD><DD>Applies the model to a single example and returns the predicted class value.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/rapidminer/operator/learner/SimplePredictionModel.html#predict(com.rapidminer.example.Example)">predict</A></CODE> in class <CODE><A HREF="../../../../../com/rapidminer/operator/learner/SimplePredictionModel.html" title="class in com.rapidminer.operator.learner">SimplePredictionModel</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></CODE></DL></DD></DL><HR><A NAME="getRuleLength()"><!-- --></A><H3>getRuleLength</H3><PRE>public int <B>getRuleLength</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the number of literals</DL></DD></DL><HR><A NAME="getConclusion()"><!-- --></A><H3>getConclusion</H3><PRE>public int <B>getConclusion</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the label this rule predicts</DL></DD></DL><HR><A NAME="getAttributeOfLiteral(int)"><!-- --></A><H3>getAttributeOfLiteral</H3><PRE>public <A HREF="../../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> <B>getAttributeOfLiteral</B>(int literalNumber)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>literalNumber</CODE> - the number of the literal in the rule<DT><B>Returns:</B><DD>the attribute tested in the specified literal</DL></DD></DL><HR><A NAME="getTestedValueAtLiteral(int)"><!-- --></A><H3>getTestedValueAtLiteral</H3><PRE>public double <B>getTestedValueAtLiteral</B>(int literalNumber)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>literalNumber</CODE> - the number of the literal in the rule<DT><B>Returns:</B><DD>the value an attribute needs to have in order to pass the test of the specified literal</DL></DD></DL><HR><A NAME="getPositionOfAttributeInRule(com.rapidminer.example.Attribute)"><!-- --></A><H3>getPositionOfAttributeInRule</H3><PRE>public int <B>getPositionOfAttributeInRule</B>(<A HREF="../../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> attribute)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - to look for in the conjunctive rule<DT><B>Returns:</B><DD>the position (which is unique) of the attribute in the (ordered) conjunctive rule, or -1, if the attribute has not been found</DL></DD></DL><HR><A NAME="isRefinementOf(com.rapidminer.operator.learner.rules.ConjunctiveRuleModel)"><!-- --></A><H3>isRefinementOf</H3><PRE>public boolean <B>isRefinementOf</B>(<A HREF="../../../../../com/rapidminer/operator/learner/rules/ConjunctiveRuleModel.html" title="class in com.rapidminer.operator.learner.rules">ConjunctiveRuleModel</A> model)</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>model</CODE> - another ConjuctiveRuleModel<DT><B>Returns:</B><DD>true, if this rule is a refinement of the specified rule, or if both rules are equal. A rule refines another one, if it conatains all of its lietrals and predicts the same label.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object object)</PRE><DL><DD>Two rules are equal, if they are both permutations of the same set of literals and predict the same label.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFirstUnusedAttribute(com.rapidminer.example.ExampleSet, com.rapidminer.example.Attribute[])"><!-- --></A><H3>getFirstUnusedAttribute</H3><PRE>protected int <B>getFirstUnusedAttribute</B>(<A HREF="../../../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A> exampleSet, <A HREF="../../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>[] allAttributes)</PRE><DL><DD>Helper method of <code>getAllRefinedRules</code>. Iterates through the Attributes of an ExampleSet and compares them to those part of the rule.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>exampleSet</CODE> - <DT><B>Returns:</B><DD>the index of the first attribute of the exampleSet that is not used in the rule, and for which no later Attribute is found in the rule, either.</DL></DD></DL><HR><A NAME="getAllRefinedRules(com.rapidminer.example.ExampleSet)"><!-- --></A><H3>getAllRefinedRules</H3><PRE>public java.util.Collection<<A HREF="../../../../../com/rapidminer/operator/learner/rules/ConjunctiveRuleModel.html" title="class in com.rapidminer.operator.learner.rules">ConjunctiveRuleModel</A>> <B>getAllRefinedRules</B>(<A HREF="../../../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A> exampleSet) throws <A HREF="../../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></PRE><DL><DD>A refinement method that - when applied sytematically during learning - generates all rules for nominal attributes and a boolean target exactly once. The top-down refinement is compatible with pruning, as long as scores decrerase monotonically in support in the typical sense known from subgroup discovery. Attributes are added in the same order in which they occur in the provided exampleSet.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>exampleSet</CODE> - used to identify attributes and their values for refinement<DT><B>Returns:</B><DD>all refined ConjunctiveRuleModel objects<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></CODE></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="class-use/ConjunctiveRuleModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=114160&type=2" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/rapidminer/operator/learner/rules/BestRuleInduction.RuleWithScoreUpperBound.html" title="class in com.rapidminer.operator.learner.rules"><B>PREV CLASS</B></A> <A HREF="../../../../../com/rapidminer/operator/learner/rules/Criterion.html" title="interface in com.rapidminer.operator.learner.rules"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/rapidminer/operator/learner/rules/ConjunctiveRuleModel.html" target="_top"><B>FRAMES</B></A> <A HREF="ConjunctiveRuleModel.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><i>Copyright © 2001-2008 by <a href="http://rapid-i.com" target="_blank">Rapid-I</a></i></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?