📄 itemset.html
字号:
to create the (k)-item sets and updates the counters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../weka/core/FastVector.html">FastVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#pruneItemSets(weka.core.FastVector, java.util.Hashtable)">pruneItemSets</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> toPrune, java.util.Hashtable kMinusOne)</CODE><BR> Prunes a set of (k)-item sets using the given (k-1)-item sets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#pruneRules(weka.core.FastVector[], double)">pruneRules</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A>[] rules, double minConfidence)</CODE><BR> Prunes a set of rules.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../weka/core/FastVector.html">FastVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#singletons(weka.core.Instances)">singletons</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A> instances)</CODE><BR> Converts the header info of the given set of instances into a set of item sets (singletons).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/associations/ItemSet.html">ItemSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#subtract(weka.associations.ItemSet)">subtract</A></B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> toSubtract)</CODE><BR> Subtracts an item set from another one.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#support()">support</A></B>()</CODE><BR> Outputs the support for an item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#toString(weka.core.Instances)">toString</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A> instances)</CODE><BR> Returns the contents of an item set as a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#upDateCounter(weka.core.Instance)">upDateCounter</A></B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance)</CODE><BR> Updates counter of item set with respect to given transaction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#upDateCounters(weka.core.FastVector, weka.core.Instances)">upDateCounters</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> itemSets, <A HREF="../../weka/core/Instances.html">Instances</A> instances)</CODE><BR> Updates counters for a set of item sets and a set of instances.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_items"><!-- --></A><H3>m_items</H3><PRE>protected int[] <B>m_items</B></PRE><DL><DD>The items stored as an array of of ints.</DL><HR><A NAME="m_counter"><!-- --></A><H3>m_counter</H3><PRE>protected int <B>m_counter</B></PRE><DL><DD>Counter for how many transactions contain this item set.</DL><HR><A NAME="m_totalTransactions"><!-- --></A><H3>m_totalTransactions</H3><PRE>protected int <B>m_totalTransactions</B></PRE><DL><DD>The total number of transactions</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ItemSet(int)"><!-- --></A><H3>ItemSet</H3><PRE>public <B>ItemSet</B>(int totalTrans)</PRE><DL><DD>Constructor<DD><DL><DT><B>Parameters:</B><DD><CODE>totalTrans</CODE> - the total number of transactions in the data</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="confidenceForRule(weka.associations.ItemSet, weka.associations.ItemSet)"><!-- --></A><H3>confidenceForRule</H3><PRE>public static double <B>confidenceForRule</B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence)</PRE><DL><DD>Outputs the confidence for a rule.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise of the rule<DD><CODE>consequence</CODE> - the consequence of the rule<DT><B>Returns:</B><DD>the confidence on the training data</DL></DD></DL><HR><A NAME="liftForRule(weka.associations.ItemSet, weka.associations.ItemSet, int)"><!-- --></A><H3>liftForRule</H3><PRE>public double <B>liftForRule</B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int consequenceCount)</PRE><DL><DD>Outputs the lift for a rule. Lift is defined as:<br> confidence / prob(consequence)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise of the rule<DD><CODE>consequence</CODE> - the consequence of the rule<DD><CODE>consequenceCount</CODE> - how many times the consequence occurs independent of the premise<DT><B>Returns:</B><DD>the lift on the training data</DL></DD></DL><HR><A NAME="leverageForRule(weka.associations.ItemSet, weka.associations.ItemSet, int, int)"><!-- --></A><H3>leverageForRule</H3><PRE>public double <B>leverageForRule</B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int premiseCount, int consequenceCount)</PRE><DL><DD>Outputs the leverage for a rule. Leverage is defined as: <br> prob(premise & consequence) - (prob(premise) * prob(consequence))<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise of the rule<DD><CODE>consequence</CODE> - the consequence of the rule<DD><CODE>premiseCount</CODE> - how many times the premise occurs independent of the consequent<DD><CODE>consequenceCount</CODE> - how many times the consequence occurs independent of the premise<DT><B>Returns:</B><DD>the leverage on the training data</DL></DD></DL><HR><A NAME="convictionForRule(weka.associations.ItemSet, weka.associations.ItemSet, int, int)"><!-- --></A><H3>convictionForRule</H3><PRE>public double <B>convictionForRule</B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int premiseCount, int consequenceCount)</PRE><DL><DD>Outputs the conviction for a rule. Conviction is defined as: <br> prob(premise) * prob(!consequence) / prob(premise & !consequence)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise of the rule<DD><CODE>consequence</CODE> - the consequence of the rule<DD><CODE>premiseCount</CODE> - how many times the premise occurs independent of the consequent<DD><CODE>consequenceCount</CODE> - how many times the consequence occurs independent of the premise<DT><B>Returns:</B><DD>the conviction on the training data</DL></DD></DL><HR><A NAME="containedBy(weka.core.Instance)"><!-- --></A><H3>containedBy</H3><PRE>public final boolean <B>containedBy</B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance)</PRE><DL><DD>Checks if an instance contains an item set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be tested<DT><B>Returns:</B><DD>true if the given instance contains this item set</DL></DD></DL><HR><A NAME="deleteItemSets(weka.core.FastVector, int, int)"><!-- --></A><H3>deleteItemSets</H3><PRE>public static <A HREF="../../weka/core/FastVector.html">FastVector</A> <B>deleteItemSets</B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> itemSets, int minSupport, int maxSupport)</PRE><DL><DD>Deletes all item sets that don't have minimum support.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemSets</CODE> - the set of item sets to be pruned<DD><CODE>minSupport</CODE> - the minimum number of transactions to be covered<DT><B>Returns:</B><DD>the reduced set of item sets</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public final boolean <B>equals</B>(java.lang.Object itemSet)</PRE><DL><DD>Tests if two item sets are equal.<DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemSet</CODE> - another item set<DT><B>Returns:</B><DD>true if this item set contains the same items as the given one</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -