SlideShare a Scribd company logo
1 of 42
Recommender Systems:
Content-based Systems &
Collaborative Filtering
Viet-Trung Tran
Credits
• Mining of Massive Datasets
– Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford
University
– http://www.mmds.org
Viet-Trung Tran 2
High Dimensional Data
High dim.
data
Locality
sensitive
hashing
Clustering
Dimensional
ity
reduction
Graph
data
PageRank,
SimRank
Community
Detection
Spam
Detection
Infinite
data
Filtering
data
streams
Web
advertising
Queries on
streams
Machine
learning
SVM
Decision
Trees
Perceptron,
kNN
Apps
Recommen
der systems
Association
Rules
Duplicate
document
detection
Viet-Trung Tran 3
Example: Recommender Systems
• Customer X
– Buys Metallica CD
– Buys Megadeth CD
• Customer Y
– Does search on Metallica
– Recommender system
suggests Megadeth from
data collected about
customer XViet-Trung Tran 4
Recommendations
Viet-Trung Tran 5
Items
Search Recommendations
Products, web sites,
blogs, news items, …
Examples:
From Scarcity to Abundance
• Shelf space is a scarce commodity for
traditional retailers
– Also: TV networks, movie theaters,…
• Web enables near-zero-cost dissemination
of information about products
– From scarcity to abundance
• More choice necessitates better filters
– Recommendation engines
– How Into Thin Air made Touching the Void
a bestseller: http://www.wired.com/wired/archive/12.10/tail.html
Viet-Trung Tran 6
Types of Recommendations
• Editorial and hand curated
– List of favorites
– Lists of “essential” items
• Simple aggregates
– Top 10, Most Popular, Recent Uploads
• Tailored to individual users
– Amazon, Netflix, …
Viet-Trung Tran 7
Formal Model
• X = set of Customers
• S = set of Items
• Utility function u: X × S  R
– R = set of ratings
– R is a totally ordered set
– e.g., 0-5 stars, real number in [0,1]
Viet-Trung Tran 8
Utility Matrix
0.4
10.2
0.30.5
0.21
Viet-Trung Tran 9
Avatar LOTR Matrix Pirates
Alice
Bob
Carol
David
Key Problems
• (1) Gathering “known” ratings for matrix
– How to collect the data in the utility matrix
• (2) Extrapolate unknown ratings from the
known ones
– Mainly interested in high unknown ratings
• We are not interested in knowing what you don’t like
but what you like
• (3) Evaluating extrapolation methods
– How to measure success/performance of
recommendation methods
Viet-Trung Tran 10
(1) Gathering Ratings
• Explicit
– Ask people to rate items
– Doesn’t work well in practice – people
can’t be bothered
• Implicit
– Learn ratings from user actions
• E.g., purchase implies high rating
– What about low ratings?
Viet-Trung Tran 11
(2) Extrapolating Utilities
• Key problem: Utility matrix U is sparse
– Most people have not rated most items
– Cold start:
• New items have no ratings
• New users have no history
• Three approaches to recommender systems:
– 1) Content-based
– 2) Collaborative
– 3) Latent factor based
Viet-Trung Tran 12
Content-based
Recommender Systems
Content-based Recommendations
• Main idea: Recommend items to customer x similar
to previous items rated highly by x
Example:
• Movie recommendations
– Recommend movies with same actor(s),
director, genre, …
• Websites, blogs, news
– Recommend other sites with “similar” content
Viet-Trung Tran 14
Plan of Action
Viet-Trung Tran 15
likes
Item profiles
Red
Circles
Triangles
User profile
match
recommend
build
Item Profiles
• For each item, create an item profile
• Profile is a set (vector) of features
– Movies: author, title, actor, director,…
– Text: Set of “important” words in document
• How to pick important features?
– Usual heuristic from text mining is TF-IDF
(Term frequency * Inverse Doc Frequency)
• Term … Feature
• Document … Item
Viet-Trung Tran 16
TF-IDF
fij = frequency of term (feature) i in doc (item) j
ni = number of docs that mention term i
N = total number of docs
TF-IDF score: wij = TFij × IDFi
Doc profile = set of words with highest TF-IDF
scores, together with their scores
Viet-Trung Tran 17
User Profiles and Prediction
• User profile possibilities:
– Weighted average of rated item profiles
– Variation: weight by difference from average
rating for item
– …
• Prediction heuristic:
– Given user profile x and item profile i, estimate 𝑢(𝒙, 𝒊) =
cos(𝒙, 𝒊) =
𝒙·𝒊
| 𝒙 |⋅| 𝒊 |
Viet-Trung Tran 18
Pros: Content-based Approach
• +: No need for data on other users
– No cold-start or sparsity problems
• +: Able to recommend to users with
unique tastes
• +: Able to recommend new & unpopular items
– No first-rater problem
• +: Able to provide explanations
– Can provide explanations of recommended items by
listing content-features that caused an item to be
recommended
Viet-Trung Tran 19
Cons: Content-based Approach
• –: Finding the appropriate features is hard
– E.g., images, movies, music
• –: Recommendations for new users
– How to build a user profile?
• –: Overspecialization
– Never recommends items outside user’s
content profile
– People might have multiple interests
– Unable to exploit quality judgments of other users
Viet-Trung Tran 20
Collaborative Filtering
Harnessing quality judgments of other
users
Collaborative Filtering
• Consider user x
• Find set N of other
users whose ratings
are “similar” to
x’s ratings
• Estimate x’s ratings
based on ratings
of users in N
Viet-Trung Tran 22
x
N
Finding “Similar” Users
• Let rx be the vector of user x’s ratings
• Jaccard similarity measure
– Problem: Ignores the value of the rating
• Cosine similarity measure
– Problem: Treats missing ratings as “negative”
• Pearson correlation coefficient
– Sxy = items rated by both users x and y
Viet-Trung Tran 23
rx = [*, _, _, *, ***]
ry = [*, _, **, **, _]
rx, ry as sets:
rx = {1, 4, 5}
ry = {1, 3, 4}
rx, ry as points:
rx = {1, 0, 0, 1, 3}
ry = {1, 0, 2, 2, 0}
rx, ry … avg.
rating of x, y
Similarity Metric
• Intuitively we want: sim(A, B) > sim(A, C)
• Jaccard similarity: 1/5 < 2/4
• Cosine similarity: 0.386 > 0.322
– Considers missing ratings as “negative”
– Solution: subtract the (row) mean
Viet-Trung Tran 24
sim A,B vs. A,C:
0.092 > -0.559
Notice cosine sim. is
correlation when
data is centered at 0
Cosine sim:
Rating Predictions
Viet-Trung Tran 25
Shorthand:
𝒔 𝒙𝒚 = 𝒔𝒊𝒎 𝒙, 𝒚
• From similarity metric to recommendations
– Let rx be the vector of user x's ratings
– Let N be the set of k users most similar to x who have
rated item i
• Prediction for item s of user x
Item-Item Collaborative Filtering
• So far: User-user collaborative filtering
• Another view: Item-item
– For item i, find other similar items
– Estimate rating for item i based on ratings for similar
items
– Can use same similarity metrics and prediction functions
as in user-user model
Viet-Trung Tran 26






);(
);(
xiNj ij
xiNj xjij
xi
s
rs
r sij… similarity of items i and j
rxj…rating of user u on item j
N(i;x)… set items rated by x similar to i
Item-Item CF (|N|=2)
Viet-Trung Tran 27
121110987654321
455311
3124452
534321423
245424
5224345
423316
users
movies
- unknown rating - rating between 1 to 5
Item-Item CF (|N|=2)
Viet-Trung Tran 28
121110987654321
455?311
3124452
534321423
245424
5224345
423316
users
- estimate rating of movie 1 by user 5
movies
Item-Item CF (|N|=2)
Viet-Trung Tran 29
121110987654321
455?311
3124452
534321423
245424
5224345
423316
users
Neighbor selection:
Identify movies similar to
movie 1, rated by user 5
movies
1.00
-0.18
0.41
-0.10
-0.31
0.59
sim(1,m)
Here we use Pearson correlation as similarity:
1) Subtract mean rating mi from each movie i
m1 = (1+3+5+5+4)/5 = 3.6
row 1: [-2.6, 0, -0.6, 0, 0, 1.4, 0, 0, 1.4, 0, 0.4, 0]
2) Compute cosine similarities between rows
Item-Item CF (|N|=2)
Viet-Trung Tran 30
121110987654321
455?311
3124452
534321423
245424
5224345
423316
users
Compute similarity weights:
s1,3=0.41, s1,6=0.59
movies
1.00
-0.18
0.41
-0.10
-0.31
0.59
sim(1,m)
Item-Item CF (|N|=2)
Viet-Trung Tran 31
121110987654321
4552.6311
3124452
534321423
245424
5224345
423316
users
Predict by taking weighted average:
r1.5 = (0.41*2 + 0.59*3) / (0.41+0.59) = 2.6
movies
CF: Common Practice
• Define similarity sij of items i and j
• Select k nearest neighbors N(i; x)
– Items most similar to i, that were rated by x
• Estimate rating rxi as the weighted average:
Viet-Trung Tran 32
baseline estimate for rxi
 μ = overall mean movie rating
 bx = rating deviation of user x
