SlideShare a Scribd company logo
1 of 40
Chapter 12 (Section 12.4):
Recommender Systems
Second edition of the book, coming soon
Road Map
 Introduction
 Content-based recommendation
 Collaborative filtering based recommendation
 K-nearest neighbor
 Association rules
 Matrix factorization
CS583, Bing Liu, UIC 2
Introduction
 Recommender systems are widely used on
the Web for recommending products and
services to users.
 Most e-commerce sites have such systems.
 These systems serve two important functions.
 They help users deal with the information overload
by giving them recommendations of products, etc.
 They help businesses make more profits, i.e.,
selling more products.
CS583, Bing Liu, UIC 3
E.g., movie recommendation
 The most common scenario is the following:
 A set of users has initially rated some subset of
movies (e.g., on the scale of 1 to 5) that they have
already seen.
 These ratings serve as the input. The
recommendation system uses these known
ratings to predict the ratings that each user would
give to those not rated movies by him/her.
 Recommendations of movies are then made to
each user based on the predicted ratings.
CS583, Bing Liu, UIC 4
Different variations
 In some applications, there is no rating
information while in some others there are also
additional attributes
 about each user (e.g., age, gender, income, marital
status, etc), and/or
 about each movie (e.g., title, genre, director,
leading actors or actresses, etc).
 When no rating information, the system will not
predict ratings but predict the likelihood that a
user will enjoy watching a movie.
CS583, Bing Liu, UIC 5
The Recommendation Problem
 We have a set of users U and a set of items S
to be recommended to the users.
 Let p be an utility function that measures the
usefulness of item s (∈ S) to user u (∈ U), i.e.,
 p:U×S → R, where R is a totally ordered set (e.g.,
non-negative integers or real numbers in a range)
 Objective
 Learn p based on the past data
 Use p to predict the utility value of each item s (∈
S) to each user u (∈ U)
CS583, Bing Liu, UIC 6
As Prediction
 Rating prediction, i.e., predict the rating score
that a user is likely to give to an item that s/he
has not seen or used before. E.g.,
 rating on an unseen movie. In this case, the utility
of item s to user u is the rating given to s by u.
 Item prediction, i.e., predict a ranked list of
items that a user is likely to buy or use.
CS583, Bing Liu, UIC 7
Two basic approaches
 Content-based recommendations:
 The user will be recommended items similar to the
ones the user preferred in the past;
 Collaborative filtering (or collaborative
recommendations):
 The user will be recommended items that people
with similar tastes and preferences liked in the past.
 Hybrids: Combine collaborative and content-
based methods.
CS583, Bing Liu, UIC 8
Road Map
 Introduction
 Content-based recommendation
 Collaborative filtering based recommendation
 K-nearest neighbor
 Association rules
 Matrix factorization
CS583, Bing Liu, UIC 9
Content-Based Recommendation
 Perform item recommendations by predicting
the utility of items for a particular user based
on how “similar” the items are to those that
he/she liked in the past. E.g.,
 In a movie recommendation application, a movie
may be represented by such features as specific
actors, director, genre, subject matter, etc.
 The user’s interest or preference is also
represented by the same set of features, called
the user profile.
CS583, Bing Liu, UIC 10
Content-based recommendation (contd)
 Recommendations are made by comparing
the user profile with candidate items
expressed in the same set of features.
 The top-k best matched or most similar items
are recommended to the user.
 The simplest approach to content-based
recommendation is to compute the similarity
of the user profile with each item.
CS583, Bing Liu, UIC 11
Road Map
 Introduction
 Content-based recommendation
 Collaborative filtering based recommendations
 K-nearest neighbor
 Association rules
 Matrix factorization
CS583, Bing Liu, UIC 12
Collaborative filtering
 Collaborative filtering (CF) is perhaps the
most studied and also the most widely-used
recommendation approach in practice.
 k-nearest neighbor,
 association rules based prediction, and
 matrix factorization
 Key characteristic of CF: it predicts the utility
of items for a user based on the items
previously rated by other like-minded users.
CS583, Bing Liu, UIC 13
k-nearest neighbor
 kNN (which is also called the memory-based
approach) utilizes the entire user-item
database to generate predictions directly, i.e.,
there is no model building.
 This approach includes both
 User-based methods
 Item-based methods
