apriori(arules)

apriori()所属R语言包:arules



                                        Mining Associations with Apriori

                                         矿业协会的Apriori



                                         译者:生物统计家园网 机器人LoveR



描述----------Description----------



Mine frequent itemsets, association rules or association hyperedges using the Apriori algorithm.  The Apriori algorithm employs level-wise search for frequent itemsets.  The implementation of Apriori used includes some improvements (e.g., a prefix tree and
item sorting).

矿山频繁项集,关联规则或团体使用Apriori算法的超边。 Apriori算法采用水平明智的搜索频繁项集。使用Apriori算法的实现,包括了一些改进(例如,前缀树和项目分类)。





用法----------Usage----------





apriori(data, parameter = NULL, appearance = NULL, control = NULL)







参数----------Arguments----------



参数:data

object of class transactions or any data structure which can be coerced into transactions (e.g., a binary matrix or data.frame).


对象类transactions或任何数据结构,可以将其强制transactions(例如,一个二进制矩阵或数据框)。





参数:parameter

object of class APparameter or named list. The default behavior is to mine rules with support 0.1, confidence 0.8, and maxlen 10.


对象的类APparameter或命名列表。默认的行为是挖掘规则,支持0.8,0.1,信心和MAXLEN 10。





参数:appearance

object of class APappearance or named list. With this argument item appearance can be restricted. By default all items can appear unrestricted.


对象的类APappearance或命名列表。使用该参数项目外观受到限制。默认情况下,所有项目都可以出现无限制的。





参数:control

object of class APcontrol or named list. Controls the performance of the mining algorithm (item sorting, etc.)


对象的类APcontrol或命名列表。控制性能的挖掘算法(项目排序,等等)





Details



详细信息----------Details----------



Calls the C implementation of the Apriori algorithm by Christian Borgelt for mining frequent itemsets, rules or hyperedges.

调用C语言实现的基督教Borgelt Apriori算法挖掘频繁项集,规则或超边。



Note: Apriori only creates rules with one item in the RHS (Consequent)!

注:Apriori算法只创建一个项目规则的RHS(因之)!



Note: The default value in APparameter for minlen is 1. This means that rules with only one item (i.e., an empty antecedent/LHS) like

注:中的默认值APparameterminlen是1。这意味着,只有一个项目的规则(即一个空的先行/ LHS)如



will be created.  These rules mean that no matter what other items are involved the  item in the RHS will appear with the probability given by the rule's confidence (which equals the support). If you want to avoid these rules then use  the argument parameter=list(minlen=2).

将被创建。这些规则意味着,无论什么其他项目所涉及的项目在RHS中会出现的概率规则的信心(相等于支持)。如果你想避免这些规则,然后使用参数parameter=list(minlen=2)。





值----------Value----------



Returns an object of class rules or itemsets.

返回对象类rules或itemsets。





参考文献----------References----------



between sets of items in large databases. In Proceedings of the ACM SIGMOD International Conference on Management of Data, pages 207–216, Washington D.C.

Apriori Implementation. 15th Conference on Computational Statistics (COMPSTAT 2002, Berlin, Germany) Physica Verlag, Heidelberg, Germany.

Eclat.  Workshop of Frequent Item Set Mining Implementations (FIMI 2003, Melbourne, FL, USA).



参见----------See Also----------



APparameter-class, APcontrol-class, APappearance-class, transactions-class, itemsets-class, rules-class

APparameter-class,APcontrol-class,APappearance-class,transactions-class,itemsets-class,rules-class





实例----------Examples----------





data("Adult")

## Mine association rules.[矿的关联规则。]

rules <- apriori(Adult,

                 parameter = list(supp = 0.5, conf = 0.9,

                                  target = "rules"))

summary(rules)



转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。

