SlideShare uma empresa Scribd logo
1 de 64
Baixar para ler offline
Thank you
19 min searching
300 million viewers
5 billion hours wasted per year
at least once a week
19 min searching
300 million viewers
5 billion hours wasted per year
at least once a week
Recommendation Engine
Information filtering systems
Deal with choice overload
Focused on user’s:
Preferences
Interest
Observed Behavior
Recommendation Engine – Examples
Facebook–“People You May Know”
Netflix–“Other Movies You May Enjoy”
LinkedIn–“Jobs You May Be Interested In”
Amazon–“Customer who bought this item
also bought …”
YouTube–“Recommended Videos”
Google–“Search results adjusted”
Pinterest–“Recommended Images”
Plan for Today
1. Collaborative Filtering 

- User-User

- Item-Item

- User-Item
2. Content-Based
3. Hybrid Model
4. In Production
Collaborative Filtering
1. Collaborative Filtering
recommend
buy
buy
1. Collaborative Filtering – Rating Matrix
D( , ) = 4 ∈ {∅,1,2,3,4,5}
r. , = 4 − 3 = 1 ∈ {∅, -2,-1,0,1,2}
Rating data:
Re-centered rating data:
1. Collaborative Filtering – Similarity Function
Real function that quantify the similarity between two objects.
1 − ||a − b||2 = 1 −
n
∑
i=1
(ai − bi)2
1 − ||a − b||1 = 1 −
n
∑
i=1
|ai − bi |
1 − ||a − b||p = 1 −
(
n
∑
i=1
|ai − bi |p
)
1/p
a⊤
b
||a||2 ||b||2
=
∑
n
i=1
aibi
∑
n
i=1
a2
i ∑
n
i=1
b2
i
sim(a, b) = …
1. Collaborative Filtering – Similarity Function
Real function that quantify the similarity between two objects.
1 − ||a − b||2 = 1 −
n
∑
i=1
(ai − bi)2
1 − ||a − b||1 = 1 −
n
∑
i=1
|ai − bi |
1 − ||a − b||p = 1 −
(
n
∑
i=1
|ai − bi |p
)
1/p
a⊤
b
||a||2 ||b||2
=
∑
n
i=1
aibi
∑
n
i=1
a2
i ∑
n
i=1
b2
i
sim(a, b) = …
1. Collaborative Filtering – User-User
1. Collaborative Filtering – User-User
sim( , ) = -0.95
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
1. Collaborative Filtering – User-User
-0.95
1.00
0.00
-1.00
0.00
1. Collaborative Filtering – User-User
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) = -0.95
1.00
0.00
-1.00
0.00
1. Collaborative Filtering – User-User
̂yu,i =
∑
u′
sim(u′, u)ru′,i
Rating prediction:
4.0
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) = -0.95
1.00
0.00
-1.00
0.00
1. Collaborative Filtering – User-User
̂yu,i =
∑
u′
sim(u′, u)ru′,i
Rating prediction:
4.0 1.0 1.5
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) = -0.95
1.00
0.00
-1.00
0.00
1. Collaborative Filtering – User-User
̂yu,i =
∑
u′
sim(u′, u)ru′,i
Rating prediction:
Recommendation:
argmax
i
̂yu,i
1.0 1.54.0
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) =
sim( , ) = -0.95
1.00
0.00
-1.00
0.00
1. Collaborative Filtering – User-User Benefits
- “People who bought that also bought that”

- Good when #items >> #users

1. Collaborative Filtering – User-User Challenges
- Sparsity

- Don’t scale – Nearest Neighbors requires computation that grows with
the number of users and items 

