Skip to content

PuspakRout/Recomender_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Recommendation-system

The aim of this project is to recommend products using various similarity scores when products purchased, the brand of the products, the purchase order, stock keeping units (sku), and two levels higher above the product level namely, 'l1' and 'l2'.

Methodology

I took an object oriented approach to solve this problem. I created two different classes, 'data_prep' , 'recommender_class'. I use the above mentioned classes in my notebook for the following purposes:

  • Data preparation - Removed those entries whose number of orders count were less than 3 and created dummies for the product column. Converted the matrix into boolean type.
  • Creating a recommender system - The boolean matrix prepared by me for finding Jaccard similarity scores between two items.
    - Created an empty symmetric matrix that contains only the item names in both the rows and columns.
    - Obtained similarity scores by applying Jaccard similarity formula (intersection / union) on the boolean matrix.
    - Dot product is performed between the boolean matrix and the similarity matrix to create the recommendation matrix.
    - Sorted the similarity scores in the descending order and accordingly, recommended the products.

Technologies/Libraries Used

- Python 3
- Jupyter
- Pandas
- Numpy
- Seaborn
- Scikit-Learn
- itertools

Dataset

The dataset consists of five columns:

  • Order Number: The boolean matrix was created based on each unique order number using groupby method.
  • L1: The least granular level of products
  • L2: The second level of products
  • L3: The products purchased
  • sku: The stock keeping units of the products
  • brand: The brand associated with each product

Summary

Applying Jaccard similarity score, a recommender engine was created.This model can be used as a guide when determining which products to recommend to customers who have the same purchase behaviour.

About

Recomender System using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors