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?

support(M)=# user watchlists containing M# user watchlistsconfidence(M1>M2)=# user watchlists containing M1 and M2# user watchlists containing M1lift(M1>M2)=confidence(M1>M2)support(M1)
  1. set a minimum support and confidence
  2. take all the subsets in transactions having higher support than minimum support
  3. take all the association rules of these subjects having higher confidence than minimum confidence
  4. sort the rules by decreasing lift

sklearn does not include Apriori modules!!! Use apyori instead.

Pros & Cons

Eclat

Eclat is similar to Apriori but only uses support

How it works

  1. set a minimum support
  2. take all the subsets in transactions having higher support than minimum support
  3. sort these subsets by decreasing support