Mindsight Codex
Mindsight Codex
Mindsight Codex
SYSTEM
SHARING POINTS :
● Introduction to Recommender System
● Content based Filtering
● Collaboration Filtering
● Explicit and implicit
● Matrix Factorization
● Hybrid recommendation
● Data pipeline
● Architecture and deployment
INTRODUCTION
RECOMMENDER SYSTEM
Product Recommender System
● System that predict and arrange relevant list of
items that users would purchase
● A lot of products to show? Which ones to
recommend?
The impact of recommendation and personalization
USER-BASED ITEM-BASED
● Uses the similarities ● Uses the similarities
between users between items
● Build a user-to-item matrix ● Build an item-to-user matrix
MEMORY-BASED
COLLABORATIVE
FILTERING
STEP 1
Creating user-to-item matrix
STEP 2
Calculating similarity between
users or items
USER TO ITEM MATRIX
● user 1 has purchased
items B and D
● user 2 has purchased
items A, B, C, and E
● user 4 has purchased
items A, C, and E
CALCULATE COSINE SIMILARITY BETWEEN USER
(1,2) AND (2,4)
USER TO USER ITEM TO ITEM
matrix = df.pivot_table(index='CustomerID',columns='StockCode',values='Quantity',aggfunc='sum'
)
cosine_similarity(matrix)
MATRIX FACTORIZATION
SPARSITY
● A measure how (percentage) empty a matrix is
SPARSITY
● A measure how (percentage) empty a matrix is
GATHERING PREPROCESSING
01 02 DATA
DATA
CREATE
PREDICTION 03 04 INTERACTION
DATA
CREATE
EVALUATION 05 06 RECOMMENDATION
MODEL
DATA MODELING PROCESS (example)
01 02
GATHERING PREPROCESSING
DATA DATA
1. Log Event History user 1.Duplication Check
play content 2.Inconsistency Check
2. User & Content 3.Feature Engineering
Metadata
3. CRM Data
DATA MODELING PROCESS (example)
03 04 05 06