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

📄 asparameter-class.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Classes &ldquo;ASparameter&rdquo;, &ldquo;APparameter&rdquo;, &ldquo;ECparameter&rdquo; &mdash;
Specifying the &lsquo;parameter&rsquo; Argument of apriori() and eclat()</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>

<table width="100%" summary="page for ASparameter-classes {arules}"><tr><td>ASparameter-classes {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Classes &ldquo;ASparameter&rdquo;, &ldquo;APparameter&rdquo;, &ldquo;ECparameter&rdquo; &mdash;
Specifying the &lsquo;parameter&rsquo; Argument of apriori() and eclat()</h2>


<h3>Description</h3>

<p>
The <code>ASparameter</code> class holds the mining parameters (e.g., minimum
support) for the used mining algorithms.  <code>APparameter</code> and
<code>ECparameter</code> directly extend <code>ASparameter</code> with additional slots
for parameters only suitable for the Apriori (<code>APparameter</code>) or the
Eclat algorithms (<code>ECparameter</code>).
</p>


<h3>Objects from the Class</h3>

<p>
A suitable default parameter object will be automatically created by
the <code><a href="apriori.html">apriori</a></code> or the <code><a href="eclat.html">eclat</a></code> function.  By
specifying a named list (names equal to slots) as <code>parameter</code>
argument for the <code><a href="apriori.html">apriori</a></code> or the  <code><a href="eclat.html">eclat</a></code>
function, default values can be replaced by the values in the list.
Objects can be created by calls of the form <code>new("APparameter",
    ...)</code> or <code>new("ECparameter", ...)</code>.
</p>


<h3>Slots</h3>

<p>
Common slots defined in <code>ASparameter</code>:
<dl>
<dt><code>support</code>:</dt><dd>a numeric value for the 
minimal support of an item set (default: <i>0.1</i>)</dd>
<dt><code>minlen</code>:</dt><dd>an integer value for the
minimal number of items per item set (default: 1)</dd>
<dt><code>maxlen</code>:</dt><dd>an integer value for the
maximal number of items per item set (default: 5)</dd>
<dt><code>target</code>:</dt><dd>a character string 
indicating the type of association mined.
One of
<ul>
<li><code>"frequent itemsets"</code> 
<li><code>"maximally frequent itemsets"</code>
<li><code>"closed frequent itemsets"</code>
<li><code>"rules"</code> (only available for Apriori) 
<li><code>"hyperedgesets"</code> (only available for Apriori; 
see references for the definition of association hyperedgesets)
</ul>
</dd>
<dt><code>ext</code>:</dt><dd>a logical indicating whether to
produce extended information on quality measures (e.g.,
lhs.support) (default: <code>FALSE</code>)</dd>
</dl>

<p>
Additional slots for Apriori in <code>APparameter</code>:
<dl>
<dt><code>confidence</code>:</dt><dd>a numeric value for the
minimal confidence of rules/association hyperedges (default:
<i>0.8</i>)</dd>
<dt><code>smax</code>:</dt><dd>a numeric value for the
maximal support of itemsets/rules/hyperedgesets (default: 1)</dd>
<dt><code>arem</code>:</dt><dd>a character string indicating the used
additional rule evaluation measure (default: <code>"none"</code>) given 
by one of
<dl>
<dt><code>"none"</code>:</dt><dd>no additional evaluation measure</dd>
<dt><code>"diff"</code>:</dt><dd>absolute confidence difference</dd>
<dt><code>"quot"</code>:</dt><dd>difference of confidence quotient to 1</dd>
<dt><code>"aimp"</code>:</dt><dd>absolute difference of improvement to 1</dd>
<dt><code>"info"</code>:</dt><dd>information difference to prior</dd>
<dt><code>"chi2"</code>:</dt><dd>normalized <i>chi^2</i> measure</dd>
</dl>
</dd>
<dt><code>aval</code>:</dt><dd>a logical indicating whether to
return the additional rule evaluation measure selected with
<code>arem</code>.</dd>
<dt><code>minval</code>:</dt><dd>a numeric value for the
minimal value of additional evaluation measure selected with
<code>arem</code> (default: <i>0.1</i>)</dd>
<dt><code>originalSupport</code>:</dt><dd>a logical indicating whether to
use for minimum support the original definition of the support of
a rule (lhs and rhs) instead of lhs support.  Make sure to use
<code>ext = TRUE</code> if <code>originalSupport</code> is set to <code>FALSE</code>
(default: <code>TRUE</code>)</dd>
</dl>

<p>
Additional slots for Eclat in <code>ECparameter</code>:
<dl>
<dt><code>tidLists</code>:</dt><dd>a logical indicating whether to
return also a list of supporting transactions (transaction IDs)
(default: <code>FALSE</code>)</dd>
</dl>

<h3>Methods</h3>

<dl>
<dt>coerce</dt><dd><code>signature(from = "NULL", to = "APparameter")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "list", to = "APparameter")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "NULL", to = "ECparameter")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "list", to = "ECparameter")</code></dd>
<dt>show</dt><dd><code>signature(object = "ASparameter")</code></dd>
</dl>

<h3>References</h3>

<p>
Christian Borgelt (2004)
<EM>Apriori &mdash; Finding Association Rules/Hyperedges with the Apriori
Algorithm</EM>.
<a href="http://fuzzy.cs.uni-magdeburg.de/~borgelt/apriori.html">http://fuzzy.cs.uni-magdeburg.de/~borgelt/apriori.html</a>
</p>


<h3>See Also</h3>

<p>
<code><a href="apriori.html">apriori</a></code>,
<code><a href="eclat.html">eclat</a></code>
</p>



<hr><div align="center">[Package <em>arules</em> version 0.6-6 <a href="00Index.html">Index]</a></div>

</body></html>

⌨️ 快捷键说明

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