- Model Too Simplistic – Accuracy of recommendation may be poor
1. Collaborative Filtering – Item-Item
1. Collaborative Filtering – Item-Item
sim( , ) = -0.95
-0.95
1. Collaborative Filtering – Item-Item
-1.00 -1.00 -0.95 1.00 0.00 1.00
1. Collaborative Filtering – Item-Item
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
1. Collaborative Filtering – Item-Item
1.00 0.00 -1.00 0.00 -1.001
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
1. Collaborative Filtering – Item-Item
1.00 0.00 -1.00 0.00 -1.001
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
1. Collaborative Filtering – Item-Item
̂yu,i =
∑
i′
ru,i′ sim(i′, i)
1.00 0.00 -1.00 0.00 -1.001
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
1.4 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
1. Collaborative Filtering – Item-Item
1.5 5.0
1.00 0.00 -1.00 0.00 -1.001
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
1.4 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
̂yu,i =
∑
i′
ru,i′ sim(i′, i)
1. Collaborative Filtering – Item-Item
5.0
1.00 0.00 -1.00 0.00 -1.001
-0.95 -1.00 1.001.00-1.00 1
-1.00 -1.00 -0.95 1.00 0.00 1.00
5.01.4 1.5
̂yu,i =
∑
i′
ru,i′ sim(i′, i)
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
1. Collaborative Filtering – Item-Item Benefits
- “If you like this you might also like that”

- Good when #users >> #items

- Very fast after the item-item table has been pre-computed
1. Collaborative Filtering – Item-Item Challenges
- Bottleneck – similarity computation

- Space complexity – dense item-item similarity matrix

- Model Too Simplistic – Accuracy of recommendation may be poor
1. Collaborative Filtering – User-Item
1. Collaborative Filtering – User-Item
1. Collaborative Filtering – User-Item
D(u,i) ≈ Uu
⊤
Ii =
∑
z
Uu,z Ii,z
D ≈ U⊤
I
1. Collaborative Filtering – User-Item
…
… …
User Item
y!
u,i
D(u,i) ≈ Uu
⊤
Ii =
∑
z
Uu,z Ii,z
…
…
Uu Ii
1. Collaborative Filtering – User-Item
…
… …
y!
u,i
(U, I) = argmin
∑ (U⊤
u Ii − D(u,i))
2
D(u,i) ≈ Uu
⊤
Ii =
∑
z
Uu,z Ii,z
User ItemUu Ii
1. Collaborative Filtering – Matrix Factorization
ℒ(U, I) =
∑
u,i
(U⊤
u Ii − D(u,i))
2
≈ ||U⊤
I − D||2
F (U, I) = argmin ℒ(U, I)
- SGD – Stochastic Gradient Descent















Ub+1
← Ub
− η
∂ℒ(Ub
, Ib
)
∂Ub
Ib+1
← Ib
− η
∂ℒ(Ub
, Ib
)
∂Ib
1. Collaborative Filtering – Matrix Factorization
ℒ(U, I) =
∑
u,i
(U⊤
u Ii − D(u,i))
2
≈ ||U⊤
I − D||2
F (U, I) = argmin ℒ(U, I)
- SGD – Stochastic Gradient Descent



- SVD – Truncated Singular Value Decomposition











Ub+1
← Ub
− η
∂ℒ(Ub
, Ib
)
∂Ub
Ib+1
← Ib
− η
∂ℒ(Ub
, Ib
)
∂Ib
D = VΣW ≈ V:kΣ:kW:k U⊤
← V:kΣ1/2
:k I ← W:kΣ1/2
:k
1. Collaborative Filtering – Matrix Factorization
ℒ(U, I) =
∑
u,i
(U⊤
u Ii − D(u,i))
2
≈ ||U⊤
I − D||2
F (U, I) = argmin ℒ(U, I)
- SGD – Stochastic Gradient Descent



- SVD – Truncated Singular Value Decomposition



- ALS – Alternating Least Square





Ub+1
← Ub
− η
∂ℒ(Ub
, Ib
)
∂Ub
Ib+1
← Ib
− η
∂ℒ(Ub
, Ib
)
∂Ib
D = VΣW ≈ V:kΣ:kW:k U⊤
← V:kΣ1/2
:k I ← W:kΣ1/2
:k
Ub+1
← DIb
(Ib⊤
Ib
)−1
Ib+1
← DUb
(Ub⊤
Ub
)−1
1. Collaborative Filtering – User-Item Benefits
similar
- Fast after U and I are pre-computed
- Can learn more about users with U

- Can learn more about items with I
1. Collaborative Filtering – User-Item Challenges
- Sparsity

- Need to re-learn everything every time a new user or new item or new
rating enter the game

- Only linear prediction
1. Collaborative Filtering – Sparsity Example, the Netflix Prize
- 17,770 Movies
- 480,189 Users
- 100,480,507 Ratings
How dense is our Matrix ?
Ratings
Movies ×Users
=
100,480,507
17,770 × 480,189
×100 = 1.18%
1. Collaborative Filtering – Sparsity Example, the Netflix Prize
- 17,770 Movies
- 480,189 Users
- 100,480,507 Ratings
How dense is our Matrix ?
Ratings
Movies ×Users
=
100,480,507
17,770 × 480,189
×100 = 1.18%
users
movies
1. Collaborative Filtering – Deep Learning
- Non-linear interactions
- Enable transfer learning on multiple dataset
- Enable to use meta-data (keywords, tags)
- Enable to use graph-based data (those who like movies with this actor also 

like movies with this other actor)
1. Collaborative Filtering – Deep Learning
…
… …
Layer 3
Layer 2
Layer 1
pooling pooling
u g1 g2
1 3.2 … 0 0
User Attributes
g2 g4 g5i
0 1 … 1 2.0
Item Attributes
̂yu,i
̂yu,i
1. Collaborative Filtering – Deep Learning
(U, I, Layer1, Layer2, …) = argmin
∑ ( ̂yu,i − D(u,i))
2
Layer 3
Layer 2
Layer 1
pooling pooling
u g1 g2 g2 g4 g5i
̂yu,i
1 3.2 … 0 0
User Attributes
0 1 … 1 2.0
Item Attributes
1. Collaborative Filtering – Deep Learning
(U, I, Layer1, Layer2, …) = argmin
∑ ( ̂yu,i − D(u,i))
2
- “Mini”-Batch Stochastic Gradient Descent
- Acceleration Heuristics (AdaGrad, Nesterov, RMSprop, Adam, NAdam, ...)
- DropOut / BatchNorm
- Watch-out for Sparse Data and Momentum! vs
- Hyper-parameters Optimization
ru,i = 0 ru,i = ∅
Content Extraction
2. Content Extraction
Based on “what does the user like
about an item”:
- Meta-data extraction
- Clustering
- Similarity/distance between objects
likely buy
buy
2. Content Extraction – Item-Item Similarity
- Allow to compute similarities between items
- Does not require rating dataset
- The previous item-item recommendation algorithm still works
- No item cold start
- User attributes mitigate user cold start
2. Content Extraction – Deep
Every single item is not just about
the available meta-data.



