This is a technique used in recommendations systems to predict preferences of a user by collecting preferences from many users.
There are 2 types:
- user based collaborative filtering – finds users who are similar to the target user based on their past interactions (e.g., ratings or purchases) and recommends items that these similar users liked
- item based collaborative filtering – looks at the similarity between items based on users’ past behavior. It recommends items that are similar to what the target user has liked in the past
Here is code. Its scrollable š
You can find the Jupyter notebook here https://github.com/bmwasaru/collaborative_filtering/blob/main/collaborative_filtering.ipynb
Leave me a comment, I like feedback š
Leave a comment