Recommender Systems-Chapter 4
Recommender Systems-Chapter 4
Chapter 4
Sara Qassimi
[email protected]
1
Collaborative filtering
Memory based : Item based CF
Item-Item Collaborative Filtering: “Users who liked this item also liked …”
item-item filtering will take an item, find users who liked that item, and find
other items that those users or similar users also liked. It takes items and
outputs other items as recommendations.
● Deviation: How much user i likes item j’, compared to how much
everyone else likes j’ ( not as intuitive as user-user CF)
● If user i really likes j’ (more than other users do) and j is similar to j’
( is high), then user i probably likes j too
● Item-Item CF: choose item for a user, because this user has liked
similar items in the past
● If item j and j’ are similar, then they like the same users
identical
Pr. Sara Qassimi 11
FST- UCA
Practical Differences
● When comparing two items, there are more data than when comparing
2 users
○ Each user : up to ~ 20k items to look at
○ Each item: up to ~ 100k users to look at
○ Thus for item-based CF, weights are calculated based on more data
● Item-based CF is faster 2
○ Given a user, calculate
2
scores or each item; O(M N)
■ There are M item-item weights, and each vector is
length N 2
○ For user-based
2 CF, O(N M) 2
○ N >> M, so N compared ti M is even worse
● Like user-based CF, limit to neighborhood(20)
Collaborative Filtering
Matrix
User based Item based Deep learning Clustering
Factorization
The idea behind Matrix Factorization is that we want to express the Matrix R
in terms of a product of two smaller matrices W in U
Pr. Sara Qassimi 25
FST- UCA
Personalized RS : Model based Collaborative filtering
R(NXM)
W (NxK)
U(MxK)
39
Pr. Sara Qassimi
FST- UCA
Predicted Rating
Actual Rating
Update
Update
Bias Terms
Bias Terms
Users might be
very optimistic or
very pessimistic.
The bias of user
adjust the rating
based on the
user's general
tendency to rate
movies higher or
lower than
average.
Pr. Sara Qassimi 58
FST- UCA
Help to improve the accuracy of the predicted ratings of a user concerning a movie.