{"id":16766541,"url":"https://github.com/jmpotato/fp-growth-rs","last_synced_at":"2025-03-21T23:33:27.287Z","repository":{"id":57631677,"uuid":"351506299","full_name":"JmPotato/fp-growth-rs","owner":"JmPotato","description":"An implementation of the FP-Growth algorithm in pure Rust.","archived":false,"fork":false,"pushed_at":"2021-04-20T10:12:23.000Z","size":24,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T04:49:06.922Z","etag":null,"topics":["data-mining","fp-growth","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/fp-growth","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JmPotato.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}},"created_at":"2021-03-25T16:37:20.000Z","updated_at":"2024-09-17T07:47:03.000Z","dependencies_parsed_at":"2022-09-04T19:20:31.103Z","dependency_job_id":null,"html_url":"https://github.com/JmPotato/fp-growth-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Ffp-growth-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Ffp-growth-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Ffp-growth-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JmPotato%2Ffp-growth-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JmPotato","download_url":"https://codeload.github.com/JmPotato/fp-growth-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166744,"owners_count":20409179,"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":["data-mining","fp-growth","rust"],"created_at":"2024-10-13T06:06:45.431Z","updated_at":"2025-03-21T23:33:27.002Z","avatar_url":"https://github.com/JmPotato.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fp-growth-rs\n\n[![Crates.io](https://img.shields.io/crates/v/fp-growth)](https://crates.io/crates/fp-growth)\n[![docs.rs](https://img.shields.io/docsrs/fp-growth)](https://docs.rs/fp-growth)\n\nAn implementation of the FP-Growth algorithm in pure Rust, which is inspired by [enaeseth/python-fp-growth](https://github.com/enaeseth/python-fp-growth).\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nfp-growth = \"0.1\"\n```\n\n## Example\n\n```rust\nuse fp_growth::algorithm::FPGrowth;\n\nfn main() {\n    let transactions = vec![\n        vec![\"e\", \"c\", \"a\", \"b\", \"f\", \"h\"],\n        vec![\"a\", \"c\", \"g\"],\n        vec![\"e\"],\n        vec![\"e\", \"c\", \"a\", \"g\", \"d\"],\n        vec![\"a\", \"c\", \"e\", \"g\"],\n        vec![\"e\"],\n        vec![\"a\", \"c\", \"e\", \"b\", \"f\"],\n        vec![\"a\", \"c\", \"d\"],\n        vec![\"g\", \"c\", \"e\", \"a\"],\n        vec![\"a\", \"c\", \"e\", \"g\"],\n        vec![\"i\"],\n    ];\n    let minimum_support = 2;\n    let fp_growth_str = FPGrowth::\u003c\u0026str\u003e::new(transactions, minimum_support);\n\n    let result = fp_growth_str.find_frequent_patterns();\n    println!(\"The number of results: {}\", result.frequent_patterns_num());\n    for (frequent_pattern, support) in result.frequent_patterns().iter() {\n        println!(\"{:?} {}\", frequent_pattern, support);\n    }\n}\n```\n\n## License\n\n`fp-growth-rs` is distributed under the terms of the MIT license.\n\nSee [LICENSE](LICENSE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpotato%2Ffp-growth-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmpotato%2Ffp-growth-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpotato%2Ffp-growth-rs/lists"}