📄 apriori.html
字号:
<DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/associations/CARuleMiner.html#getInstancesOnlyClass()">getInstancesOnlyClass</A></CODE> in interface <CODE><A HREF="../../weka/associations/CARuleMiner.html" title="interface in weka.associations">CARuleMiner</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the class attribute of all instances.</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. <p/> <!-- options-start --> Valid options are: <p/> <pre> -N <required number of rules output> The required number of rules. (default = 10)</pre> <pre> -T <0=confidence | 1=lift | 2=leverage | 3=Conviction> The metric type by which to rank rules. (default = confidence)</pre> <pre> -C <minimum metric score of a rule> The minimum confidence of a rule. (default = 0.9)</pre> <pre> -D <delta for minimum support> The delta by which the minimum support is decreased in each iteration. (default = 0.05)</pre> <pre> -U <upper bound for minimum support> Upper bound for minimum support. (default = 1.0)</pre> <pre> -M <lower bound for minimum support> The lower bound for the minimum support. (default = 0.1)</pre> <pre> -S <significance level> If used, rules are tested for significance at the given level. Slower. (default = no significance testing)</pre> <pre> -I If set the itemsets found are also output. (default = no)</pre> <pre> -R Remove columns that contain all missing values (default = no)</pre> <pre> -V Report progress iteratively. (default = no)</pre> <pre> -A If set class association rules are mined. (default = no)</pre> <pre> -c <the class index> The class index. (default = last)</pre> <!-- options-end --><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><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of the model</DL></DD></DL><HR><A NAME="metricString()"><!-- --></A><H3>metricString</H3><PRE>public java.lang.String <B>metricString</B>()</PRE><DL><DD>Returns the metric string for the chosen metric type<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/associations/CARuleMiner.html#metricString()">metricString</A></CODE> in interface <CODE><A HREF="../../weka/associations/CARuleMiner.html" title="interface in weka.associations">CARuleMiner</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string describing the used metric for the interestingness of a class association rule</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></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to upperBoundMinSupport.</DL></DD></DL><HR><A NAME="setClassIndex(int)"><!-- --></A><H3>setClassIndex</H3><PRE>public void <B>setClassIndex</B>(int index)</PRE><DL><DD>Sets the class index<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/associations/CARuleMiner.html#setClassIndex(int)">setClassIndex</A></CODE> in interface <CODE><A HREF="../../weka/associations/CARuleMiner.html" title="interface in weka.associations">CARuleMiner</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the class index</DL></DD></DL><HR><A NAME="getClassIndex()"><!-- --></A><H3>getClassIndex</H3><PRE>public int <B>getClassIndex</B>()</PRE><DL><DD>Gets the class index<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index of the class attribute</DL></DD></DL><HR><A NAME="classIndexTipText()"><!-- --></A><H3>classIndexTipText</H3><PRE>public java.lang.String <B>classIndexTipText</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="setCar(boolean)"><!-- --></A><H3>setCar</H3><PRE>public void <B>setCar</B>(boolean flag)</PRE><DL><DD>Sets class association rule mining<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - if class association rules are mined, false otherwise</DL></DD></DL><HR><A NAME="getCar()"><!-- --></A><H3>getCar</H3><PRE>public boolean <B>getCar</B>()</PRE><DL><DD>Gets whether class association ruels are mined<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if class association rules are mined, false otherwise</DL></DD></DL><HR><A NAME="carTipText()"><!-- --></A><H3>carTipText</H3><PRE>public java.lang.String <B>carTipText</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="lowerBoundMinSupportTipText()"><!-- --></A><H3>lowerBoundMinSupportTipText</H3><PRE>public java.lang.String <B>lowerBoundMinSupportTipText</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="getLowerBoundMinSupport()"><!-- --></A><H3>getLowerBoundMinSupport</H3><PRE>public double <B>getLowerBoundMinSupport</B>()</PRE><DL><DD>Get the value of lowerBoundMinSupport.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of lowerBoundMinSupport.</DL></DD></DL><HR><A NAME="setLowerBoundMinSupport(double)"><!-- --></A><H3>setLowerBoundMinSupport</H3><PRE>public void <B>setLowerBoundMinSupport</B>(double v)</PRE><DL><DD>Set the value of lowerBoundMinSupport.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to lowerBoundMinSupport.</DL></DD></DL><HR><A NAME="getMetricType()"><!-- --></A><H3>getMetricType</H3><PRE>public <A HREF="../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getMetricType</B>()</PRE><DL><DD>Get the metric type<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of metric to use for ranking rules</DL></DD></DL><HR><A NAME="metricTypeTipText()"><!-- --></A><H3>metricTypeTipText</H3><PRE>public java.lang.String <B>metricTypeTipText</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="setMetricType(weka.core.SelectedTag)"><!-- --></A><H3>setMetricType</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -