📄 labeleditemset.html
字号:
<DD>Constructor<P><DT><B>Parameters:</B><DD><CODE>totalTrans</CODE> - the total number of transactions<DD><CODE>classLabel</CODE> - the class lebel</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="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> itemSets, int minSupport, int maxSupport)</PRE><DL><DD>Deletes all item sets that don't have minimum support and have more than maximum 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 final boolean <B>equals</B>(java.lang.Object itemSet)</PRE><DL><DD>Tests if two item sets are equal.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/associations/ItemSet.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A></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="equalCondset(java.lang.Object)"><!-- --></A><H3>equalCondset</H3><PRE>public final boolean <B>equalCondset</B>(java.lang.Object itemSet)</PRE><DL><DD>Compares two item sets<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemSet</CODE> - an item set<DT><B>Returns:</B><DD>true if the the item sets are equal, false otherwise</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> itemSets, int 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="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> itemSets, int size, int 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> - the total 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="divide(weka.core.Instances, boolean)"><!-- --></A><H3>divide</H3><PRE>public static <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>divide</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, boolean invert) throws java.lang.Exception</PRE><DL><DD>Splits the class attribute away. Depending on the invert flag, the instances without class attribute or only the class attribute of all instances is returned<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - the instances<DD><CODE>invert</CODE> - flag; if true only the class attribute remains, otherweise the class attribute is the only attribute that is deleted.<DT><B>Returns:</B><DD>Instances without the class attribute or instances with only the class attribute<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - exception if instances cannot be splitted</DL></DD></DL><HR><A NAME="singletons(weka.core.Instances, weka.core.Instances)"><!-- --></A><H3>singletons</H3><PRE>public static <A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A> <B>singletons</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instancesNoClass, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> classes) throws java.lang.Exception</PRE><DL><DD>Converts the header info of the given set of instances into a set of item sets (singletons). The ordering of values in the header file determines the lexicographic order. Each item set knows its class label.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instancesNoClass</CODE> - instances without the class attribute<DD><CODE>classes</CODE> - the values of the class attribute sorted according to instances<DT><B>Returns:</B><DD>a set of item sets, each containing a single item<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if singletons can't be generated successfully</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> toPrune, java.util.Hashtable 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="support()"><!-- --></A><H3>support</H3><PRE>public final int <B>support</B>()</PRE><DL><DD>Outputs the support for an item set.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/associations/ItemSet.html#support()">support</A></CODE> in class <CODE><A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the support</DL></DD></DL><HR><A NAME="upDateCounter(weka.core.Instance, weka.core.Instance)"><!-- --></A><H3>upDateCounter</H3><PRE>public final void <B>upDateCounter</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instanceNoClass, <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instanceClass)</PRE><DL><DD>Updates counter of item set with respect to given transaction.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instanceNoClass</CODE> - instances without the class attribute<DD><CODE>instanceClass</CODE> - the values of the class attribute sorted according to instances</DL></DD></DL><HR><A NAME="upDateCounters(weka.core.FastVector, weka.core.Instances, weka.core.Instances)"><!-- --></A><H3>upDateCounters</H3><PRE>public static void <B>upDateCounters</B>(<A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A> itemSets, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instancesNoClass, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instancesClass)</PRE><DL><DD>Updates counter of a specific item set<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemSets</CODE> - an item sets<DD><CODE>instancesNoClass</CODE> - instances without the class attribute<DD><CODE>instancesClass</CODE> - the values of the class attribute sorted according to instances</DL></DD></DL><HR><A NAME="generateRules(double, boolean)"><!-- --></A><H3>generateRules</H3><PRE>public final <A HREF="../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>[] <B>generateRules</B>(double minConfidence, boolean noPrune)</PRE><DL><DD>Generates rules out of item sets<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minConfidence</CODE> - the minimum confidence<DD><CODE>noPrune</CODE> - flag indicating whether the rules are pruned accoridng to the minimum confidence value<DT><B>Returns:</B><DD>a set of rules</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=3 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="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="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations"><B>PREV CLASS</B></A> <A HREF="../../weka/associations/PredictiveApriori.html" title="class in weka.associations"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="LabeledItemSet.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></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -