TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Using Cosine Similarity to Build a Movie Recommendation System

Mahnoor Javed
TDS Archive
Published in
8 min readNov 4, 2020

--

Image by Jade87 from Pixabay

Have you ever imagined that a simple formula that you have studied in high school would play a part in recommending you a movie on the basis of the one you already like?

Well, here we are, using the Cosine Similarity (the dot product for normalized vectors) to build a Movie Recommender System!

What are Recommender Systems?

Recommender systems are an important class of machine learning algorithms that offer “relevant” suggestions to users. Youtube, Amazon, Netflix, all function on recommendation systems where the system recommends you the next video or product based on your past activity (Content-based Filtering) or based on activities and preferences of other users similar to you (Collaborative Filtering). Likewise, Facebook also uses a recommendation system to suggest Facebook users you may know offline.

Photo by Glen Carrie on Unsplash

Recommendation Systems work based on the similarity between either the content or the users…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Mahnoor Javed
Mahnoor Javed

Written by Mahnoor Javed

An engineer by profession, a bibliophile by heart!

Responses (7)