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

📄 ascontrol-class.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Classes &ldquo;AScontrol&rdquo;, &ldquo;APcontrol&rdquo;, &ldquo;ECcontrol&rdquo; &mdash;
Specifying the &lsquo;control&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 AScontrol-classes {arules}"><tr><td>AScontrol-classes {arules}</td><td align="right">R Documentation</td></tr></table>
<h2>Classes &ldquo;AScontrol&rdquo;, &ldquo;APcontrol&rdquo;, &ldquo;ECcontrol&rdquo; &mdash;
Specifying the &lsquo;control&rsquo; Argument of apriori() and eclat()</h2>


<h3>Description</h3>

<p>
The <code>AScontrol</code> class holds the algorithmic parameters for the used
mining algorithms.  <code>APcontrol</code> and <code>ECcontrol</code> directly extend
<code>AScontrol</code> with additional slots for parameters only suitable for the
algorithms Apriori (<code>APcontrol</code>) and Eclat (<code>ECcontrol</code>).
</p>


<h3>Objects from the Class</h3>

<p>
A suitable default control 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>control</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 also be created by calls of the form
<code>new("APcontrol", ...)</code> or <code>new("ECcontrol", ...)</code>.
</p>


<h3>Slots</h3>

<p>
Common slots defined in <code>AScontrol</code>:
<dl>
<dt><code>sort</code>:</dt><dd>an integer scalar indicating how to 
sort items with respect to their frequency: (default: 2)
<dl>
<dt> 1:</dt><dd>ascending</dd>
<dt>-1:</dt><dd>descending</dd>
<dt> 0:</dt><dd>do not sort</dd>
<dt> 2:</dt><dd>ascending</dd>
<dt>-2:</dt><dd>descending with respect to transaction size sum</dd>
</dl>
</dd>
<dt><code>verbose</code>:</dt><dd>a logical indicating whether to
report progress</dd>
</dl>

<p>
Additional slots for Apriori in <code>APcontrol</code>:
<dl>
<dt><code>filter</code>:</dt><dd>a numeric scalar indicating how to
filter unused items from transactions (default: 0.1)
<dl>
<dt><i>=0</i>:</dt><dd>do not filter items with respect to. usage in
sets</dd>
<dt><i>&lt;0</i>:</dt><dd>fraction of removed items for filtering</dd>
<dt><i>&gt;0</i>:</dt><dd>take execution times ratio into account</dd>
</dl>
</dd>
<dt><code>tree</code>:</dt><dd>a logical indicating whether to
organize transactions as a prefix tree (default: <code>TRUE</code>)</dd>
<dt><code>heap</code>:</dt><dd>a logical indicating whether to
use heapsort instead of quicksort to sort the transactions
(default: <code>TRUE</code>)</dd>
<dt><code>memopt</code>:</dt><dd>a logical indicating whether to 
minimize memory usage instead of maximize speed (default:
<code>FALSE</code>)</dd>
<dt><code>load</code>:</dt><dd>a logical indicating whether to
load transactions into memory (default: <code>TRUE</code>)</dd>
</dl>

<p>
Additional slots for Eclat in <code>ECcontrol</code>:
<dl>
<dt><code>sparse</code>:</dt><dd>a numeric value for the
threshold for sparse representation (default: 7)</dd>
</dl>

<h3>Methods</h3>

<dl>
<dt>coerce</dt><dd><code>signature(from = "NULL", to = "APcontrol")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "list", to = "APcontrol")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "NULL", to = "ECcontrol")</code></dd>
<dt>coerce</dt><dd><code>signature(from = "list", to = "ECcontrol")</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 + -