项目作者: reshma78611

项目描述 :
Association Rules using Python.
高级语言: Python
项目地址: git://github.com/reshma78611/Association-Rules-using-Python.git


Association-Rules-using-Python

Association Rules:

Also called as Market Basket Analysis or Affinity Analysis or Relationship mining.

Objective:

  1. To find best rules

How can Association Rules be used ?

  1. 1. Promotion on one item, raise price of related item
  2. 2. Placement in Store
  3. 3. Stocking
  4. 4. Product bundling

Rule Form

  1. Antecedent ---> Consequent [ support,confidence ] And lift

Apriori Algorithm for Association Rules:

  1. For K products,
  2. 1. Set min support criteria
  3. 2. Generalize list of 1-item sets that meet support criteria
  4. 3. Use list of 1-item sets to generate list of 2-item sets that meet support criteria
  5. 4. Use list of 2-item sets to generate list of 3-item sets that meet support criteria
  6. 5.continue up to K-item sets

How to clean these rules ?

  1. We also get duplicate or repeated rules, such rules can be cleaned
  2. We check for lift ratio, if having more lift ratio we keep that and discard other one

Data Used:

  1. Groceries, Book, My_movies

Programming:

  1. Python

The Codes regarding this Association Rules with its datasets Groceries, Book, My_movies are present in this Repository in detail