{"id":16654181,"url":"https://github.com/letmefly666/fp-growth","last_synced_at":"2025-10-23T22:24:02.907Z","repository":{"id":107870048,"uuid":"479884505","full_name":"LetMeFly666/FP-growth","owner":"LetMeFly666","description":"FP-growth算法实现关联规则的数据挖掘","archived":false,"fork":false,"pushed_at":"2022-04-24T08:38:38.000Z","size":1962,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T20:11:41.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fp-growth.letmefly.xyz","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LetMeFly666.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-10T01:31:14.000Z","updated_at":"2024-11-26T07:34:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"b938caed-d0c4-4b22-a4ca-0ae0c0305333","html_url":"https://github.com/LetMeFly666/FP-growth","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FFP-growth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FFP-growth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FFP-growth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LetMeFly666%2FFP-growth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LetMeFly666","download_url":"https://codeload.github.com/LetMeFly666/FP-growth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085277,"owners_count":21045138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T09:48:59.897Z","updated_at":"2025-10-23T22:24:02.822Z","avatar_url":"https://github.com/LetMeFly666.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Author: LetMeFly\n * @Date: 2022-04-10 09:40:57\n * @LastEditors: LetMeFly\n * @LastEditTime: 2022-04-15 22:00:41\n--\u003e\n# FP-growth\n\nFP-growth算法实现关联规则的数据挖掘\n\n+ 在线文档 [https://fp-growth.letmefly.xyz](https://fp-growth.letmefly.xyz)\n\n+ 项目地址 [https://github.com/LetMeFly666/FP-growth](https://github.com/LetMeFly666/FP-growth)\n\n+ See [Apriori(https://github.com/LetMeFly666/Apriori)](https://github.com/LetMeFly666/Apriori) For More\n\n本次决定先实现代码再进行优化，否则直接开始想具体哪种最优的话太慢了。\n\n## 使用方法\n\n```bash\nFP-growth[.exe] [-i DATANAME] [-s SUPPORT] [-o RESULT] [-h] [-p]\n```\n\n其中```[]```中的内容表示可选。\n\n### 参数列表\n\n|参数| 是否必选 | 类型 | 描述 |\n| :--: |:--: |:--: |:--: |\n| ```-i``` | ✖ | 输入文件名 | 如果参数中有```-i```，那么程序将会以此参数的下一个参数作为输入文件。如```FP-growth -i source/retail.dat``` |\n| ```-s``` | ✖ | 最小支持度 | 如果参数中有```-s```，那么程序将会以此参数的下一个参数作为[最小支持度(百分比)](#minSupport)。如```FP-growth -s 1.25%``` |\n| ```-o``` | ✖ | 重定向输出 | 如果参数中有```-o```，那么程序将会重定向输出到下一个参数所代表的文件中。如```FP-growth -o output.txt```。相当于```FP-growth \u003e output.txt```。提示性信息如\"请输入数据文件名\"不会重定向到该指定文件中。 |\n| ```-h``` | ✖ | 显示帮助 | 如果参数中有```-h```，那么程序将会打开在线帮助文档[https://fp-growth.letmefly.xyz](https://fp-growth.letmefly.xyz)。 |\n| ```-p``` | ✖ | 执行完暂停 | 如果参数中有```-p```，那么程序执行完将不会退出控制台，而是等待一个任意的按键。 |\n| ```-d``` | ✖ | Debug | 如果参数中有```-d```，那么程序将会绘制递归计算流程图，（仅对数据量很小如source/min.dat等数据范围在[0,26]的小数据有效）有效 |\n\n#### 最小支持度 \u003ca id=\"minSupport\"\u003e\u003c/a\u003e\n\n|方式 | 类型 | 格式 | 描述 |\n| :--: |:--: |:--: |:--: |\n| 方式一 | 百分比 | 百分数 | 可以输入一个```＞0```的百分数来表示 **最小支持度为交易条数的百分之几** 。 例如```FP-growth -s 1.25%``` 。百分数中允许```小数```的出现。|\n| 方式二 | 正整数 | 正整数 | 可以输入一个正整数来表示 **最小支持度是几** 。例如```FP-growth -s 100```。 正整数中不允许小数的出现 |\n\n### 错误类型\n\n程序运行过程中可能会产生一些错误，其中一些将会被捕获的错误列表如下：\n\n| 程序返回值 | 错误类型 | 描述 |\n| :--: | :--: | :--: |\n| ```0``` | 程序无误 | 正确运行 |\n| ```1``` | 参数不足 | 如```-i```后需要参数```DATANAME```，但若```-i```后没有此参数将会返回此错误 |\n| ```2``` | 无法打开文件 | 无法读入输入文件，请检查输入文件是否存在 |\n| ```3``` | 不合法支持度 | 支持度输入不合法：整数支持度但出现非数字字符 |\n| ```4``` | 不合法支持度 | 支持度输入不合法：输入了空的支持度 |\n| ```5``` | 不合法支持度 | 支持度输入不合法：%位置没有出现在支持度最后 |\n| ```6``` | 不合法支持度 | 支持度输入不合法：.位置不合法或出现了不只一个. |\n| ```7``` | 不合法支持度 | 支持度输入不合法：百分比方法且出现其他不合法字符 |\n\n### Example\n\n+ ```fp-growth -i source/min2.dat -s 3 -d```\n\n   运行结果(详见[source/result/visualize_min2_s3.svg](source/result/visualize_min2_s3.svg))：\n\n   \u003cimg src=\"source/result/visualize_min2_s3.svg\"\u003e\n\n## Release\n\n\u003cdetails\u003e\n\u003csummary\u003eMSVC所需DLL\u003c/summary\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/Dlls.Because.of.Visual.Sutdio.rar\"\u003eDlls.Because.of.Visual.Sutdio.rar\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/msvcp140.dll\"\u003emsvcp140.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/msvcp140d.dll\"\u003emsvcp140d.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/ucrtbased.dll\"\u003eucrtbased.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/vcruntime140.dll\"\u003evcruntime140.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/vcruntime140d.dll\"\u003evcruntime140d.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/vcruntime140_1.dll\"\u003evcruntime140_1.dll\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/DLLs%2CstaticFilesAndSoOn/vcruntime140_1d.dll\"\u003evcruntime140_1d.dll\u003c/a\u003e\u003c/li\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ev1.0.1\u003c/summary\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x64-Release.exe\"\u003eFP-growth-v1.0.1-x64-Release.exe\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://download.fastgit.org/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x64-Release.exe\"\u003eFP-growth-v1.0.1-x64-Release.exe\u003c/a\u003e镜像地址\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x64-Release-WithDLLs.zip\"\u003eFP-growth-v1.0.1-x64-Release-WithDLLs.zip\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x64-Debug.exe\"\u003eFP-growth-v1.0.1-x64-Debug.exe\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x64-Release-WithDLLs.zip\"\u003eFP-growth-v1.0.1-x64-Release-WithDLLs.zip\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x86-Release.exe\"\u003eFP-growth-v1.0.1-x86-Release.exe\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x86-Release-WithDLLs.zip\"\u003eFP-growth-v1.0.1-x86-Release-WithDLLs.zip\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x86-Debug.exe\"\u003eFP-growth-v1.0.1-x86-Debug.exe\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/LetMeFly666/FP-growth/releases/download/v1.0.1/FP-growth-v1.0.1-x86-Debug-WithDLLs.zip\"\u003eFP-growth-v1.0.1-x86-Debug-WithDLLs.zip\u003c/a\u003e\u003c/li\u003e\n\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletmefly666%2Ffp-growth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletmefly666%2Ffp-growth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletmefly666%2Ffp-growth/lists"}