This is the part 2 of building a recommendation system from scratch!. For part 1 please click on this link

1.2 Collaborative filtering based on items

Okay, so in the previous tutorial we have learned how to build a simple recommendation system using Collaborative Filtering on top of users.

Well, you can also use collaborative filtering on items/products too!

Its very simple and like the previous example, (movies recommendation based on watch/not watch) you need to find all the users who watched the movie and then find the most watched movies on those users after that.

Lets put that into example from the previous example dataset,

Image for post
Image for post

1> Let say, you want to recommend user similar movies to Movie 1, based on Collaborative Filtering on Items (using a very simple…


Abhik Saha

Entrepreneur | Information Retrieval | Web — https://arnabhik.com/abhik

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store