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

📄 itemset.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 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&nbsp;<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>&nbsp;toPrune,              java.util.Hashtable&nbsp;kMinusOne)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>[]&nbsp;rules,           double&nbsp;minConfidence)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prunes a set of rules.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<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>&nbsp;instances)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;toSubtract)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#support()">support</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;instances)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;instance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;itemSets,               <A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;instances)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates counters for a set of item sets and a set of instances.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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&nbsp;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>&nbsp;premise,                                       <A HREF="../../weka/associations/ItemSet.html">ItemSet</A>&nbsp;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>&nbsp;premise,                          <A HREF="../../weka/associations/ItemSet.html">ItemSet</A>&nbsp;consequence,                          int&nbsp;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>&nbsp;premise,                              <A HREF="../../weka/associations/ItemSet.html">ItemSet</A>&nbsp;consequence,                              int&nbsp;premiseCount,                              int&nbsp;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>&nbsp;premise,                                <A HREF="../../weka/associations/ItemSet.html">ItemSet</A>&nbsp;consequence,                                int&nbsp;premiseCount,                                int&nbsp;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>&nbsp;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>&nbsp;itemSets,                                        int&nbsp;minSupport,                                        int&nbsp;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&nbsp;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 + -