CS583, Bing Liu, UIC 14
User-based kNN CF
 A user-based kNN collaborative filtering
method consists of two primary phases:
 the neighborhood formation phase and
 the recommendation phase.
 There are many specific methods for both.
Here we only introduce one for each phase.
CS583, Bing Liu, UIC 15
Neighborhood formation phase
 Let the record (or profile) of the target user be
u (represented as a vector), and the record of
another user be v (v ∈ T).
 The similarity between the target user, u, and
a neighbor, v, can be calculated using the
Pearson’s correlation coefficient:
CS583, Bing Liu, UIC 16
,
)()(
))((
),(
2
,
2
,
,,
∑∑
∑
∈∈
∈
−−
−−
=
Ci iCi i
Ci ii
rrrr
rrrr
sim
vvuu
vvuu
vu
Recommendation Phase
 Use the following formula to compute the
rating prediction of item i for target user u
where V is the set of k similar users, rv,i is the
rating of user v given to item i,
CS583, Bing Liu, UIC 17
∑
∑
∈
∈
−×
+=
V
V i
sim
rrsim
rip
v
v vv
u
vu
vu
u
),(
)(),(
),(
,
Issue with the user-based kNN CF
 The problem with the user-based formulation
of collaborative filtering is the lack of
scalability:
 it requires the real-time comparison of the target
user to all user records in order to generate
predictions.
 A variation of this approach that remedies
this problem is called item-based CF.
CS583, Bing Liu, UIC 18
Item-based CF
 The item-based approach works by
comparing items based on their pattern of
ratings across users. The similarity of items i
and j is computed as follows:
CS583, Bing Liu, UIC 19
∑∑
∑
∈∈
∈
−−
−−
=
U jU i
U ji
rrrr
rrrr
jisim
u uuu uu
u uuuu
2
,
2
,
,,
)()(
))((
),(
Recommendation phase
 After computing the similarity between items
we select a set of k most similar items to the
target item and generate a predicted value of
user u’s rating
where J is the set of k similar items
CS583, Bing Liu, UIC 20
∑
∑
∈
∈
×
=
Jj
Jj j
jisim
jisimr
ip
),(
),(
)(
,u
u,
Road Map
 Introduction
 Content-based recommendation
 Collaborative filtering based recommendation
 K-nearest neighbor
 Association rules
 Matrix factorization
CS583, Bing Liu, UIC 21
Association rule-based CF
 Association rules obviously can be used for
recommendation.
 Each transaction for association rule mining
is the set of items bought by a particular user.
 We can find item association rules, e.g.,
buy_X, buy_Y -> buy_Z
 Rank items based on measures such as
confidence, etc.
 See Chapter 3 for details
CS583, Bing Liu, UIC 22
Road Map
 Introduction
 Content-based recommendation
 Collaborative filtering based recommendation
 K-nearest neighbor
 Association rules
 Matrix factorization
CS583, Bing Liu, UIC 23
Matrix factorization
 The idea of matrix factorization is to
decompose a matrix M into the product of
several factor matrices, i.e.,
where n can be any number, but it is usually
2 or 3.
CS583, Bing Liu, UIC 24
nFFFM ...21=
CF using matrix factorization
 Matrix factorization has gained popularity for
CF in recent years due to its superior
performance both in terms of recommendation
quality and scalability.
 Part of its success is due to the Netflix Prize
contest for movie recommendation, which
popularized a Singular Value Decomposition
(SVD) based matrix factorization algorithm.
 The prize winning method of the Netflix Prize
Contest employed an adapted version of SVD
CS583, Bing Liu, UIC 25
The abstract idea
 Matrix factorization a latent factor model.
Latent variables (also called features,
aspects, or factors) are introduced to account
for the underlying reasons of a user
purchasing or using a product.
 When the connections between the latent
variables and observed variables (user, product,
rating, etc.) are estimated during the training
 recommendations can be made to users by
computing their possible interactions with each
product through the latent variables.
CS583, Bing Liu, UIC 26
Netflix Prize Contest
CS583, Bing Liu, UIC 27
Netflix Prize Task
 Training data: Quadruples of the form
(user, movie, rating, time)
 For our purpose here, we only use triplets, i.e.,
(user, movie, rating)
 For example, (132456, 13546, 4) means that the
user with ID 132456 gave the movie with ID 13546
a rating of 4 (out of 5).
 Testing: predict the rating of each triplet:
(user, movie, ?)
CS583, Bing Liu, UIC 28
SVD factorization
 The technique discussed here is based on
the SVD method given by
 Simon Funk at his blog site,
 the derivation of Funk’s method described by
Wagman in the Netflix forums.
 the paper by Takacs et al.
 The method was later improved by Koren et
al., Paterek and several other researchers.
CS583, Bing Liu, UIC 29
Intuitive Idea
CS583, Bing Liu, UIC 30
Simon Funk’s SVD method
CS583, Bing Liu, UIC 31
where U = [u1, u2, …, uI] and M = [m1, m2, …, mJ]
SVD method (contd)
 Let us use K = 90 latent aspects (K needs to
be set experimentally).
 Then, each movie will be described by only
ninety aspect values indicating how much
that movie exemplifies each aspect.
 Correspondingly, each user is also described
by ninety aspect values indicating how much
he/she prefers each aspect.
CS583, Bing Liu, UIC 32
SVD method (contd)
 To combine these together into a rating, we
multiply each user preference by the
corresponding movie aspect, and then sum
them up to give a rating to indicate how much
that user likes that movie:
 U = [u1, u2, …, uI] and M = [m1, m2, …, mJ]
 Using SVD, we can perform the task
CS583, Bing Liu, UIC 33
∑=
×=≈
K
k
kjkij
T
iij mur
1
mu
SVD method (contd)
 SVD is a mathematical way to find these two
smaller matrices which minimizes the
resulting approximation error, the mean
square error (MSE).
 We can use the resulting matrices U and M to
predict the ratings in the test set.
CS583, Bing Liu, UIC 34
SVD method (contd)
CS583, Bing Liu, UIC 35
SVD method (contd)
 To minimize the error, the gradient descent
approach is used.
 For gradient descent, we take the partial
derivative of the square error with respect to
each parameter, i.e. with respect to each uki
and mkj.
CS583, Bing Liu, UIC 36
ki
ij
ij
ki
ij
u
e
e
u
e
∂
∂
=
∂
∂
2
)( 2
SVD method (contd)
CS583, Bing Liu, UIC 37
SVD method (contd)
CS583, Bing Liu, UIC 38
The final update rules
 By the same reasoning, we can also compute
the update rule for mkj.
 Finally, we have both rules
 The final prediction uses Eq. (11)
CS583, Bing Liu, UIC 39
Further improvements
 The two basic rules need some
improvements to make them work well.
 There are also some pre-processing.
 Time was also added later.
 Etc
 Note:
 Funk used stochastic gradient descent
 Not the batch (global) gradient descent.
CS583, Bing Liu, UIC 40

More Related Content

What's hot

Matrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender SystemsMatrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender SystemsAladejubelo Oluwashina
 
Webpage Personalization and User Profiling
Webpage Personalization and User ProfilingWebpage Personalization and User Profiling
Webpage Personalization and User Profilingyingfeng
 
Scene Description From Images To Sentences
Scene Description From Images To SentencesScene Description From Images To Sentences
Scene Description From Images To SentencesIRJET Journal
 
[WI 2014]Context Recommendation Using Multi-label Classification
[WI 2014]Context Recommendation Using Multi-label Classification[WI 2014]Context Recommendation Using Multi-label Classification
[WI 2014]Context Recommendation Using Multi-label ClassificationYONG ZHENG
 
Matrix Factorization Techniques For Recommender Systems
Matrix Factorization Techniques For Recommender SystemsMatrix Factorization Techniques For Recommender Systems
Matrix Factorization Techniques For Recommender SystemsLei Guo
 
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...YONG ZHENG
 
Deep learning based recommender systems (lab seminar paper review)
Deep learning based recommender systems (lab seminar paper review)Deep learning based recommender systems (lab seminar paper review)
Deep learning based recommender systems (lab seminar paper review)hyunsung lee
 
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...YONG ZHENG
 
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...YONG ZHENG
 
Data science essentials in azure ml
Data science essentials in azure mlData science essentials in azure ml
Data science essentials in azure mlMostafa
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithmsnextlib
 
[UMAP2013] Recommendation with Differential Context Weighting
[UMAP2013] Recommendation with Differential Context Weighting[UMAP2013] Recommendation with Differential Context Weighting
[UMAP2013] Recommendation with Differential Context WeightingYONG ZHENG
 
Recommendation and Information Retrieval: Two Sides of the Same Coin?
Recommendation and Information Retrieval: Two Sides of the Same Coin?Recommendation and Information Retrieval: Two Sides of the Same Coin?
Recommendation and Information Retrieval: Two Sides of the Same Coin?Arjen de Vries
 
Social media recommendation based on people and tags (final)
Social media recommendation based on people and tags (final)Social media recommendation based on people and tags (final)
Social media recommendation based on people and tags (final)es712
 
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...YONG ZHENG
 
[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation
[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation
[Decisions2013@RecSys]The Role of Emotions in Context-aware RecommendationYONG ZHENG
 
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...Gabriel Moreira
 

What's hot (20)

Matrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender SystemsMatrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender Systems
 
Webpage Personalization and User Profiling
Webpage Personalization and User ProfilingWebpage Personalization and User Profiling
Webpage Personalization and User Profiling
 
Scene Description From Images To Sentences
Scene Description From Images To SentencesScene Description From Images To Sentences
Scene Description From Images To Sentences
 
[WI 2014]Context Recommendation Using Multi-label Classification
[WI 2014]Context Recommendation Using Multi-label Classification[WI 2014]Context Recommendation Using Multi-label Classification
[WI 2014]Context Recommendation Using Multi-label Classification
 
Matrix Factorization Techniques For Recommender Systems
Matrix Factorization Techniques For Recommender SystemsMatrix Factorization Techniques For Recommender Systems
Matrix Factorization Techniques For Recommender Systems
 
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...
[SAC2014]Splitting Approaches for Context-Aware Recommendation: An Empirical ...
 
Deep learning based recommender systems (lab seminar paper review)
Deep learning based recommender systems (lab seminar paper review)Deep learning based recommender systems (lab seminar paper review)
Deep learning based recommender systems (lab seminar paper review)
 
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...
[CARS2012@RecSys]Optimal Feature Selection for Context-Aware Recommendation u...
 
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...
[SAC 2015] Improve General Contextual SLIM Recommendation Algorithms By Facto...
 
Data science essentials in azure ml
Data science essentials in azure mlData science essentials in azure ml
Data science essentials in azure ml
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
 
[UMAP2013] Recommendation with Differential Context Weighting
[UMAP2013] Recommendation with Differential Context Weighting[UMAP2013] Recommendation with Differential Context Weighting
[UMAP2013] Recommendation with Differential Context Weighting
 
20320140501009 2
20320140501009 220320140501009 2
20320140501009 2
 
Recommendation and Information Retrieval: Two Sides of the Same Coin?
Recommendation and Information Retrieval: Two Sides of the Same Coin?Recommendation and Information Retrieval: Two Sides of the Same Coin?
Recommendation and Information Retrieval: Two Sides of the Same Coin?
 
Social media recommendation based on people and tags (final)
Social media recommendation based on people and tags (final)Social media recommendation based on people and tags (final)
Social media recommendation based on people and tags (final)
 
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...
[RecSys 2014] Deviation-Based and Similarity-Based Contextual SLIM Recommenda...
 
Sentiment based text segmentation
Sentiment based text segmentationSentiment based text segmentation
Sentiment based text segmentation
 
[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation
[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation
[Decisions2013@RecSys]The Role of Emotions in Context-aware Recommendation
 
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...
Discovering User's Topics of Interest in Recommender Systems @ Meetup Machine...
 
Report
ReportReport
Report
 

Viewers also liked

Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...
Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...
Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...Aravindharamanan S
 
Toward the next generation of recommender systems
Toward the next generation of recommender systemsToward the next generation of recommender systems
Toward the next generation of recommender systemsAravindharamanan S
 
Collaborative recommender systems for building automation
Collaborative recommender systems for building automationCollaborative recommender systems for building automation
Collaborative recommender systems for building automationAravindharamanan S
 
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...Aravindharamanan S
 
Yoda an accurate and scalable web based recommendation systems
Yoda an accurate and scalable web based recommendation systemsYoda an accurate and scalable web based recommendation systems
Yoda an accurate and scalable web based recommendation systemsAravindharamanan S
 
From home sql_server_tutorials
From home sql_server_tutorialsFrom home sql_server_tutorials
From home sql_server_tutorialsAravindharamanan S
 
Visual studio-2012-product-guide
Visual studio-2012-product-guideVisual studio-2012-product-guide
Visual studio-2012-product-guideAravindharamanan S
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-servicesAravindharamanan S
 
Web services-synchronous-or-asynchronous
Web services-synchronous-or-asynchronousWeb services-synchronous-or-asynchronous
Web services-synchronous-or-asynchronousAravindharamanan S
 
Soa amsterdam-restws-pautasso-talk
Soa amsterdam-restws-pautasso-talkSoa amsterdam-restws-pautasso-talk
Soa amsterdam-restws-pautasso-talkAravindharamanan S
 

Viewers also liked (16)

Jax ws
Jax wsJax ws
Jax ws
 
Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...
Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...
Ppt bigdataanalyticsfinanceprofessionals-big data, business analytics and fin...
 
Toward the next generation of recommender systems
Toward the next generation of recommender systemsToward the next generation of recommender systems
Toward the next generation of recommender systems
 
Recommender systems
Recommender systemsRecommender systems
Recommender systems
 
Collaborative recommender systems for building automation
Collaborative recommender systems for building automationCollaborative recommender systems for building automation
Collaborative recommender systems for building automation
 
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...
Big data -_14._maerz_mitarbeiterforschung_kundenevent_v2.pptx__schreibgeschue...
 
Android programming-basics
Android programming-basicsAndroid programming-basics
Android programming-basics
 
Android dev 3
Android dev 3Android dev 3
Android dev 3
 
Xml+messaging+with+soap
Xml+messaging+with+soapXml+messaging+with+soap
Xml+messaging+with+soap
 
Yoda an accurate and scalable web based recommendation systems
Yoda an accurate and scalable web based recommendation systemsYoda an accurate and scalable web based recommendation systems
Yoda an accurate and scalable web based recommendation systems
 
From home sql_server_tutorials
From home sql_server_tutorialsFrom home sql_server_tutorials
From home sql_server_tutorials
 
Visual studio-2012-product-guide
Visual studio-2012-product-guideVisual studio-2012-product-guide
Visual studio-2012-product-guide
 
Soap binding survey
Soap binding surveySoap binding survey
Soap binding survey
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-services
 
Web services-synchronous-or-asynchronous
Web services-synchronous-or-asynchronousWeb services-synchronous-or-asynchronous
Web services-synchronous-or-asynchronous
 
Soa amsterdam-restws-pautasso-talk
Soa amsterdam-restws-pautasso-talkSoa amsterdam-restws-pautasso-talk
Soa amsterdam-restws-pautasso-talk
 

Similar to Cs583 recommender-systems

CS583-recommender-systems.ppt
CS583-recommender-systems.pptCS583-recommender-systems.ppt
CS583-recommender-systems.pptArfatAhmadKhan1
 
Advances In Collaborative Filtering
Advances In Collaborative FilteringAdvances In Collaborative Filtering
Advances In Collaborative FilteringScott Donald
 
introduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptxintroduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptxPratik Gohel
 
Recommender system
Recommender systemRecommender system
Recommender systemSaiguru P.v
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceHarivamshi D
 
Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system Mauryasuraj98
 
Introduction to recommendation system
Introduction to recommendation systemIntroduction to recommendation system
Introduction to recommendation systemAravindharamanan S
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemMilind Gokhale
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation SystemsRobin Reni
 
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
 
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGMOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGIRJET Journal
 
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
 
Real-world News Recommender Systems
Real-world News Recommender SystemsReal-world News Recommender Systems
Real-world News Recommender Systemskib_83
 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsYONG ZHENG
 
Recommenders Systems
Recommenders SystemsRecommenders Systems
Recommenders SystemsTariq Hassan
 
A hybrid recommender system user profiling from keywords and ratings
A hybrid recommender system user profiling from keywords and ratingsA hybrid recommender system user profiling from keywords and ratings
A hybrid recommender system user profiling from keywords and ratingsAravindharamanan S
 
Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...IRJET Journal
 

Similar to Cs583 recommender-systems (20)

CS583-recommender-systems.ppt
CS583-recommender-systems.pptCS583-recommender-systems.ppt
CS583-recommender-systems.ppt
 
Project presentation
Project presentationProject presentation
Project presentation
 
Advances In Collaborative Filtering
Advances In Collaborative FilteringAdvances In Collaborative Filtering
Advances In Collaborative Filtering
 
introduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptxintroduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptx
 
Recommender system
Recommender systemRecommender system
Recommender system
 
Movie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial IntelligenceMovie recommendation Engine using Artificial Intelligence
Movie recommendation Engine using Artificial Intelligence
 
Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system
 
Introduction to recommendation system
Introduction to recommendation systemIntroduction to recommendation system
Introduction to recommendation system
 
Collaborative Filtering Recommendation System
Collaborative Filtering Recommendation SystemCollaborative Filtering Recommendation System
Collaborative Filtering Recommendation System
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation Systems
 
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
 
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERINGMOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
MOVIE RECOMMENDATION SYSTEM USING COLLABORATIVE FILTERING
 
Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence Movie Recommender System Using Artificial Intelligence
Movie Recommender System Using Artificial Intelligence
 
Developing Movie Recommendation System
Developing Movie Recommendation SystemDeveloping Movie Recommendation System
Developing Movie Recommendation System
 
Real-world News Recommender Systems
Real-world News Recommender SystemsReal-world News Recommender Systems
Real-world News Recommender Systems
 
Tutorial: Context In Recommender Systems
Tutorial: Context In Recommender SystemsTutorial: Context In Recommender Systems
Tutorial: Context In Recommender Systems
 
Recommenders Systems
Recommenders SystemsRecommenders Systems
Recommenders Systems
 
A hybrid recommender system user profiling from keywords and ratings
A hybrid recommender system user profiling from keywords and ratingsA hybrid recommender system user profiling from keywords and ratings
A hybrid recommender system user profiling from keywords and ratings
 
Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 

Cs583 recommender-systems

  • 1. Chapter 12 (Section 12.4): Recommender Systems Second edition of the book, coming soon
  • 2. Road Map  Introduction  Content-based recommendation  Collaborative filtering based recommendation  K-nearest neighbor  Association rules  Matrix factorization CS583, Bing Liu, UIC 2
  • 3. Introduction  Recommender systems are widely used on the Web for recommending products and services to users.  Most e-commerce sites have such systems.  These systems serve two important functions.  They help users deal with the information overload by giving them recommendations of products, etc.  They help businesses make more profits, i.e., selling more products. CS583, Bing Liu, UIC 3
  • 4. E.g., movie recommendation  The most common scenario is the following:  A set of users has initially rated some subset of movies (e.g., on the scale of 1 to 5) that they have already seen.  These ratings serve as the input. The recommendation system uses these known ratings to predict the ratings that each user would give to those not rated movies by him/her.  Recommendations of movies are then made to each user based on the predicted ratings. CS583, Bing Liu, UIC 4
  • 5. Different variations  In some applications, there is no rating information while in some others there are also additional attributes  about each user (e.g., age, gender, income, marital status, etc), and/or  about each movie (e.g., title, genre, director, leading actors or actresses, etc).  When no rating information, the system will not predict ratings but predict the likelihood that a user will enjoy watching a movie. CS583, Bing Liu, UIC 5
  • 6. The Recommendation Problem  We have a set of users U and a set of items S to be recommended to the users.  Let p be an utility function that measures the usefulness of item s (∈ S) to user u (∈ U), i.e.,  p:U×S → R, where R is a totally ordered set (e.g., non-negative integers or real numbers in a range)  Objective  Learn p based on the past data  Use p to predict the utility value of each item s (∈ S) to each user u (∈ U) CS583, Bing Liu, UIC 6
  • 7. As Prediction  Rating prediction, i.e., predict the rating score that a user is likely to give to an item that s/he has not seen or used before. E.g.,  rating on an unseen movie. In this case, the utility of item s to user u is the rating given to s by u.  Item prediction, i.e., predict a ranked list of items that a user is likely to buy or use. CS583, Bing Liu, UIC 7
  • 8. Two basic approaches  Content-based recommendations:  The user will be recommended items similar to the ones the user preferred in the past;  Collaborative filtering (or collaborative recommendations):  The user will be recommended items that people with similar tastes and preferences liked in the past.  Hybrids: Combine collaborative and content- based methods. CS583, Bing Liu, UIC 8
  • 9. Road Map  Introduction  Content-based recommendation  Collaborative filtering based recommendation  K-nearest neighbor  Association rules  Matrix factorization CS583, Bing Liu, UIC 9
  • 10. Content-Based Recommendation  Perform item recommendations by predicting the utility of items for a particular user based on how “similar” the items are to those that he/she liked in the past. E.g.,  In a movie recommendation application, a movie may be represented by such features as specific actors, director, genre, subject matter, etc.  The user’s interest or preference is also represented by the same set of features, called the user profile. CS583, Bing Liu, UIC 10
  • 11. Content-based recommendation (contd)  Recommendations are made by comparing the user profile with candidate items expressed in the same set of features.  The top-k best matched or most similar items are recommended to the user.  The simplest approach to content-based recommendation is to compute the similarity of the user profile with each item. CS583, Bing Liu, UIC 11
  • 12. Road Map  Introduction  Content-based recommendation  Collaborative filtering based recommendations  K-nearest neighbor  Association rules  Matrix factorization CS583, Bing Liu, UIC 12
  • 13. Collaborative filtering  Collaborative filtering (CF) is perhaps the most studied and also the most widely-used recommendation approach in practice.  k-nearest neighbor,  association rules based prediction, and  matrix factorization  Key characteristic of CF: it predicts the utility of items for a user based on the items previously rated by other like-minded users. CS583, Bing Liu, UIC 13
  • 14. k-nearest neighbor  kNN (which is also called the memory-based approach) utilizes the entire user-item database to generate predictions directly, i.e., there is no model building.  This approach includes both  User-based methods  Item-based methods CS583, Bing Liu, UIC 14
  • 15. User-based kNN CF  A user-based kNN collaborative filtering method consists of two primary phases:  the neighborhood formation phase and  the recommendation phase.  There are many specific methods for both. Here we only introduce one for each phase. CS583, Bing Liu, UIC 15
  • 16. Neighborhood formation phase  Let the record (or profile) of the target user be u (represented as a vector), and the record of another user be v (v ∈ T).  The similarity between the target user, u, and a neighbor, v, can be calculated using the Pearson’s correlation coefficient: CS583, Bing Liu, UIC 16 , )()( ))(( ),( 2 , 2 , ,, ∑∑ ∑ ∈∈ ∈ −− −− = Ci iCi i Ci ii rrrr rrrr sim vvuu vvuu vu
  • 17. Recommendation Phase  Use the following formula to compute the rating prediction of item i for target user u where V is the set of k similar users, rv,i is the rating of user v given to item i, CS583, Bing Liu, UIC 17 ∑ ∑ ∈ ∈ −× += V V i sim rrsim rip v v vv u vu vu u ),( )(),( ),( ,
  • 18. Issue with the user-based kNN CF  The problem with the user-based formulation of collaborative filtering is the lack of scalability:  it requires the real-time comparison of the target user to all user records in order to generate predictions.  A variation of this approach that remedies this problem is called item-based CF. CS583, Bing Liu, UIC 18
  • 19. Item-based CF  The item-based approach works by comparing items based on their pattern of ratings across users. The similarity of items i and j is computed as follows: CS583, Bing Liu, UIC 19 ∑∑ ∑ ∈∈ ∈ −− −− = U jU i U ji rrrr rrrr jisim u uuu uu u uuuu 2 , 2 , ,, )()( ))(( ),(
  • 20. Recommendation phase  After computing the similarity between items we select a set of k most similar items to the target item and generate a predicted value of user u’s rating where J is the set of k similar items CS583, Bing Liu, UIC 20 ∑ ∑ ∈ ∈ × = Jj Jj j jisim jisimr ip ),( ),( )( ,u u,
  • 21. Road Map  Introduction  Content-based recommendation  Collaborative filtering based recommendation  K-nearest neighbor  Association rules  Matrix factorization CS583, Bing Liu, UIC 21
  • 22. Association rule-based CF  Association rules obviously can be used for recommendation.  Each transaction for association rule mining is the set of items bought by a particular user.  We can find item association rules, e.g., buy_X, buy_Y -> buy_Z  Rank items based on measures such as confidence, etc.  See Chapter 3 for details CS583, Bing Liu, UIC 22
  • 23. Road Map  Introduction  Content-based recommendation  Collaborative filtering based recommendation  K-nearest neighbor  Association rules  Matrix factorization CS583, Bing Liu, UIC 23
  • 24. Matrix factorization  The idea of matrix factorization is to decompose a matrix M into the product of several factor matrices, i.e., where n can be any number, but it is usually 2 or 3. CS583, Bing Liu, UIC 24 nFFFM ...21=
  • 25. CF using matrix factorization  Matrix factorization has gained popularity for CF in recent years due to its superior performance both in terms of recommendation quality and scalability.  Part of its success is due to the Netflix Prize contest for movie recommendation, which popularized a Singular Value Decomposition (SVD) based matrix factorization algorithm.  The prize winning method of the Netflix Prize Contest employed an adapted version of SVD CS583, Bing Liu, UIC 25
  • 26. The abstract idea  Matrix factorization a latent factor model. Latent variables (also called features, aspects, or factors) are introduced to account for the underlying reasons of a user purchasing or using a product.  When the connections between the latent variables and observed variables (user, product, rating, etc.) are estimated during the training  recommendations can be made to users by computing their possible interactions with each product through the latent variables. CS583, Bing Liu, UIC 26
  • 27. Netflix Prize Contest CS583, Bing Liu, UIC 27
  • 28. Netflix Prize Task  Training data: Quadruples of the form (user, movie, rating, time)  For our purpose here, we only use triplets, i.e., (user, movie, rating)  For example, (132456, 13546, 4) means that the user with ID 132456 gave the movie with ID 13546 a rating of 4 (out of 5).  Testing: predict the rating of each triplet: (user, movie, ?) CS583, Bing Liu, UIC 28
  • 29. SVD factorization  The technique discussed here is based on the SVD method given by  Simon Funk at his blog site,  the derivation of Funk’s method described by Wagman in the Netflix forums.  the paper by Takacs et al.  The method was later improved by Koren et al., Paterek and several other researchers. CS583, Bing Liu, UIC 29
  • 31. Simon Funk’s SVD method CS583, Bing Liu, UIC 31 where U = [u1, u2, …, uI] and M = [m1, m2, …, mJ]
  • 32. SVD method (contd)  Let us use K = 90 latent aspects (K needs to be set experimentally).  Then, each movie will be described by only ninety aspect values indicating how much that movie exemplifies each aspect.  Correspondingly, each user is also described by ninety aspect values indicating how much he/she prefers each aspect. CS583, Bing Liu, UIC 32
  • 33. SVD method (contd)  To combine these together into a rating, we multiply each user preference by the corresponding movie aspect, and then sum them up to give a rating to indicate how much that user likes that movie:  U = [u1, u2, …, uI] and M = [m1, m2, …, mJ]  Using SVD, we can perform the task CS583, Bing Liu, UIC 33 ∑= ×=≈ K k kjkij T iij mur 1 mu
  • 34. SVD method (contd)  SVD is a mathematical way to find these two smaller matrices which minimizes the resulting approximation error, the mean square error (MSE).  We can use the resulting matrices U and M to predict the ratings in the test set. CS583, Bing Liu, UIC 34
  • 35. SVD method (contd) CS583, Bing Liu, UIC 35
  • 36. SVD method (contd)  To minimize the error, the gradient descent approach is used.  For gradient descent, we take the partial derivative of the square error with respect to each parameter, i.e. with respect to each uki and mkj. CS583, Bing Liu, UIC 36 ki ij ij ki ij u e e u e ∂ ∂ = ∂ ∂ 2 )( 2
  • 37. SVD method (contd) CS583, Bing Liu, UIC 37
  • 38. SVD method (contd) CS583, Bing Liu, UIC 38
  • 39. The final update rules  By the same reasoning, we can also compute the update rule for mkj.  Finally, we have both rules  The final prediction uses Eq. (11) CS583, Bing Liu, UIC 39
  • 40. Further improvements  The two basic rules need some improvements to make them work well.  There are also some pre-processing.  Time was also added later.  Etc  Note:  Funk used stochastic gradient descent  Not the batch (global) gradient descent. CS583, Bing Liu, UIC 40