Encode information from:
- Images (CNN)
- Text Information (NLP)
- Audio (LSTM)
Input
A documentary which
examines the creation and
co-production of the
popular children’s
television program in three
developing countries:
Bangladesh, Kosovo, and
South Africa.
Prediction
Comedy,
Adventure,
Family,
Animation
In his spectacular film
debut, young Babar, King
of the Elephants must
save his homeland from
certain destruction by
Rataxes and his band of
invading rhinos.
Documentary,
History
Comedy,
Adventure,
Family,
Animation
Adventure, War,
Documentary,
Music
Hybrid Model
3. Hybrid Model
Layer 3
Layer 2
Layer 1
pooling
u g1 g2
1 1 … 0 0
User Attributes
g2 g4 g5i
0 1 … 1 1
Item Attributes
g100 g… g… g… g200 g… g…
A documentary which examines
the creation and co-production of
the popular children’s television
program in three developing
countries: Bangladesh, Kosovo,
and South Africa.
g…
pooling
g… g…
̂yu,i
3. Hybrid Model
Layer 3
Layer 2
Layer 1
pooling
u g1 g2
1 1 … 0 0
User Attributes
g2 g4 g5i
0 1 … 1 1
Item Attributes
g100 g… g… g… g200 g… g…
A documentary which examines
the creation and co-production of
the popular children’s television
program in three developing
countries: Bangladesh, Kosovo,
and South Africa.
g…
pooling
g… g…
̂yu,i
pre-computed as input
fully trained in SGD
3. Hybrid Model
- The previous deep learning recommendation algorithm still works
- Improve recommendations of items without many ratings
- Mitigate item cold start
- Mitigate user cold start
- Improve transfer learning
In Production
4. In Production – Current Problematics
Data quality – thumbs up or down vs 10 stars; implicit feedback; etc.
Sparsity – increase in size with items / users
Cold start problem – user cold start; item cold start
Recommendation speed – O(#items) algorithms not possible
4. In Production – Solutions
Data quality

Unbiased consumer app where the users enter their tastes
Sparsity 

User interaction: Ask each user to rate the most informative items
Cold start problem

Hybrid models with deep content extraction to recommend new items without ratings
Recommendation speed

Use item-item rec-sys with pre-computed item similarities to compute a (large) set of
candidates; compute feedforward neural network on candidates only
4. In Production – Tools
LightFM
🙂 open source: https://github.com/lyst/lightfm

🙂 hybrid: matrix factorization + context

😐 linear
Deep Learning?
😐 way less tools than Computer Vision or NLP

😐 no pre-trained model available – you need large dataset and GPUs

😐 TensorFlow and PyTorch support for sparse data is limited
4. In Production – Tools
4. In Production – Tools
4. In Production – Cloud Based


Do you want to hear more?



Let's get in touch with us at Crossing Minds!

We are building an API to offer state-of-the-art recommendations on the cloud
Thank you

Mais conteúdo relacionado

Mais procurados

Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filteringD Yogendra Rao
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introductionLiang Xiang
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerceAlexander Konduforov
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemAkshat Thakar
 
Recommendation Systems Basics
Recommendation Systems BasicsRecommendation Systems Basics
Recommendation Systems BasicsJarin Tasnim Khan
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systemsNAVER Engineering
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender SystemsT212
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architectureLiang Xiang
 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Alexandros Karatzoglou
 
Collaborative Filtering using KNN
Collaborative Filtering using KNNCollaborative Filtering using KNN
Collaborative Filtering using KNNŞeyda Hatipoğlu
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineNYC Predictive Analytics
 
Collaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFCollaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFYusuke Yamamoto
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemRishabh Mehta
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemMilind Gokhale
 
Boston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsBoston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsJames Kirk
 
Recommendation engines
Recommendation enginesRecommendation engines
Recommendation enginesGeorgian Micsa
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation SystemAnamta Sayyed
 
Recommender systems
Recommender systemsRecommender systems
Recommender systemsTamer Rezk
 

Mais procurados (20)

Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filtering
 
Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
 
Recommender systems for E-commerce
Recommender systems for E-commerceRecommender systems for E-commerce
Recommender systems for E-commerce
 
Recommender system
Recommender systemRecommender system
Recommender system
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Recommendation Systems Basics
Recommendation Systems BasicsRecommendation Systems Basics
Recommendation Systems Basics
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systems
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial Deep Learning for Recommender Systems RecSys2017 Tutorial
Deep Learning for Recommender Systems RecSys2017 Tutorial
 
Collaborative Filtering using KNN
Collaborative Filtering using KNNCollaborative Filtering using KNN
Collaborative Filtering using KNN
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engine
 
Collaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFCollaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CF
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation System
 
Boston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender SystemsBoston ML - Architecting Recommender Systems
Boston ML - Architecting Recommender Systems
 
Recommendation engines
Recommendation enginesRecommendation engines
Recommendation engines
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 

Semelhante a Recommendation System Explained

Introduction to recommender systems
Introduction to recommender systemsIntroduction to recommender systems
Introduction to recommender systemsRami Alsalman
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems RoadtripThe Real Dyl
 
Tag And Tag Based Recommender
Tag And Tag Based RecommenderTag And Tag Based Recommender
Tag And Tag Based Recommendergu wendong
 
Recommendation system by_arpit_sharma
Recommendation system by_arpit_sharmaRecommendation system by_arpit_sharma
Recommendation system by_arpit_sharmaEr. Arpit Sharma
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlightsSandra Garcia
 
Recommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetRecommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetCrossing Minds
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfAlphaIssaghaDiallo
 
Ronny lempelyahooindiabigthinkerapril2013
Ronny lempelyahooindiabigthinkerapril2013Ronny lempelyahooindiabigthinkerapril2013
Ronny lempelyahooindiabigthinkerapril2013Muthusamy Chelliah
 
Collaborative Filtering at Spotify
Collaborative Filtering at SpotifyCollaborative Filtering at Spotify
Collaborative Filtering at SpotifyErik Bernhardsson
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceHarivamshi D
 
Chapter 02 collaborative recommendation
Chapter 02   collaborative recommendationChapter 02   collaborative recommendation
Chapter 02 collaborative recommendationAravindharamanan S
 
Chapter 02 collaborative recommendation
Chapter 02   collaborative recommendationChapter 02   collaborative recommendation
Chapter 02 collaborative recommendationAravindharamanan S
 
Recommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringRecommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringChangsung Moon
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithmsnextlib
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionPerumalPitchandi
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Shrutika Oswal
 
Collaborative Recommender System for Music using PyTorch
Collaborative Recommender System for Music using PyTorchCollaborative Recommender System for Music using PyTorch
Collaborative Recommender System for Music using PyTorchValentin Nagacevschi
 
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...DN 2017 | Building a recommender system using collaborative filtering (CF) | ...
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...Dataconomy Media
 

Semelhante a Recommendation System Explained (20)

Introduction to recommender systems
Introduction to recommender systemsIntroduction to recommender systems
Introduction to recommender systems
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems Roadtrip
 
Tag And Tag Based Recommender
Tag And Tag Based RecommenderTag And Tag Based Recommender
Tag And Tag Based Recommender
 
Recommendation system by_arpit_sharma
Recommendation system by_arpit_sharmaRecommendation system by_arpit_sharma
Recommendation system by_arpit_sharma
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlights
 
Recommender lecture
Recommender lectureRecommender lecture
Recommender lecture
 
Recommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetRecommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right Dataset
 
Fashiondatasc
FashiondatascFashiondatasc
Fashiondatasc
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdf
 
Ronny lempelyahooindiabigthinkerapril2013
Ronny lempelyahooindiabigthinkerapril2013Ronny lempelyahooindiabigthinkerapril2013
Ronny lempelyahooindiabigthinkerapril2013
 
Collaborative Filtering at Spotify
Collaborative Filtering at SpotifyCollaborative Filtering at Spotify
Collaborative Filtering at Spotify
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial Intelligence
 
Chapter 02 collaborative recommendation
Chapter 02   collaborative recommendationChapter 02   collaborative recommendation
Chapter 02 collaborative recommendation
 
Chapter 02 collaborative recommendation
Chapter 02   collaborative recommendationChapter 02   collaborative recommendation
Chapter 02 collaborative recommendation
 
Recommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringRecommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative Filtering
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System Introduction
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence
 
Collaborative Recommender System for Music using PyTorch
Collaborative Recommender System for Music using PyTorchCollaborative Recommender System for Music using PyTorch
Collaborative Recommender System for Music using PyTorch
 
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...DN 2017 | Building a recommender system using collaborative filtering (CF) | ...
DN 2017 | Building a recommender system using collaborative filtering (CF) | ...
 

Último

UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 

Último (20)

UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

Recommendation System Explained

  • 2. 19 min searching 300 million viewers 5 billion hours wasted per year at least once a week
  • 3. 19 min searching 300 million viewers 5 billion hours wasted per year at least once a week
  • 4.
  • 5. Recommendation Engine Information filtering systems Deal with choice overload Focused on user’s: Preferences Interest Observed Behavior
  • 6. Recommendation Engine – Examples Facebook–“People You May Know” Netflix–“Other Movies You May Enjoy” LinkedIn–“Jobs You May Be Interested In” Amazon–“Customer who bought this item also bought …” YouTube–“Recommended Videos” Google–“Search results adjusted” Pinterest–“Recommended Images”
  • 7. Plan for Today 1. Collaborative Filtering 
 - User-User
 - Item-Item
 - User-Item 2. Content-Based 3. Hybrid Model 4. In Production
  • 10. 1. Collaborative Filtering – Rating Matrix D( , ) = 4 ∈ {∅,1,2,3,4,5} r. , = 4 − 3 = 1 ∈ {∅, -2,-1,0,1,2} Rating data: Re-centered rating data:
  • 11. 1. Collaborative Filtering – Similarity Function Real function that quantify the similarity between two objects. 1 − ||a − b||2 = 1 − n ∑ i=1 (ai − bi)2 1 − ||a − b||1 = 1 − n ∑ i=1 |ai − bi | 1 − ||a − b||p = 1 − ( n ∑ i=1 |ai − bi |p ) 1/p a⊤ b ||a||2 ||b||2 = ∑ n i=1 aibi ∑ n i=1 a2 i ∑ n i=1 b2 i sim(a, b) = …
  • 12. 1. Collaborative Filtering – Similarity Function Real function that quantify the similarity between two objects. 1 − ||a − b||2 = 1 − n ∑ i=1 (ai − bi)2 1 − ||a − b||1 = 1 − n ∑ i=1 |ai − bi | 1 − ||a − b||p = 1 − ( n ∑ i=1 |ai − bi |p ) 1/p a⊤ b ||a||2 ||b||2 = ∑ n i=1 aibi ∑ n i=1 a2 i ∑ n i=1 b2 i sim(a, b) = …
  • 13. 1. Collaborative Filtering – User-User
  • 14. 1. Collaborative Filtering – User-User sim( , ) = -0.95
  • 15. sim( , ) = sim( , ) = sim( , ) = sim( , ) = sim( , ) = 1. Collaborative Filtering – User-User -0.95 1.00 0.00 -1.00 0.00
  • 16. 1. Collaborative Filtering – User-User sim( , ) = sim( , ) = sim( , ) = sim( , ) = sim( , ) = -0.95 1.00 0.00 -1.00 0.00
  • 17. 1. Collaborative Filtering – User-User ̂yu,i = ∑ u′ sim(u′, u)ru′,i Rating prediction: 4.0 sim( , ) = sim( , ) = sim( , ) = sim( , ) = sim( , ) = -0.95 1.00 0.00 -1.00 0.00
  • 18. 1. Collaborative Filtering – User-User ̂yu,i = ∑ u′ sim(u′, u)ru′,i Rating prediction: 4.0 1.0 1.5 sim( , ) = sim( , ) = sim( , ) = sim( , ) = sim( , ) = -0.95 1.00 0.00 -1.00 0.00
  • 19. 1. Collaborative Filtering – User-User ̂yu,i = ∑ u′ sim(u′, u)ru′,i Rating prediction: Recommendation: argmax i ̂yu,i 1.0 1.54.0 sim( , ) = sim( , ) = sim( , ) = sim( , ) = sim( , ) = -0.95 1.00 0.00 -1.00 0.00
  • 20. 1. Collaborative Filtering – User-User Benefits - “People who bought that also bought that”
 - Good when #items >> #users

  • 21. 1. Collaborative Filtering – User-User Challenges - Sparsity
 - Don’t scale – Nearest Neighbors requires computation that grows with the number of users and items 
 - Model Too Simplistic – Accuracy of recommendation may be poor
  • 22. 1. Collaborative Filtering – Item-Item
  • 23. 1. Collaborative Filtering – Item-Item sim( , ) = -0.95 -0.95
  • 24. 1. Collaborative Filtering – Item-Item -1.00 -1.00 -0.95 1.00 0.00 1.00
  • 25. 1. Collaborative Filtering – Item-Item -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00
  • 26. 1. Collaborative Filtering – Item-Item 1.00 0.00 -1.00 0.00 -1.001 -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
  • 27. 1. Collaborative Filtering – Item-Item 1.00 0.00 -1.00 0.00 -1.001 -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
  • 28. 1. Collaborative Filtering – Item-Item ̂yu,i = ∑ i′ ru,i′ sim(i′, i) 1.00 0.00 -1.00 0.00 -1.001 -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00 1.4 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
  • 29. 1. Collaborative Filtering – Item-Item 1.5 5.0 1.00 0.00 -1.00 0.00 -1.001 -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00 1.4 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ̂yu,i = ∑ i′ ru,i′ sim(i′, i)
  • 30. 1. Collaborative Filtering – Item-Item 5.0 1.00 0.00 -1.00 0.00 -1.001 -0.95 -1.00 1.001.00-1.00 1 -1.00 -1.00 -0.95 1.00 0.00 1.00 5.01.4 1.5 ̂yu,i = ∑ i′ ru,i′ sim(i′, i) ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
  • 31. 1. Collaborative Filtering – Item-Item Benefits - “If you like this you might also like that”
 - Good when #users >> #items
 - Very fast after the item-item table has been pre-computed
  • 32. 1. Collaborative Filtering – Item-Item Challenges - Bottleneck – similarity computation
 - Space complexity – dense item-item similarity matrix
 - Model Too Simplistic – Accuracy of recommendation may be poor
  • 33. 1. Collaborative Filtering – User-Item
  • 34. 1. Collaborative Filtering – User-Item
  • 35. 1. Collaborative Filtering – User-Item D(u,i) ≈ Uu ⊤ Ii = ∑ z Uu,z Ii,z D ≈ U⊤ I
  • 36. 1. Collaborative Filtering – User-Item … … … User Item y! u,i D(u,i) ≈ Uu ⊤ Ii = ∑ z Uu,z Ii,z … … Uu Ii
  • 37. 1. Collaborative Filtering – User-Item … … … y! u,i (U, I) = argmin ∑ (U⊤ u Ii − D(u,i)) 2 D(u,i) ≈ Uu ⊤ Ii = ∑ z Uu,z Ii,z User ItemUu Ii
  • 38. 1. Collaborative Filtering – Matrix Factorization ℒ(U, I) = ∑ u,i (U⊤ u Ii − D(u,i)) 2 ≈ ||U⊤ I − D||2 F (U, I) = argmin ℒ(U, I) - SGD – Stochastic Gradient Descent
 
 
 
 
 
 
 
 Ub+1 ← Ub − η ∂ℒ(Ub , Ib ) ∂Ub Ib+1 ← Ib − η ∂ℒ(Ub , Ib ) ∂Ib
  • 39. 1. Collaborative Filtering – Matrix Factorization ℒ(U, I) = ∑ u,i (U⊤ u Ii − D(u,i)) 2 ≈ ||U⊤ I − D||2 F (U, I) = argmin ℒ(U, I) - SGD – Stochastic Gradient Descent
 
 - SVD – Truncated Singular Value Decomposition
 
 
 
 
 
 Ub+1 ← Ub − η ∂ℒ(Ub , Ib ) ∂Ub Ib+1 ← Ib − η ∂ℒ(Ub , Ib ) ∂Ib D = VΣW ≈ V:kΣ:kW:k U⊤ ← V:kΣ1/2 :k I ← W:kΣ1/2 :k
  • 40. 1. Collaborative Filtering – Matrix Factorization ℒ(U, I) = ∑ u,i (U⊤ u Ii − D(u,i)) 2 ≈ ||U⊤ I − D||2 F (U, I) = argmin ℒ(U, I) - SGD – Stochastic Gradient Descent
 
 - SVD – Truncated Singular Value Decomposition
 
 - ALS – Alternating Least Square
 
 
 Ub+1 ← Ub − η ∂ℒ(Ub , Ib ) ∂Ub Ib+1 ← Ib − η ∂ℒ(Ub , Ib ) ∂Ib D = VΣW ≈ V:kΣ:kW:k U⊤ ← V:kΣ1/2 :k I ← W:kΣ1/2 :k Ub+1 ← DIb (Ib⊤ Ib )−1 Ib+1 ← DUb (Ub⊤ Ub )−1
  • 41. 1. Collaborative Filtering – User-Item Benefits similar - Fast after U and I are pre-computed - Can learn more about users with U
 - Can learn more about items with I
  • 42. 1. Collaborative Filtering – User-Item Challenges - Sparsity
 - Need to re-learn everything every time a new user or new item or new rating enter the game
 - Only linear prediction
  • 43. 1. Collaborative Filtering – Sparsity Example, the Netflix Prize - 17,770 Movies - 480,189 Users - 100,480,507 Ratings How dense is our Matrix ? Ratings Movies ×Users = 100,480,507 17,770 × 480,189 ×100 = 1.18%
  • 44. 1. Collaborative Filtering – Sparsity Example, the Netflix Prize - 17,770 Movies - 480,189 Users - 100,480,507 Ratings How dense is our Matrix ? Ratings Movies ×Users = 100,480,507 17,770 × 480,189 ×100 = 1.18% users movies
  • 45. 1. Collaborative Filtering – Deep Learning - Non-linear interactions - Enable transfer learning on multiple dataset - Enable to use meta-data (keywords, tags) - Enable to use graph-based data (those who like movies with this actor also 
 like movies with this other actor)
  • 46. 1. Collaborative Filtering – Deep Learning … … … Layer 3 Layer 2 Layer 1 pooling pooling u g1 g2 1 3.2 … 0 0 User Attributes g2 g4 g5i 0 1 … 1 2.0 Item Attributes ̂yu,i ̂yu,i
  • 47. 1. Collaborative Filtering – Deep Learning (U, I, Layer1, Layer2, …) = argmin ∑ ( ̂yu,i − D(u,i)) 2 Layer 3 Layer 2 Layer 1 pooling pooling u g1 g2 g2 g4 g5i ̂yu,i 1 3.2 … 0 0 User Attributes 0 1 … 1 2.0 Item Attributes
  • 48. 1. Collaborative Filtering – Deep Learning (U, I, Layer1, Layer2, …) = argmin ∑ ( ̂yu,i − D(u,i)) 2 - “Mini”-Batch Stochastic Gradient Descent - Acceleration Heuristics (AdaGrad, Nesterov, RMSprop, Adam, NAdam, ...) - DropOut / BatchNorm - Watch-out for Sparse Data and Momentum! vs - Hyper-parameters Optimization ru,i = 0 ru,i = ∅
  • 50. 2. Content Extraction Based on “what does the user like about an item”: - Meta-data extraction - Clustering - Similarity/distance between objects likely buy buy
  • 51. 2. Content Extraction – Item-Item Similarity - Allow to compute similarities between items - Does not require rating dataset - The previous item-item recommendation algorithm still works - No item cold start - User attributes mitigate user cold start
  • 52. 2. Content Extraction – Deep Every single item is not just about the available meta-data.
 
 Encode information from: - Images (CNN) - Text Information (NLP) - Audio (LSTM) Input A documentary which examines the creation and co-production of the popular children’s television program in three developing countries: Bangladesh, Kosovo, and South Africa. Prediction Comedy, Adventure, Family, Animation In his spectacular film debut, young Babar, King of the Elephants must save his homeland from certain destruction by Rataxes and his band of invading rhinos. Documentary, History Comedy, Adventure, Family, Animation Adventure, War, Documentary, Music
  • 54. 3. Hybrid Model Layer 3 Layer 2 Layer 1 pooling u g1 g2 1 1 … 0 0 User Attributes g2 g4 g5i 0 1 … 1 1 Item Attributes g100 g… g… g… g200 g… g… A documentary which examines the creation and co-production of the popular children’s television program in three developing countries: Bangladesh, Kosovo, and South Africa. g… pooling g… g… ̂yu,i
  • 55. 3. Hybrid Model Layer 3 Layer 2 Layer 1 pooling u g1 g2 1 1 … 0 0 User Attributes g2 g4 g5i 0 1 … 1 1 Item Attributes g100 g… g… g… g200 g… g… A documentary which examines the creation and co-production of the popular children’s television program in three developing countries: Bangladesh, Kosovo, and South Africa. g… pooling g… g… ̂yu,i pre-computed as input fully trained in SGD
  • 56. 3. Hybrid Model - The previous deep learning recommendation algorithm still works - Improve recommendations of items without many ratings - Mitigate item cold start - Mitigate user cold start - Improve transfer learning
  • 58. 4. In Production – Current Problematics Data quality – thumbs up or down vs 10 stars; implicit feedback; etc. Sparsity – increase in size with items / users Cold start problem – user cold start; item cold start Recommendation speed – O(#items) algorithms not possible
  • 59. 4. In Production – Solutions Data quality
 Unbiased consumer app where the users enter their tastes Sparsity 
 User interaction: Ask each user to rate the most informative items Cold start problem
 Hybrid models with deep content extraction to recommend new items without ratings Recommendation speed
 Use item-item rec-sys with pre-computed item similarities to compute a (large) set of candidates; compute feedforward neural network on candidates only
  • 60. 4. In Production – Tools LightFM 🙂 open source: https://github.com/lyst/lightfm
 🙂 hybrid: matrix factorization + context
 😐 linear Deep Learning? 😐 way less tools than Computer Vision or NLP
 😐 no pre-trained model available – you need large dataset and GPUs
 😐 TensorFlow and PyTorch support for sparse data is limited
  • 61. 4. In Production – Tools
  • 62. 4. In Production – Tools
  • 63. 4. In Production – Cloud Based 
 Do you want to hear more?
 
 Let's get in touch with us at Crossing Minds!
 We are building an API to offer state-of-the-art recommendations on the cloud