itemset.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 813 行 · 第 1/3 页

HTML
813
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the counter</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#setItem(int[])">setItem</A></B>(int[]&nbsp;items)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an item sets</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#setItemAt(int, int)">setItemAt</A></B>(int&nbsp;value,          int&nbsp;k)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the index of an attribute value</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" title="class in weka.core">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" title="class in weka.core">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;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" title="class in weka.core">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" title="class in weka.core">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" title="class in weka.core">FastVector</A>&nbsp;itemSets,               <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;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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ItemSet(int)"><!-- --></A><H3>ItemSet</H3><PRE>public <B>ItemSet</B>(int&nbsp;totalTrans)</PRE><DL><DD>Constructor<P><DL><DT><B>Parameters:</B><DD><CODE>totalTrans</CODE> - the total number of transactions in the data</DL></DL><HR><A NAME="ItemSet(int, int[])"><!-- --></A><H3>ItemSet</H3><PRE>public <B>ItemSet</B>(int&nbsp;totalTrans,               int[]&nbsp;array)</PRE><DL><DD>Constructor<P><DL><DT><B>Parameters:</B><DD><CODE>totalTrans</CODE> - the total number of transactions in the data<DD><CODE>array</CODE> - the attribute values encoded in an int array</DL></DL><HR><A NAME="ItemSet(int[])"><!-- --></A><H3>ItemSet</H3><PRE>public <B>ItemSet</B>(int[]&nbsp;array)</PRE><DL><DD>Contsructor<P><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the item set represented as an int array</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="containedBy(weka.core.Instance)"><!-- --></A><H3>containedBy</H3><PRE>public boolean <B>containedBy</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</PRE><DL><DD>Checks if an instance contains an item set.<P><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" title="class in weka.core">FastVector</A> <B>deleteItemSets</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;itemSets,                                        int&nbsp;minSupport,                                        int&nbsp;maxSupport)</PRE><DL><DD>Deletes all item sets that don't have minimum support.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxSupport</CODE> - the maximum support<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 boolean <B>equals</B>(java.lang.Object&nbsp;itemSet)</PRE><DL><DD>Tests if two item sets are equal.<P><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></DD></DL><HR><A NAME="getHashtable(weka.core.FastVector, int)"><!-- --></A><H3>getHashtable</H3><PRE>public static java.util.Hashtable <B>getHashtable</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;itemSets,                                               int&nbsp;initialSize)</PRE><DL><DD>Return a hashtable filled with the given item sets.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemSets</CODE> - the set of item sets to be used for filling the hash table<DD><CODE>initialSize</CODE> - the initial size of the hashtable<DT><B>Returns:</B><DD>the generated hashtable</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Produces a hash code for a item set.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hash code for a set of items</DL></DD></DL><HR><A NAME="mergeAllItemSets(weka.core.FastVector, int, int)"><!-- --></A><H3>mergeAllItemSets</H3><PRE>public static <A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A> <B>mergeAllItemSets</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;itemSets,                                          int&nbsp;size,                                          int&nbsp;totalTrans)</PRE><DL><DD>Merges all item sets in the set of (k-1)-item sets to create the (k)-item sets and updates the counters.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>totalTrans</CODE> - thetotal number of transactions<DD><CODE>itemSets</CODE> - the set of (k-1)-item sets<DD><CODE>size</CODE> - the value of (k-1)<DT><B>Returns:</B><DD>the generated (k)-item sets</DL></DD></DL><HR><A NAME="pruneItemSets(weka.core.FastVector, java.util.Hashtable)"><!-- --></A><H3>pruneItemSets</H3><PRE>public static <A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A> <B>pruneItemSets</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;toPrune,                                       java.util.Hashtable&nbsp;kMinusOne)</PRE><DL><DD>Prunes a set of (k)-item sets using the given (k-1)-item sets.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>toPrune</CODE> - the set of (k)-item sets to be pruned<DD><CODE>kMinusOne</CODE> - the (k-1)-item sets to be used for pruning<DT><B>Returns:</B><DD>the pruned set of item sets</DL></DD></DL><HR><A NAME="pruneRules(weka.core.FastVector[], double)"><!-- --></A><H3>pruneRules</H3><PRE>public static void <B>pruneRules</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>[]&nbsp;rules,                              double&nbsp;minConfidence)</PRE><DL><DD>Prunes a set of rules.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rules</CODE> - a two-dimensional array of lists of item sets. The first list of item sets contains the premises, the second one the consequences.<DD><CODE>minConfidence</CODE> - the minimum confidence the rules have to have</DL></DD>

⌨️ 快捷键说明

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