Association Rule Learning
Apriori
How it works
The association scenario can be movie or product recommendations: "People watched/bought A also watched/bought what.... B or C or something else?
- set a minimum support and confidence
- take all the subsets in transactions having higher support than minimum support
- take all the association rules of these subjects having higher confidence than minimum confidence
- sort the rules by decreasing lift
sklearn
does not include Apriori modules!!! Useapyori
instead.
Pros & Cons
- pros
- results are intuitive and interpretatable
- exhaustive approach as it finds all rules based on the confidence and support
- cons
- generates many uninteresting itemsets
- computationally and memory intensive
- results in many overlapping item sets
Eclat
Eclat is similar to Apriori but only uses support
How it works
- set a minimum support
- take all the subsets in transactions having higher support than minimum support
- sort these subsets by decreasing support