R语言 arules包 apriori()函数中文帮助文档(中英文对照)的更多相关文章

  1. R语言kohonen包主要函数介绍

    最近准备写一篇关于自组织映射 (Self-organizing map)的文章.SOM的代码很多,研究了一圈之后目前使用最顺手的是R语言的kohonen包. 这个kohonen包功能很丰富,但是接口不 ...

  2. R语言 ggplot2包

    R语言  ggplot2包的学习   分析数据要做的第一件事情,就是观察它.对于每个变量,哪些值是最常见的?值域是大是小?是否有异常观测? ggplot2图形之基本语法: ggplot2的核心理念是将 ...

  3. R语言-神经网络包RSNNS

    code{white-space: pre;} pre:not([class]) { background-color: white; }if (window.hljs && docu ...

  4. R语言dplyr包初探

    昨天学了一下R语言dplyr包,处理数据框还是很好用的.记录一下免得我忘记了... 先写一篇入门的,以后有空再写一篇详细的用法. #dplyr learning library(dplyr) #fil ...

  5. R语言-Knitr包的详细使用说明

    R语言-Knitr包的详细使用说明 by 扬眉剑 来自数盟[总舵] 群:321311420 1.相关资料 1:自动化报告-谢益辉 https://github.com/yihui/r-ninja/bl ...

  6. R语言扩展包dplyr——数据清洗和整理

    R语言扩展包dplyr——数据清洗和整理 标签: 数据R语言数据清洗数据整理 2015-01-22 18:04 7357人阅读 评论(0) 收藏 举报  分类: R Programming(11)  ...

  7. 安装R语言的包的方法

    安装R语言的包的方法: 1. 在线安装 在R的控制台,输入类似install.packages("TSA")  # 安装 TSA install.packages("TS ...

  8. python 和 R 语言 中的 range() 函数

    1.python 中的 range() 函数生成整数序列,常用于 for 循环的迭代. 示例: 2.R 语言中的 range() 函数返回一个数值向量中的最小值和最大中,常用于求极差. 示例: 按语: ...

  9. C语言函数库帮助文档

    C语言函数库帮助文档 安装 1.C语言库函数基本的帮助文档 sudo apt-get install manpages sudo apt-get install manpages-de sudo ap ...

随机推荐

  1. [原创]java WEB学习笔记20:MVC案例完整实践(part 1)---MVC架构分析

    本博客为原创:综合 尚硅谷(http://www.atguigu.com)的系统教程(深表感谢)和 网络上的现有资源(博客,文档,图书等),资源的出处我会标明 本博客的目的:①总结自己的学习过程,相当 ...

  2. Spring Cloud之Feigin客户端重构思想

    应该重构接口信息(重点) toov5-parent  存放共同依赖信息 toov5-api       api的只有接口没有实现 toov5-api-member toov5-api-order to ...

  3. SpringCloud之服务提供和服务调用的搭建

    pom文件: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3 ...

  4. Spring Cloud之服务治理(注册发现)

    服务治理SpringCloud Eureka 什么是服务治理 在传统rpc远程调用中,服务与服务依赖关系,管理比较复杂,所以需要使用服务治理,管理服务与服务之间依赖关系,可以实现服务调用.负载均衡.容 ...

  5. 编码,charset,乱码,unicode,utf-8与net简单释义

    1.文件分为文本文件和二进制文件﹐不过本质都一样﹐都是些01. 2.计算机存储设备存储的0或1﹐称为计算机的一个二进制位(bit). 3.二进制文件的0和1有专门的应用程序来读﹐所以它们没有什么乱不乱 ...

  6. 在windows下进行linux开发:利用Vagrant+virtualbox

    1,介绍Vagrant 我们做web开发的时候经常要安装各种本地测试环境,比如apache,php,mysql,redis等等.出于个人使用习惯,可能我们还是比较习惯用windows.虽然说在wind ...

  7. idea集成spring+spring MVC+mybatis问题

    1.如果mybatis的xml文件放在java文件夹下(idea不会编译src的java目录的xml文件),需要在pom.xml中加入以下代码: <build> <resources ...

  8. PHP基础陷阱题(变量赋值)

    PHP基础陷阱题代码,需要的朋友可以参考下   复制代码 代码如下: <?php $a=3; $b=6; if($a=5||$b=7){ $a++; $b++; } var_dump($a, $ ...

  9. zoj1360/poj1328 Radar Installation(贪心)

    对每个岛屿,能覆盖它的雷达位于线段[x-sqrt(d*d-y*y),x+sqrt(d*d+y*y)],那么把每个岛屿对应的线段求出来后,其实就转化成了经典的贪心法案例:区间选点问题.数轴上有n个闭区间 ...

  10. linux命令学习笔记(21):find命令之xargs

    xargs是一条Unix和类Unix操作系统的常用命令.它的作用是将参数列表转换成小块分段传递给其他命令,以避免参数列表过长的问题 xargs的作用一般等同于大多数Unix shell中的反引号,但更 ...