Efficient-Apriori:Apriori算法的高效Python实现-源码

上传者: 42166623 | 上传时间: 2021-09-11 09:30:28 | 文件大小: 316KB | 文件类型: ZIP
高效先验 Apriori算法的高效纯Python实现。 适用于Python 3.6及更高版本。 先验算法发现分类数据中的隐藏结构。 经典示例是一个数据库,其中包含从超市购买的商品。 每次购买都有许多与之相关的物品。 我们想从数据中发现关联规则,例如{bread, eggs} -> {bacon} 。 这是的目标,而可以说是解决此问题的最著名算法。 该存储库包含apriori算法的有效,经过测试的实现,如Agrawal等人于1994年发表的中所述。 该代码是稳定的并且被广泛使用。 Bonaccorso在《精通机器学习算法》一书中对此进行了引用。 例子 这是一个最小的工作示例。 请注意,在每次有eggs交易中,也有bacon 。 因此,将以100%的置信度返回规则{eggs} -> {bacon} 。 from efficient_apriori import apriori tran

文件下载

资源详情

[{"title":"( 27 个子文件 316KB ) Efficient-Apriori:Apriori算法的高效Python实现-源码","children":[{"title":"Efficient-Apriori-master","children":[{"title":"DEPLOY.md <span style='color:#111;'> 649B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"build.yml <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"requirements.txt <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"efficient_apriori","children":[{"title":"rules.py <span style='color:#111;'> 14.14KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"itemsets.py <span style='color:#111;'> 15.22KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_apriori.py <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"test_rules.py <span style='color:#111;'> 5.77KB </span>","children":null,"spread":false},{"title":"test_on_real_data.py <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"transactions.txt <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"test_itemsets.py <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"test_itemsets_with_ids.py <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"adult_data_cleaned.txt <span style='color:#111;'> 2.09MB </span>","children":null,"spread":false}],"spread":true},{"title":"apriori.py <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"setup.py <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"presentation","children":[{"title":"apriori.pdf <span style='color:#111;'> 179.32KB </span>","children":null,"spread":false},{"title":"figs","children":[{"title":"apriori_software_functions.pdf <span style='color:#111;'> 17.72KB </span>","children":null,"spread":false},{"title":"apriori_software_functions.graphml <span style='color:#111;'> 17.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"apriori.tex <span style='color:#111;'> 22.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"source","children":[{"title":"conf.py <span style='color:#111;'> 5.77KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"make.bat <span style='color:#111;'> 825B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 618B </span>","children":null,"spread":false}],"spread":true},{"title":".readthedocs.yml <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明