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

📄 rule.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#overFrequencyThreshold(double)">overFrequencyThreshold</A></B>(double&nbsp;minFrequency)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if this rule is over the frequency threshold.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../weka/associations/tertius/SimpleLinkedList.html" title="class in weka.associations.tertius">SimpleLinkedList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#refine(java.util.ArrayList)">refine</A></B>(java.util.ArrayList&nbsp;predicates)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Refine a rule by adding literal from a set of predictes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#rocToString()">rocToString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a String giving the TP-rate and FP-rate of  this rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#sameClauseAs(weka.associations.tertius.Rule)">sameClauseAs</A></B>(<A HREF="../../../weka/associations/tertius/Rule.html" title="class in weka.associations.tertius">Rule</A>&nbsp;otherRule)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if this rule and another rule correspond to the same clause.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#subsumes(weka.associations.tertius.Rule)">subsumes</A></B>(<A HREF="../../../weka/associations/tertius/Rule.html" title="class in weka.associations.tertius">Rule</A>&nbsp;otherRule)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Test if this rule subsumes another rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrun a String for this rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#upDate(weka.core.Instances)">upDate</A></B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;instances)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the number of counter-instances of this rule in the dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/associations/tertius/Rule.html#valuesToString()">valuesToString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a String giving the confirmation and optimistic estimate of  this rule.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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="confirmationComparator"><!-- --></A><H3>confirmationComparator</H3><PRE>public static java.util.Comparator <B>confirmationComparator</B></PRE><DL><DD>Comparator used to compare two rules according to their confirmation value.<P><DL></DL></DL><HR><A NAME="observedComparator"><!-- --></A><H3>observedComparator</H3><PRE>public static java.util.Comparator <B>observedComparator</B></PRE><DL><DD>Comparator used to compare two rules according to their observed number of counter-instances.<P><DL></DL></DL><HR><A NAME="optimisticComparator"><!-- --></A><H3>optimisticComparator</H3><PRE>public static java.util.Comparator <B>optimisticComparator</B></PRE><DL><DD>Comparator used to compare two rules according to their optimistic estimate.<P><DL></DL></DL><HR><A NAME="confirmationThenObservedComparator"><!-- --></A><H3>confirmationThenObservedComparator</H3><PRE>public static java.util.Comparator <B>confirmationThenObservedComparator</B></PRE><DL><DD>Comparator used to compare two rules according to their confirmation and  then their observed number of counter-instances.<P><DL></DL></DL><HR><A NAME="optimisticThenObservedComparator"><!-- --></A><H3>optimisticThenObservedComparator</H3><PRE>public static java.util.Comparator <B>optimisticThenObservedComparator</B></PRE><DL><DD>Comparator used to compare two rules according to their optimistic estimate and then their observed number of counter-instances.<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="Rule(boolean, int, boolean, boolean, boolean, boolean)"><!-- --></A><H3>Rule</H3><PRE>public <B>Rule</B>(boolean&nbsp;repeatPredicate,            int&nbsp;maxLiterals,            boolean&nbsp;negBody,            boolean&nbsp;negHead,            boolean&nbsp;classRule,            boolean&nbsp;horn)</PRE><DL><DD>Constructor for a rule when the counter-instances are not stored, giving all the constraints applied to this rule.<P><DT><B>Parameters:</B><DD><CODE>repeatPredicate</CODE> - True if predicates can be repeated.<DD><CODE>maxLiterals</CODE> - Maximum number of literals.<DD><CODE>negBody</CODE> - True if negation is allowed in the body.<DD><CODE>negHead</CODE> - True if negation is allowed in the head.<DD><CODE>classRule</CODE> - True if the rule is a classification rule.<DD><CODE>horn</CODE> - True if the rule is a horn clause.</DL><HR><A NAME="Rule(weka.core.Instances, boolean, int, boolean, boolean, boolean, boolean)"><!-- --></A><H3>Rule</H3><PRE>public <B>Rule</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;instances,            boolean&nbsp;repeatPredicate,            int&nbsp;maxLiterals,            boolean&nbsp;negBody,            boolean&nbsp;negHead,            boolean&nbsp;classRule,            boolean&nbsp;horn)</PRE><DL><DD>Constructor for a rule when the counter-instances are stored, giving all the constraints applied to this rule. The counter-instances are initialized to all the instances in the dataset.<P><DT><B>Parameters:</B><DD><CODE>instances</CODE> - The dataset.<DD><CODE>repeatPredicate</CODE> - True if predicates can be repeated.<DD><CODE>maxLiterals</CODE> - Maximum number of literals.<DD><CODE>negBody</CODE> - True if negation is allowed in the body.<DD><CODE>negHead</CODE> - True if negation is allowed in the head.<DD><CODE>classRule</CODE> - True if the rule is a classification rule.<DD><CODE>horn</CODE> - True if the rule is a horn clause.</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="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Returns a shallow copy of this rule. The structured is copied but the literals themselves are not copied.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A copy of this Rule.</DL></DD></DL><HR><A NAME="counterInstance(weka.core.Instance)"><!-- --></A><H3>counterInstance</H3><PRE>public boolean <B>counterInstance</B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</PRE><DL><DD>Test if an instance is a counter-instance of this rule.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - The instance to test.<DT><B>Returns:</B><DD>True if the instance is a counter-instance.</DL></DD></DL><HR><A NAME="upDate(weka.core.Instances)"><!-- --></A><H3>upDate</H3><PRE>public void <B>upDate</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;instances)</PRE><DL><DD>Update the number of counter-instances of this rule in the dataset. This method should be used is the rule does not store its counter-instances.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - The dataset.</DL></DD></DL><HR><A NAME="getConfirmation()"><!-- --></A><H3>getConfirmation</H3><PRE>public double <B>getConfirmation</B>()</PRE><DL><DD>Get the confirmation value of this rule.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The confirmation.</DL></DD></DL><HR><A NAME="getOptimistic()"><!-- --></A><H3>getOptimistic</H3><PRE>public double <B>getOptimistic</B>()</PRE><DL><DD>Get the optimistic estimate of the confirmation obtained by refining this rule.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The optimistic estimate.</DL></DD></DL><HR><A NAME="getExpectedNumber()"><!-- --></A><H3>getExpectedNumber</H3><PRE>public double <B>getExpectedNumber</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getExpectedFrequency()"><!-- --></A><H3>getExpectedFrequency</H3><PRE>public double <B>getExpectedFrequency</B>()</PRE><DL><DD>Get the expected frequency of counter-instances of this rule.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The expected frequency of counter-instances.</DL></DD></DL><HR><A NAME="getObservedNumber()"><!-- --></A><H3>getObservedNumber</H3><PRE>public int <B>getObservedNumber</B>()</PRE><DL><DD>Get the observed number of counter-instances of this rule in the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The observed number of counter-instances.</DL></DD></DL><HR><A NAME="getObservedFrequency()"><!-- --></A><H3>getObservedFrequency</H3><PRE>public double <B>getObservedFrequency</B>()</PRE><DL><DD>Get the observed frequency of counter-instances of this rule in the dataset.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The expected frequency of counter-instances.</DL></DD></DL><HR><A NAME="getTPRate()"><!-- --></A><H3>getTPRate</H3><PRE>public double <B>getTPRate</B>()</PRE><DL><DD>Get the rate of True Positive instances of this rule.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -