📄 apriori.html
字号:
Set the value of minConfidence.</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/Apriori.html#setNumRules(int)">setNumRules</A></B>(int v)</CODE><BR> Set the value of numRules.</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/Apriori.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[] options)</CODE><BR> Parses a given list of options.</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/Apriori.html#setRemoveAllMissingCols(boolean)">setRemoveAllMissingCols</A></B>(boolean r)</CODE><BR> Remove columns containing all missing values.</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/Apriori.html#setSignificanceLevel(double)">setSignificanceLevel</A></B>(double v)</CODE><BR> Set the value of significanceLevel.</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/Apriori.html#setUpperBoundMinSupport(double)">setUpperBoundMinSupport</A></B>(double v)</CODE><BR> Set the value of upperBoundMinSupport.</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/Apriori.html#significanceLevelTipText()">significanceLevelTipText</A></B>()</CODE><BR> Returns the tip text for this property</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/Apriori.html#toString()">toString</A></B>()</CODE><BR> Outputs the size of all the generated sets of itemsets and the rules.</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/Apriori.html#upperBoundMinSupportTipText()">upperBoundMinSupportTipText</A></B>()</CODE><BR> Returns the tip text for this property</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.associations.Associator"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.associations.<A HREF="../../weka/associations/Associator.html" title="class in weka.associations">Associator</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/associations/Associator.html#forName(java.lang.String, java.lang.String[])">forName</A>, <A HREF="../../weka/associations/Associator.html#makeCopies(weka.associations.Associator, int)">makeCopies</A></CODE></TD></TR></TABLE> <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> <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="TAGS_SELECTION"><!-- --></A><H3>TAGS_SELECTION</H3><PRE>public static final <A HREF="../../weka/core/Tag.html" title="class in weka.core">Tag</A>[] <B>TAGS_SELECTION</B></PRE><DL><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="Apriori()"><!-- --></A><H3>Apriori</H3><PRE>public <B>Apriori</B>()</PRE><DL><DD>Constructor that allows to sets default values for the minimum confidence and the maximum number of rules the minimum confidence.<P></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="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this associator<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the evaluator suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="resetOptions()"><!-- --></A><H3>resetOptions</H3><PRE>public void <B>resetOptions</B>()</PRE><DL><DD>Resets the options to the default values.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="buildAssociations(weka.core.Instances)"><!-- --></A><H3>buildAssociations</H3><PRE>public void <B>buildAssociations</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances) throws java.lang.Exception</PRE><DL><DD>Method that generates all large itemsets with a minimum support, and from these all association rules with a minimum confidence.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/associations/Associator.html#buildAssociations(weka.core.Instances)">buildAssociations</A></CODE> in class <CODE><A HREF="../../weka/associations/Associator.html" title="class in weka.associations">Associator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - the instances to be used for generating the associations<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if rules can't be built successfully</DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options.</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -N required number of rules <br> The required number of rules (default: 10). <p> -T type of metric by which to sort rules <br> 0 = confidence | 1 = lift | 2 = leverage | 3 = Conviction. <p> -C minimum metric score of a rule <br> The minimum confidence of a rule (default: 0.9). <p> -D delta for minimum support <br> The delta by which the minimum support is decreased in each iteration (default: 0.05). -U upper bound for minimum support <br> The upper bound for minimum support. Don't explicitly look for rules with more than this level of support. <p> -M lower bound for minimum support <br> The lower bound for the minimum support (default = 0.1). <p> -S significance level <br> If used, rules are tested for significance at the given level. Slower (default = no significance testing). <p> -I <br> If set the itemsets found are also output (default = no). <p> -V <br> If set then progress is reported iteratively during execution. <p> -R <br> If set then columns that contain all missing values are removed from the data. <p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of the Apriori object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Outputs the size of all the generated sets of itemsets and the rules.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeAllMissingColsTipText()"><!-- --></A><H3>removeAllMissingColsTipText</H3><PRE>public java.lang.String <B>removeAllMissingColsTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setRemoveAllMissingCols(boolean)"><!-- --></A><H3>setRemoveAllMissingCols</H3><PRE>public void <B>setRemoveAllMissingCols</B>(boolean r)</PRE><DL><DD>Remove columns containing all missing values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - true if cols are to be removed.</DL></DD></DL><HR><A NAME="getRemoveAllMissingCols()"><!-- --></A><H3>getRemoveAllMissingCols</H3><PRE>public boolean <B>getRemoveAllMissingCols</B>()</PRE><DL><DD>Returns whether columns containing all missing values are to be removed<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if columns are to be removed.</DL></DD></DL><HR><A NAME="upperBoundMinSupportTipText()"><!-- --></A><H3>upperBoundMinSupportTipText</H3><PRE>public java.lang.String <B>upperBoundMinSupportTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getUpperBoundMinSupport()"><!-- --></A><H3>getUpperBoundMinSupport</H3><PRE>public double <B>getUpperBoundMinSupport</B>()</PRE><DL><DD>Get the value of upperBoundMinSupport.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of upperBoundMinSupport.</DL></DD></DL><HR><A NAME="setUpperBoundMinSupport(double)"><!-- --></A><H3>setUpperBoundMinSupport</H3><PRE>public void <B>setUpperBoundMinSupport</B>(double v)</PRE><DL><DD>Set the value of upperBoundMinSupport.<P><DD><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -