Memory-based approach
The memory-based approach to collaborative filtering loads the whole rating matrix into memory to provide recommendations, hence the name memory-based model. User-based filtering is the most prominent memory-based collaborative filtering model. The R snippet explained in the preceding section is the underlying principle by which memory-based methods work. As the user and product base grows, scalability is a big issue with memory-based models.
In the R snippet example, we used the ratings of user.b to fill in the missing ratings for user.a. In the real world, with thousands of users, the user-based filtering algorithm first proceeds as follows.
Let us say we have a set of users {u1,u2.....un} and a set of products {p ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access