= (avg. rating of user x) – μ
 bi = rating deviation of movie i





);(
);(
xiNj ij
xiNj xjij
xi
s
rs
r
Before:






);(
);(
)(
xiNj ij
xiNj xjxjij
xixi
s
brs
br
Item-Item vs. User-User
0.41
8.010.9
0.30.5
0.81
Viet-Trung Tran 33
Avatar LOTR Matrix Pirates
Alice
Bob
Carol
David
 In practice, it has been observed that item-item often works
better than user-user
 Why? Items are simpler, users have multiple tastes
Pros/Cons of Collaborative Filtering
• + Works for any kind of item
– No feature selection needed
• - Cold Start:
– Need enough users in the system to find a match
• - Sparsity:
– The user/ratings matrix is sparse
– Hard to find users that have rated the same items
• - First rater:
– Cannot recommend an item that has not been
previously rated
– New items, Esoteric items
• - Popularity bias:
– Cannot recommend items to someone with
unique taste
– Tends to recommend popular items
Viet-Trung Tran 34
Hybrid Methods
• Implement two or more different recommenders
and combine predictions
– Perhaps using a linear model
• Add content-based methods to
collaborative filtering
– Item profiles for new item problem
– Demographics to deal with new user problem
Viet-Trung Tran 35
Remarks & Practical Tips
- Evaluation
- Error metrics
- Complexity / Speed
Viet-Trung Tran 36
Evaluation
Viet-Trung Tran 37
1 3 4
3 5 5
4 5 5
3
3
2 2 2
5
2 1 1
3 3
1
movies
users
Evaluation
Viet-Trung Tran 38
1 3 4
3 5 5
4 5 5
3
3
2 ? ?
?
2 1 ?
3 ?
1
Test Data Set
users
movies
Evaluating Predictions
• Compare predictions with known ratings
– Root-mean-square error (RMSE)
• 𝑥𝑖 𝑟𝑥𝑖 − 𝑟𝑥𝑖
∗ 2
where 𝒓 𝒙𝒊 is predicted, 𝒓 𝒙𝒊
∗
is the true rating of x on i
– Precision at top 10:
• % of those in top 10
– Rank Correlation:
• Spearman’s correlation between system’s and user’s complete rankings
• Another approach: 0/1 model
– Coverage:
• Number of items/users for which system can make predictions
– Precision:
• Accuracy of predictions
– Receiver operating characteristic (ROC)
• Tradeoff curve between false positives and false negatives
Viet-Trung Tran 39
Problems with Error Measures
• Narrow focus on accuracy sometimes
misses the point
– Prediction Diversity
– Prediction Context
– Order of predictions
• In practice, we care only to predict high ratings:
– RMSE might penalize a method that does well
for high ratings and badly for others
Viet-Trung Tran 40
Collaborative Filtering: Complexity
• Expensive step is finding k most similar customers:
O(|X|)
• Too expensive to do at runtime
– Could pre-compute
• Naïve pre-computation takes time O(k ·|X|)
– X … set of customers
• We already know how to do this!
– Near-neighbor search in high dimensions (LSH)
– Clustering
– Dimensionality reduction
Viet-Trung Tran 41
Tip: Add Data
• Leverage all the data
– Don’t try to reduce data size in an
effort to make fancy algorithms work
– Simple methods on large data do best
• Add more data
– e.g., add IMDB data on genres
• More data beats better algorithms
http://anand.typepad.com/datawocky/2008/03/more-data-usual.html
Viet-Trung Tran 42

More Related Content

What's hot

Recommendation system
Recommendation system Recommendation system
Recommendation system Vikrant Arya
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender systemStanley Wang
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemAkshat Thakar
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation SystemsTrieu Nguyen
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation SystemAnamta Sayyed
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithmsnextlib
 
How to build a recommender system?
How to build a recommender system?How to build a recommender system?
How to build a recommender system?blueace
 
Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filteringD Yogendra Rao
 
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 (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Xavier Amatriain
 
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
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender SystemsJustin Basilico
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender SystemsLior Rokach
 
Recommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringRecommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringChangsung Moon
 
A Hybrid Recommendation system
A Hybrid Recommendation systemA Hybrid Recommendation system
A Hybrid Recommendation systemPranav Prakash
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filteringNeha Kulkarni
 

What's hot (20)

Recommendation system
Recommendation system Recommendation system
Recommendation system
 
Recommender system
Recommender systemRecommender system
Recommender system
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Introduction to Recommendation Systems
Introduction to Recommendation SystemsIntroduction to Recommendation Systems
Introduction to Recommendation Systems
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
 
How to build a recommender system?
How to build a recommender system?How to build a recommender system?
How to build a recommender system?
 
Recommender systems using collaborative filtering
Recommender systems using collaborative filteringRecommender systems using collaborative filtering
Recommender systems using collaborative filtering
 
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 (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)Recommender Systems (Machine Learning Summer School 2014 @ CMU)
Recommender Systems (Machine Learning Summer School 2014 @ CMU)
 
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
 
Content based filtering
Content based filteringContent based filtering
Content based filtering
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative FilteringRecommender Systems: Advances in Collaborative Filtering
Recommender Systems: Advances in Collaborative Filtering
 
A Hybrid Recommendation system
A Hybrid Recommendation systemA Hybrid Recommendation system
A Hybrid Recommendation system
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 

Viewers also liked

How to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringHow to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringVõ Duy Tuấn
 
How to build a Recommender System
How to build a Recommender SystemHow to build a Recommender System
How to build a Recommender SystemVõ Duy Tuấn
 
Collaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsCollaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsNavisro Analytics
 
[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systemsFalitokiniaina Rabearison
 
Recommender systems
Recommender systemsRecommender systems
Recommender systemsTamer Rezk
 
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…Roku
 
Random Indexing for Content-based Recommender Systems
Random Indexing for Content-based Recommender SystemsRandom Indexing for Content-based Recommender Systems
Random Indexing for Content-based Recommender SystemsCataldo Musto
 
Best Practices in Recommender System Challenges
Best Practices in Recommender System ChallengesBest Practices in Recommender System Challenges
Best Practices in Recommender System ChallengesAlan Said
 
A Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkA Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkViet-Trung TRAN
 
Neural Networks for OCR
Neural Networks for OCRNeural Networks for OCR
Neural Networks for OCRDavid Stark
 
Linked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender SystemsLinked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender SystemsVito Ostuni
 
Top-N Recommendations from Implicit Feedback leveraging Linked Open Data
Top-N Recommendations from Implicit Feedback leveraging Linked Open DataTop-N Recommendations from Implicit Feedback leveraging Linked Open Data
Top-N Recommendations from Implicit Feedback leveraging Linked Open DataVito Ostuni
 
OCR processing with deep learning: Apply to Vietnamese documents
OCR processing with deep learning: Apply to Vietnamese documents OCR processing with deep learning: Apply to Vietnamese documents
OCR processing with deep learning: Apply to Vietnamese documents Viet-Trung TRAN
 
Content based filtering, pub sub, bloom filters
Content based filtering, pub   sub, bloom filtersContent based filtering, pub   sub, bloom filters
Content based filtering, pub sub, bloom filtersYara Ali
 
From decision trees to random forests
From decision trees to random forestsFrom decision trees to random forests
From decision trees to random forestsViet-Trung TRAN
 
Recommendation techniques
Recommendation techniques Recommendation techniques
Recommendation techniques sun9413
 
Master Minds on Data Science - Martin Prins
Master Minds on Data Science - Martin PrinsMaster Minds on Data Science - Martin Prins
Master Minds on Data Science - Martin PrinsMedia Perspectives
 
giasan.vn real-estate analytics: a Vietnam case study
giasan.vn real-estate analytics: a Vietnam case studygiasan.vn real-estate analytics: a Vietnam case study
giasan.vn real-estate analytics: a Vietnam case studyViet-Trung TRAN
 

Viewers also liked (20)

How to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based FilteringHow to Build Recommender System with Content based Filtering
How to Build Recommender System with Content based Filtering
 
How to build a Recommender System
How to build a Recommender SystemHow to build a Recommender System
How to build a Recommender System
 
Collaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro AnalyticsCollaborative Filtering and Recommender Systems By Navisro Analytics
Collaborative Filtering and Recommender Systems By Navisro Analytics
 
[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems[Final]collaborative filtering and recommender systems
[Final]collaborative filtering and recommender systems
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…
Linked Open Data to Support Content-based Recommender Systems - I-SEMANTIC…
 
Random Indexing for Content-based Recommender Systems
Random Indexing for Content-based Recommender SystemsRandom Indexing for Content-based Recommender Systems
Random Indexing for Content-based Recommender Systems
 
Best Practices in Recommender System Challenges
Best Practices in Recommender System ChallengesBest Practices in Recommender System Challenges
Best Practices in Recommender System Challenges
 
A Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkA Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural Network
 
Neural Networks for OCR
Neural Networks for OCRNeural Networks for OCR
Neural Networks for OCR
 
Linked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender SystemsLinked Open Data to support content based Recommender Systems
Linked Open Data to support content based Recommender Systems
 
Top-N Recommendations from Implicit Feedback leveraging Linked Open Data
Top-N Recommendations from Implicit Feedback leveraging Linked Open DataTop-N Recommendations from Implicit Feedback leveraging Linked Open Data
Top-N Recommendations from Implicit Feedback leveraging Linked Open Data
 
OCR processing with deep learning: Apply to Vietnamese documents
OCR processing with deep learning: Apply to Vietnamese documents OCR processing with deep learning: Apply to Vietnamese documents
OCR processing with deep learning: Apply to Vietnamese documents
 
Giasan.vn @rstars
Giasan.vn @rstarsGiasan.vn @rstars
Giasan.vn @rstars
 
Content based filtering, pub sub, bloom filters
Content based filtering, pub   sub, bloom filtersContent based filtering, pub   sub, bloom filters
Content based filtering, pub sub, bloom filters
 
From decision trees to random forests
From decision trees to random forestsFrom decision trees to random forests
From decision trees to random forests
 
Recommendation techniques
Recommendation techniques Recommendation techniques
Recommendation techniques
 
Random walk on Graphs
Random walk on GraphsRandom walk on Graphs
Random walk on Graphs
 
Master Minds on Data Science - Martin Prins
Master Minds on Data Science - Martin PrinsMaster Minds on Data Science - Martin Prins
Master Minds on Data Science - Martin Prins
 
giasan.vn real-estate analytics: a Vietnam case study
giasan.vn real-estate analytics: a Vietnam case studygiasan.vn real-estate analytics: a Vietnam case study
giasan.vn real-estate analytics: a Vietnam case study
 

Similar to Recommender systems: Content-based and collaborative filtering

Big data certification training mumbai
Big data certification training mumbaiBig data certification training mumbai
Big data certification training mumbaiTejaspathiLV
 
Best data science courses in pune
Best data science courses in puneBest data science courses in pune
Best data science courses in puneprathyusha1234
 
Top data science institutes in hyderabad
Top data science institutes in hyderabadTop data science institutes in hyderabad
Top data science institutes in hyderabadprathyusha1234
 
best online data science courses
best online data science coursesbest online data science courses
best online data science coursesprathyusha1234
 
Introduction to recommendation system
Introduction to recommendation systemIntroduction to recommendation system
Introduction to recommendation systemAravindharamanan S
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Dakiry
 
How to build recommender system
How to build recommender systemHow to build recommender system
How to build recommender systemMitko Gurbanski
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfAlphaIssaghaDiallo
 
Rokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxRokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxJadna Almeida
 
Rokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxRokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxJadna Almeida
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems RoadtripThe Real Dyl
 

Similar to Recommender systems: Content-based and collaborative filtering (20)

Big data certification training mumbai
Big data certification training mumbaiBig data certification training mumbai
Big data certification training mumbai
 
Best data science courses in pune
Best data science courses in puneBest data science courses in pune
Best data science courses in pune
 
Top data science institutes in hyderabad
Top data science institutes in hyderabadTop data science institutes in hyderabad
Top data science institutes in hyderabad
 
best online data science courses
best online data science coursesbest online data science courses
best online data science courses
 
Introduction to recommendation system
Introduction to recommendation systemIntroduction to recommendation system
Introduction to recommendation system
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”
 
Recommenders.ppt
Recommenders.pptRecommenders.ppt
Recommenders.ppt
 
Recommenders.ppt
Recommenders.pptRecommenders.ppt
Recommenders.ppt
 
How to build recommender system
How to build recommender systemHow to build recommender system
How to build recommender system
 
IntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdfIntroductionRecommenderSystems_Petroni.pdf
IntroductionRecommenderSystems_Petroni.pdf
 
Rokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptxRokach-GomaxSlides.pptx
Rokach-GomaxSlides.pptx
 
Rokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptxRokach-GomaxSlides (1).pptx
Rokach-GomaxSlides (1).pptx
 
Fashiondatasc
FashiondatascFashiondatasc
Fashiondatasc
 
Recommendation Systems Roadtrip
Recommendation Systems RoadtripRecommendation Systems Roadtrip
Recommendation Systems Roadtrip
 
Recommender lecture
Recommender lectureRecommender lecture
Recommender lecture
 
Lec7 collaborative filtering
Lec7 collaborative filteringLec7 collaborative filtering
Lec7 collaborative filtering
 
Culbert.ppt
Culbert.pptCulbert.ppt
Culbert.ppt
 
Culbert.ppt
Culbert.pptCulbert.ppt
Culbert.ppt
 
Culbert.ppt
Culbert.pptCulbert.ppt
Culbert.ppt
 
Culbert.ppt
Culbert.pptCulbert.ppt
Culbert.ppt
 

More from Viet-Trung TRAN

Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017
Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017
Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017Viet-Trung TRAN
 
Dynamo: Amazon’s Highly Available Key-value Store
Dynamo: Amazon’s Highly Available Key-value StoreDynamo: Amazon’s Highly Available Key-value Store
Dynamo: Amazon’s Highly Available Key-value StoreViet-Trung TRAN
 
Pregel: Hệ thống xử lý đồ thị lớn
Pregel: Hệ thống xử lý đồ thị lớnPregel: Hệ thống xử lý đồ thị lớn
Pregel: Hệ thống xử lý đồ thị lớnViet-Trung TRAN
 
Mapreduce simplified-data-processing
Mapreduce simplified-data-processingMapreduce simplified-data-processing
Mapreduce simplified-data-processingViet-Trung TRAN
 
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của Facebook
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của FacebookTìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của Facebook
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của FacebookViet-Trung TRAN
 
A Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkA Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkViet-Trung TRAN
 
Large-Scale Geographically Weighted Regression on Spark
Large-Scale Geographically Weighted Regression on SparkLarge-Scale Geographically Weighted Regression on Spark
Large-Scale Geographically Weighted Regression on SparkViet-Trung TRAN
 
Recent progress on distributing deep learning
Recent progress on distributing deep learningRecent progress on distributing deep learning
Recent progress on distributing deep learningViet-Trung TRAN
 
success factors for project proposals
success factors for project proposalssuccess factors for project proposals
success factors for project proposalsViet-Trung TRAN
 
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...Viet-Trung TRAN
 
Introduction to BigData @TCTK2015
Introduction to BigData @TCTK2015Introduction to BigData @TCTK2015
Introduction to BigData @TCTK2015Viet-Trung TRAN
 
From neural networks to deep learning
From neural networks to deep learningFrom neural networks to deep learning
From neural networks to deep learningViet-Trung TRAN
 
3 - Finding similar items
3 - Finding similar items3 - Finding similar items
3 - Finding similar itemsViet-Trung TRAN
 
Dimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applicationsDimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applicationsViet-Trung TRAN
 
Introduction to mining massive datasets
Introduction to mining massive datasetsIntroduction to mining massive datasets
Introduction to mining massive datasetsViet-Trung TRAN
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworksViet-Trung TRAN
 

More from Viet-Trung TRAN (20)

Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017
Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017
Bắt đầu tìm hiểu về dữ liệu lớn như thế nào - 2017
 
Dynamo: Amazon’s Highly Available Key-value Store
Dynamo: Amazon’s Highly Available Key-value StoreDynamo: Amazon’s Highly Available Key-value Store
Dynamo: Amazon’s Highly Available Key-value Store
 
Pregel: Hệ thống xử lý đồ thị lớn
Pregel: Hệ thống xử lý đồ thị lớnPregel: Hệ thống xử lý đồ thị lớn
Pregel: Hệ thống xử lý đồ thị lớn
 
Mapreduce simplified-data-processing
Mapreduce simplified-data-processingMapreduce simplified-data-processing
Mapreduce simplified-data-processing
 
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của Facebook
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của FacebookTìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của Facebook
Tìm kiếm needle trong Haystack: Hệ thống lưu trữ ảnh của Facebook
 
A Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural NetworkA Vietnamese Language Model Based on Recurrent Neural Network
A Vietnamese Language Model Based on Recurrent Neural Network
 
Large-Scale Geographically Weighted Regression on Spark
Large-Scale Geographically Weighted Regression on SparkLarge-Scale Geographically Weighted Regression on Spark
Large-Scale Geographically Weighted Regression on Spark
 
Recent progress on distributing deep learning
Recent progress on distributing deep learningRecent progress on distributing deep learning
Recent progress on distributing deep learning
 
success factors for project proposals
success factors for project proposalssuccess factors for project proposals
success factors for project proposals
 
GPSinsights poster
GPSinsights posterGPSinsights poster
GPSinsights poster
 
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...
Paper@Soict2015: GPSInsights: towards a scalable framework for mining massive...
 
Deep learning for nlp
Deep learning for nlpDeep learning for nlp
Deep learning for nlp
 
Introduction to BigData @TCTK2015
Introduction to BigData @TCTK2015Introduction to BigData @TCTK2015
Introduction to BigData @TCTK2015
 
From neural networks to deep learning
From neural networks to deep learningFrom neural networks to deep learning
From neural networks to deep learning
 
3 - Finding similar items
3 - Finding similar items3 - Finding similar items
3 - Finding similar items
 
Dimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applicationsDimensionality reduction: SVD and its applications
Dimensionality reduction: SVD and its applications
 
Introduction to mining massive datasets
Introduction to mining massive datasetsIntroduction to mining massive datasets
Introduction to mining massive datasets
 
6 clustering
6 clustering6 clustering
6 clustering
 
2 association rules
2 association rules2 association rules
2 association rules
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworks
 

Recently uploaded

原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 

Recently uploaded (20)

原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 

Recommender systems: Content-based and collaborative filtering

  • 1. Recommender Systems: Content-based Systems & Collaborative Filtering Viet-Trung Tran
  • 2. Credits • Mining of Massive Datasets – Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford University – http://www.mmds.org Viet-Trung Tran 2
  • 3. High Dimensional Data High dim. data Locality sensitive hashing Clustering Dimensional ity reduction Graph data PageRank, SimRank Community Detection Spam Detection Infinite data Filtering data streams Web advertising Queries on streams Machine learning SVM Decision Trees Perceptron, kNN Apps Recommen der systems Association Rules Duplicate document detection Viet-Trung Tran 3
  • 4. Example: Recommender Systems • Customer X – Buys Metallica CD – Buys Megadeth CD • Customer Y – Does search on Metallica – Recommender system suggests Megadeth from data collected about customer XViet-Trung Tran 4
  • 5. Recommendations Viet-Trung Tran 5 Items Search Recommendations Products, web sites, blogs, news items, … Examples:
  • 6. From Scarcity to Abundance • Shelf space is a scarce commodity for traditional retailers – Also: TV networks, movie theaters,… • Web enables near-zero-cost dissemination of information about products – From scarcity to abundance • More choice necessitates better filters – Recommendation engines – How Into Thin Air made Touching the Void a bestseller: http://www.wired.com/wired/archive/12.10/tail.html Viet-Trung Tran 6
  • 7. Types of Recommendations • Editorial and hand curated – List of favorites – Lists of “essential” items • Simple aggregates – Top 10, Most Popular, Recent Uploads • Tailored to individual users – Amazon, Netflix, … Viet-Trung Tran 7
  • 8. Formal Model • X = set of Customers • S = set of Items • Utility function u: X × S  R – R = set of ratings – R is a totally ordered set – e.g., 0-5 stars, real number in [0,1] Viet-Trung Tran 8
  • 9. Utility Matrix 0.4 10.2 0.30.5 0.21 Viet-Trung Tran 9 Avatar LOTR Matrix Pirates Alice Bob Carol David
  • 10. Key Problems • (1) Gathering “known” ratings for matrix – How to collect the data in the utility matrix • (2) Extrapolate unknown ratings from the known ones – Mainly interested in high unknown ratings • We are not interested in knowing what you don’t like but what you like • (3) Evaluating extrapolation methods – How to measure success/performance of recommendation methods Viet-Trung Tran 10
  • 11. (1) Gathering Ratings • Explicit – Ask people to rate items – Doesn’t work well in practice – people can’t be bothered • Implicit – Learn ratings from user actions • E.g., purchase implies high rating – What about low ratings? Viet-Trung Tran 11
  • 12. (2) Extrapolating Utilities • Key problem: Utility matrix U is sparse – Most people have not rated most items – Cold start: • New items have no ratings • New users have no history • Three approaches to recommender systems: – 1) Content-based – 2) Collaborative – 3) Latent factor based Viet-Trung Tran 12
  • 14. Content-based Recommendations • Main idea: Recommend items to customer x similar to previous items rated highly by x Example: • Movie recommendations – Recommend movies with same actor(s), director, genre, … • Websites, blogs, news – Recommend other sites with “similar” content Viet-Trung Tran 14
  • 15. Plan of Action Viet-Trung Tran 15 likes Item profiles Red Circles Triangles User profile match recommend build
  • 16. Item Profiles • For each item, create an item profile • Profile is a set (vector) of features – Movies: author, title, actor, director,… – Text: Set of “important” words in document • How to pick important features? – Usual heuristic from text mining is TF-IDF (Term frequency * Inverse Doc Frequency) • Term … Feature • Document … Item Viet-Trung Tran 16
  • 17. TF-IDF fij = frequency of term (feature) i in doc (item) j ni = number of docs that mention term i N = total number of docs TF-IDF score: wij = TFij × IDFi Doc profile = set of words with highest TF-IDF scores, together with their scores Viet-Trung Tran 17
  • 18. User Profiles and Prediction • User profile possibilities: – Weighted average of rated item profiles – Variation: weight by difference from average rating for item – … • Prediction heuristic: – Given user profile x and item profile i, estimate 𝑢(𝒙, 𝒊) = cos(𝒙, 𝒊) = 𝒙·𝒊 | 𝒙 |⋅| 𝒊 | Viet-Trung Tran 18
  • 19. Pros: Content-based Approach • +: No need for data on other users – No cold-start or sparsity problems • +: Able to recommend to users with unique tastes • +: Able to recommend new & unpopular items – No first-rater problem • +: Able to provide explanations – Can provide explanations of recommended items by listing content-features that caused an item to be recommended Viet-Trung Tran 19
  • 20. Cons: Content-based Approach • –: Finding the appropriate features is hard – E.g., images, movies, music • –: Recommendations for new users – How to build a user profile? • –: Overspecialization – Never recommends items outside user’s content profile – People might have multiple interests – Unable to exploit quality judgments of other users Viet-Trung Tran 20
  • 21. Collaborative Filtering Harnessing quality judgments of other users
  • 22. Collaborative Filtering • Consider user x • Find set N of other users whose ratings are “similar” to x’s ratings • Estimate x’s ratings based on ratings of users in N Viet-Trung Tran 22 x N
  • 23. Finding “Similar” Users • Let rx be the vector of user x’s ratings • Jaccard similarity measure – Problem: Ignores the value of the rating • Cosine similarity measure – Problem: Treats missing ratings as “negative” • Pearson correlation coefficient – Sxy = items rated by both users x and y Viet-Trung Tran 23 rx = [*, _, _, *, ***] ry = [*, _, **, **, _] rx, ry as sets: rx = {1, 4, 5} ry = {1, 3, 4} rx, ry as points: rx = {1, 0, 0, 1, 3} ry = {1, 0, 2, 2, 0} rx, ry … avg. rating of x, y
  • 24. Similarity Metric • Intuitively we want: sim(A, B) > sim(A, C) • Jaccard similarity: 1/5 < 2/4 • Cosine similarity: 0.386 > 0.322 – Considers missing ratings as “negative” – Solution: subtract the (row) mean Viet-Trung Tran 24 sim A,B vs. A,C: 0.092 > -0.559 Notice cosine sim. is correlation when data is centered at 0 Cosine sim:
  • 25. Rating Predictions Viet-Trung Tran 25 Shorthand: 𝒔 𝒙𝒚 = 𝒔𝒊𝒎 𝒙, 𝒚 • From similarity metric to recommendations – Let rx be the vector of user x's ratings – Let N be the set of k users most similar to x who have rated item i • Prediction for item s of user x
  • 26. Item-Item Collaborative Filtering • So far: User-user collaborative filtering • Another view: Item-item – For item i, find other similar items – Estimate rating for item i based on ratings for similar items – Can use same similarity metrics and prediction functions as in user-user model Viet-Trung Tran 26       );( );( xiNj ij xiNj xjij xi s rs r sij… similarity of items i and j rxj…rating of user u on item j N(i;x)… set items rated by x similar to i
  • 27. Item-Item CF (|N|=2) Viet-Trung Tran 27 121110987654321 455311 3124452 534321423 245424 5224345 423316 users movies - unknown rating - rating between 1 to 5
  • 28. Item-Item CF (|N|=2) Viet-Trung Tran 28 121110987654321 455?311 3124452 534321423 245424 5224345 423316 users - estimate rating of movie 1 by user 5 movies
  • 29. Item-Item CF (|N|=2) Viet-Trung Tran 29 121110987654321 455?311 3124452 534321423 245424 5224345 423316 users Neighbor selection: Identify movies similar to movie 1, rated by user 5 movies 1.00 -0.18 0.41 -0.10 -0.31 0.59 sim(1,m) Here we use Pearson correlation as similarity: 1) Subtract mean rating mi from each movie i m1 = (1+3+5+5+4)/5 = 3.6 row 1: [-2.6, 0, -0.6, 0, 0, 1.4, 0, 0, 1.4, 0, 0.4, 0] 2) Compute cosine similarities between rows
  • 30. Item-Item CF (|N|=2) Viet-Trung Tran 30 121110987654321 455?311 3124452 534321423 245424 5224345 423316 users Compute similarity weights: s1,3=0.41, s1,6=0.59 movies 1.00 -0.18 0.41 -0.10 -0.31 0.59 sim(1,m)
  • 31. Item-Item CF (|N|=2) Viet-Trung Tran 31 121110987654321 4552.6311 3124452 534321423 245424 5224345 423316 users Predict by taking weighted average: r1.5 = (0.41*2 + 0.59*3) / (0.41+0.59) = 2.6 movies
  • 32. CF: Common Practice • Define similarity sij of items i and j • Select k nearest neighbors N(i; x) – Items most similar to i, that were rated by x • Estimate rating rxi as the weighted average: Viet-Trung Tran 32 baseline estimate for rxi  μ = overall mean movie rating  bx = rating deviation of user x = (avg. rating of user x) – μ  bi = rating deviation of movie i      );( );( xiNj ij xiNj xjij xi s rs r Before:       );( );( )( xiNj ij xiNj xjxjij xixi s brs br
  • 33. Item-Item vs. User-User 0.41 8.010.9 0.30.5 0.81 Viet-Trung Tran 33 Avatar LOTR Matrix Pirates Alice Bob Carol David  In practice, it has been observed that item-item often works better than user-user  Why? Items are simpler, users have multiple tastes
  • 34. Pros/Cons of Collaborative Filtering • + Works for any kind of item – No feature selection needed • - Cold Start: – Need enough users in the system to find a match • - Sparsity: – The user/ratings matrix is sparse – Hard to find users that have rated the same items • - First rater: – Cannot recommend an item that has not been previously rated – New items, Esoteric items • - Popularity bias: – Cannot recommend items to someone with unique taste – Tends to recommend popular items Viet-Trung Tran 34
  • 35. Hybrid Methods • Implement two or more different recommenders and combine predictions – Perhaps using a linear model • Add content-based methods to collaborative filtering – Item profiles for new item problem – Demographics to deal with new user problem Viet-Trung Tran 35
  • 36. Remarks & Practical Tips - Evaluation - Error metrics - Complexity / Speed Viet-Trung Tran 36
  • 37. Evaluation Viet-Trung Tran 37 1 3 4 3 5 5 4 5 5 3 3 2 2 2 5 2 1 1 3 3 1 movies users
  • 38. Evaluation Viet-Trung Tran 38 1 3 4 3 5 5 4 5 5 3 3 2 ? ? ? 2 1 ? 3 ? 1 Test Data Set users movies
  • 39. Evaluating Predictions • Compare predictions with known ratings – Root-mean-square error (RMSE) • 𝑥𝑖 𝑟𝑥𝑖 − 𝑟𝑥𝑖 ∗ 2 where 𝒓 𝒙𝒊 is predicted, 𝒓 𝒙𝒊 ∗ is the true rating of x on i – Precision at top 10: • % of those in top 10 – Rank Correlation: • Spearman’s correlation between system’s and user’s complete rankings • Another approach: 0/1 model – Coverage: • Number of items/users for which system can make predictions – Precision: • Accuracy of predictions – Receiver operating characteristic (ROC) • Tradeoff curve between false positives and false negatives Viet-Trung Tran 39
  • 40. Problems with Error Measures • Narrow focus on accuracy sometimes misses the point – Prediction Diversity – Prediction Context – Order of predictions • In practice, we care only to predict high ratings: – RMSE might penalize a method that does well for high ratings and badly for others Viet-Trung Tran 40
  • 41. Collaborative Filtering: Complexity • Expensive step is finding k most similar customers: O(|X|) • Too expensive to do at runtime – Could pre-compute • Naïve pre-computation takes time O(k ·|X|) – X … set of customers • We already know how to do this! – Near-neighbor search in high dimensions (LSH) – Clustering – Dimensionality reduction Viet-Trung Tran 41
  • 42. Tip: Add Data • Leverage all the data – Don’t try to reduce data size in an effort to make fancy algorithms work – Simple methods on large data do best • Add more data – e.g., add IMDB data on genres • More data beats better algorithms http://anand.typepad.com/datawocky/2008/03/more-data-usual.html Viet-Trung Tran 42