{"id":23248322,"url":"https://github.com/hawmex/apriori","last_synced_at":"2026-05-15T18:05:00.347Z","repository":{"id":186396659,"uuid":"442724199","full_name":"Hawmex/apriori","owner":"Hawmex","description":"Association Rule Learning with Apriori.","archived":false,"fork":false,"pushed_at":"2023-08-21T20:09:10.000Z","size":2336,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T07:22:26.262Z","etag":null,"topics":["apriori-algorithm","association-rule-learning","dart"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/Hawmex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-29T09:32:30.000Z","updated_at":"2024-05-07T03:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"9043a588-a767-4c2f-8e93-b85c74c44adc","html_url":"https://github.com/Hawmex/apriori","commit_stats":null,"previous_names":["hawmex/apriori"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hawmex%2Fapriori","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hawmex%2Fapriori/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hawmex%2Fapriori/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hawmex%2Fapriori/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hawmex","download_url":"https://codeload.github.com/Hawmex/apriori/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419863,"owners_count":20936014,"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":["apriori-algorithm","association-rule-learning","dart"],"created_at":"2024-12-19T08:13:25.675Z","updated_at":"2026-05-15T18:05:00.313Z","avatar_url":"https://github.com/Hawmex.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Association Rule Learning with Apriori\n\nThis repository contains a command-line application written in Dart that\nuncovers the association rules within a list of transactions.\n\n## Getting Started\n\n### Install the Application\n\n```\ncd ..\n```\n\n```\ndart pub global activate apriori -s=path\n```\n\n### Prepare Input Files\n\nYou need to prepare two files:\n\n- A JSON file containing your transactions\n- A JSON file containing your settings and preferences\n\n#### Transactions Scheme\n\n```ts\ntype Transactions = string[][];\n```\n\n#### Options Scheme\n\n```ts\ntype Options = {\n  transactionsPath: string;\n  rulesPath: string;\n  minSupport: number;\n  minConfidence: number;\n  maxAntecedentsLength: number;\n};\n```\n\n### Run the Application\n\nYou can run the application using the following command:\n\n```\napriori options.json\n```\n\n## Example\n\n### `transactions.json`\n\n```json\n[\n  [\"tropical fruit\", \"yogurt\", \"coffee\"],\n  [\"whole milk\"],\n  [\"pip fruit\", \"yogurt\", \"cream cheese\", \"meat spreads\"]\n]\n```\n\n### `options.json`\n\n```json\n{\n  \"transactionsPath\": \"transactions.json\",\n  \"rulesPath\": \"rules.json\",\n  \"minSupport\": 0.006,\n  \"minConfidence\": 0.07\n}\n```\n\n### Learning the Association Rules\n\n```\napriori options.json\n```\n\nYou can look at [`example/`](./example/) for more information.\n\n## Performance\n\nThis application can extract and learn the association rules within the\ntransactions at [`example/`](./example/) in ~55 seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawmex%2Fapriori","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhawmex%2Fapriori","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawmex%2Fapriori/lists"}