15.0 Collaborative Filtering
15.0 Collaborative Filtering
Input:
User-item rating matrix
Tasks for Collaborative Filtering-based
Recommender System
User-based CF algorithm
Item-based CF algorithm
User-based CF
This method identifies users that are similar to
the queried (target) user and estimate the
desired rating to be the weighted average of
the ratings of these similar users.
Working of User-based CF
• Computation for finding k-nearest (similar)
neighbors of target user
Few co-rated items U1=[1,1,1], V1=[3,3,3] NAN 1 1 In case of flat value rating
with flat value. vector, PCC is not computable
U2=[3,3,3], V2=[3,3,3] NAN 1 NAN and cosine return value as 1.
Only one co-rated U1=[1] NAN 1 3 PCC is not computable, Cosine
item. V1=[3] will return 1 when there is
only one co-rated item.
No co-rated item and U1=[1,0,2,0,1,0,2,0,3,0] Can’t be Can’t be Can’t be There are no co-rated items,
rating vector are not calculated calculated calculated so PCC and Cosine are not
disjoint V1=[0,1,0,2,0,1,0,2,0,3] computable.
No co-rated item and U1=[1,0,1,0,2,0,0,1,5] Can’t be Can’t be Can’t be There are no co-rated items,
rating vector are calculated calculated calculated so PCC and Cosine are not
disjoint V1=[0,3,0,4,0,4,3,0,0] computable.