Feature/apriori association rules#12956
Feature/apriori association rules#12956simoderyouch wants to merge 12 commits intoTheAlgorithms:masterfrom
Conversation
c3297f0 to
68a201c
Compare
95faadd to
eca4fdb
Compare
|
I’ve added a new custom Apriori algorithm implementation that:
✔️ All pre-commit and CI checks are passing. Could someone please review and validate the code for merging? |
|
فك بند |
|
analysis, aims to discover interesting relationships or associations among a set of For example, Apriori Algorithm states: "If a customer buys item A and item B, then they
|
1 similar comment
|
analysis, aims to discover interesting relationships or associations among a set of For example, Apriori Algorithm states: "If a customer buys item A and item B, then they
|
|
Yeah, that’s what Apriori does, but I don’t understand the rest of the comment. |
…lift)
Describe your change:
This pull request adds a Custom Apriori algorithm implementation that finds frequent itemsets and generates association rules using support, confidence, and lift.
The implementation is inspired by the existing Apriori algorithm in the repo but adds:
1 - Support, confidence, and lift calculations for association rules.
2 - Confidence and lift as separate class methods for clarity and reuse.
3 - A load_data() example for demonstration and doctest purposes.
4 - Proper filtering of rules using minimum support, confidence, and lift thresholds.
References:
Wikipedia: Apriori algorithm
Example dataset: included in load_data() function for doctest.
Checklist: