apriori2
所属分类:人工智能/神经网络/深度学习
开发工具:Visual C++
文件大小:95KB
下载次数:139
上传日期:2005-05-06 13:59:56
上 传 者:
sunweisp
说明: apriori算法是数据挖掘的经典算法之1,其基于关联规则的思想.这是我的第2个收藏算法
(algorithm is data mining algorithms of a classic algorithms, based on the idea of association rules. This is my first two collections Algorithm)
文件列表:
apriori (0, 2000-12-01)
apriori\doc (0, 2002-01-04)
apriori\doc\apriori.html (54330, 2002-02-13)
apriori\doc\arem.gp (1842, 2002-02-13)
apriori\doc\copying (26428, 2002-02-13)
apriori\doc\c_rev.gp (2343, 2002-02-13)
apriori\doc\line.gif (1017, 2002-02-13)
apriori\doc\uparrow.gif (243, 2002-02-13)
apriori\ex (0, 2002-02-11)
apriori\ex\flg2set (241, 2002-02-13)
apriori\ex\row2set (167, 2002-02-13)
apriori\ex\rulesort (700, 2002-02-13)
apriori\ex\test.app (12, 2002-02-13)
apriori\ex\test.rul (224, 2002-02-13)
apriori\ex\test1.tab (60, 2002-02-13)
apriori\ex\test2.tab (60, 2002-02-13)
apriori\ex\test3.tab (120, 2002-02-13)
apriori\ex\test4.tab (110, 2002-02-13)
apriori\ex\test5.tab (69, 2002-02-13)
apriori\ex\tid2set (337, 2002-02-13)
apriori\src (0, 2002-01-04)
apriori\src\apriori.c (30272, 2002-04-15)
apriori\src\apriori.dsp (3964, 2002-02-19)
apriori\src\apriori.dsw (565, 2002-02-19)
apriori\src\istree.c (54185, 2002-02-19)
apriori\src\istree.h (6707, 2002-02-19)
apriori\src\makefile (3433, 2002-02-19)
apriori\src\tract.c (22807, 2002-02-19)
apriori\src\tract.h (6839, 2002-02-19)
util (0, 2000-12-01)
util\doc (0, 2002-01-04)
util\doc\copying (26428, 2001-10-16)
util\src (0, 2002-01-04)
util\src\listops.c (4166, 2002-02-07)
util\src\listops.h (1062, 2002-02-07)
util\src\makefile (2326, 2002-02-07)
util\src\scan.c (38525, 2002-02-07)
util\src\scan.h (4862, 2002-02-07)
util\src\symtab.c (20953, 2002-02-07)
... ...
The example files in this directory demonstrate how to use the
options -b, -f, and -r and the optional item appearances file.
In the file test1.tab transactions are separated by newline characters
and the items of a transaction are separated by spaces. This is the
standard input format and hence the file can be processed directly:
apriori test1.tab test1.rul
In the file test2.tab the same transactions can be found, but several
different field separators are used. This file can be processed with:
apriori -f ",.;:" -l test3.tab test3.rul
The files test3.tab and test4.tab are in formats that cannot be
processed directly with the apriori program, but which may be common.
In the file test3.tab each line contains a transaction identifier and
an item, separated by a space. This file can be converted into the
standard input format with the script tid2set, i.e., with
tid2set test3.tab x.tab
In the file test4.tab the first line states the item names and the
following lines contain flags T (true) and F (false) depending on
whether the item is contained in the transaction represented by the
line or not. This format can be converted into the standard input
format with the script flg2set, i.e., with
flg2set test4.tab x.tab
In the file test5.tab there is one item per line and transactions
are separated by blank lines. This format can be converted into the
standard input format with the script row2set, i.e., with
row2set test5.tab x.tab
The file test.app demonstrates the use of item appearance indicators.
The first line of this file ('body') states that any item not explicitly
mentioned in this file may appear only in the body of a rule. The second
line says that item 2 may appear only in the head of a rule. Hence, by
processing the file test1.tab with
apriori test1.tab test.rul test.app
only rules with item 2 in the head are generated.
Note that any input may also be read from standard input and any output
may be sent to standard output, simply by specifying a '-' or an empty
string "" instead of a filename. For example
apriori test1.tab -
writes the rules directly to the terminal. They may be piped to any
other program, since all other messages of the apriori program are
written to standard error.
Enjoy,
Christian Borgelt
近期下载者:
相关文件:
收藏者: