Giter VIP home page Giter VIP logo

esratmaria / improved-movie-recommendation-system-with-knn-and-cosine-similarity Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 963 KB

Movie recommendation system based on popularity and also using KNN and Cosine similarity. ๐ŸŽฅ๐Ÿฟ

Jupyter Notebook 100.00%
recommender-system machine-learning predictive-modeling svd-matrix-factorisation cosine-distance cosine-similarity-scores knn-classifier popularity-recommender

improved-movie-recommendation-system-with-knn-and-cosine-similarity's Introduction

Recommendation System

Recommendation systems improve the quality of search results and provide elements that are more relevant to the search item or that are related to the search history of the user. Recommendation systems are widely used to recommend movies, items, restaurants, places to visit, items to buy, etc.

Types of recommendation System

  • Popularity Based: It keeps track of view counts for each movie/video and then lists movies based on views in descending order.

  • Content Based: This type of recommendation system, takes in a movie that a user currently likes as input. Then it analyzes the contents of the movie to find out other movies that have similar content. Then it ranks similar movies according to their similarity scores and recommends the most relevant movies to the user.

  • Collaborative filtering: In this category, the recommendations get filtered based on the collaboration between similar user preferences.

In this repository, I tried making a movie recommendation system that suggests relevant movies according to a user's interest and previously rated movies.

Dataset

I am using the MovieLens dataset. The data consists of 105339 ratings applied over 10329 movies.

The movies.csv dataset contains three columns:

movieId: the ID of the movie
title: Movie title
genres: movies genres

The ratings.csv dataset contains four columns:

userId: the ID of the user who rated the movie.
movieId: the ID of the movie
ratings: ratings given by each user (from 0 to 5)
Timestamp: The time the movie was rated.

The CSV files can be found here.

Approaches Tried

  • Deleting Unnecessary Columns
  • Remove the NaN values from the dataset
  • Combining the files and making a pivot table
  • Data Transformations
  • Data Cleaning
  • Data Exploration and fetching detailed information, details are here.

Recommendation Strategies

  • KNN (K- Nearest Neighbor)
  • Cosine Similarity
  • Popularity (most rated) based recommender

References

improved-movie-recommendation-system-with-knn-and-cosine-similarity's People

Contributors

esratmaria avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.