Giter Site home page Giter Site logo

roweyerboat / recommendation_system_movielens Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 10.61 MB

This repository covers a project of creating a recommendation system using collaborative filtering on the Grouplens movielens database. The surprise library is utilized to test out different models (KNN Basic, KNN Baseline, and SVD). SVD was found to be the most accurate and then was implemented into the system. The cold start problem was addressed by giving new users the opportunity to rate a random sample of 5 movies from movies that are among the most popular.

Home Page: https://roweyerboat.github.io/the_helpful_library_of_surprise

Jupyter Notebook 97.97% Python 2.03%
movielens ratings users-ratings movielens-data surprise-library surprise-python movies

recommendation_system_movielens's Introduction

Recommendation System Project

Project Overview

This project uses the Grouplens Movielens database to create a recommendation system using collaborative filtering. I utilized the surprise library to create this system. I iterated through the various types of models and found SVD To be the most accurate model. I addressed the cold start problem with creating a function that gathers new users ratings of some of the more popular movies to be able to recommend five movies to them.

Project Navigation

The repository contains the following:

  • Notebook about the Exploratory Data Analysis of the data provided with the movielens database as well as trying out different algorithms for models
  • Notebook containing how to get new users to supply ratings to address the cold start problem and using those inital ratings to recommend 5 movies
  • The data from movielens (ratings.csv, movies.csv, tags.csv, links.csv)
  • The subsample of data I used by filtering out users that had not rated more than 50 movies and movies that had less ratings. (ratings_limited_users.csv, popular_movies.csv)

Data Exploration Findings

I recognized there were a few movies that had a very high rating but only a few ratings. In fact, 3441 movies only had 1 rating so I limited this, but looking at users who had rated multiple movies and kept the ratings from users who had rated at least 50 movies. By doing this, I kept 98% of the original movies and 63% of the users. This increased the accuracy of collaborative filtering.

Modeling Comparison

In the end I found SVD to be the most accurate algorithm with RMSE of 0.857 and MAE of 0.658. Image of Chart with model comparisons

Issues to address

I addressed the cold start problem by giving new users a way to give their ratings to movies and then return 5 movie recommendations based on their ratings. I was able to improve this process by reducing the random list of movies that they would be asked to rate to be from the most popular movies or movies that had received the most ratings. This was to ensure that new users wouldn't be bogged down with having to go through their rating submissions filled with obscure movie titles.

Another way to address this would be to automatically recommend based on the content they show interest in (content filtering) instead of based on other customers. The best approach would include a combination of both content and collaborative filtering. Image showing collaborative vs content filtering

Business application

This can be applied to other types of cold start problems when trying to gather what a new customer might be interested in. A similar application would be to ask new customers to rate how interested they are in a random sample of the top selling products and using collaborative filtering based on other customers similar interests.

Presentation Links

Also included is an summary presentation. A video of this presentation can be found here

Here is the link to the blog I wrote while completing this project: https://roweyerboat.github.io/the_helpful_library_of_surprise

Contact Information

Github
LinkedIn

recommendation_system_movielens's People

Contributors

roweyerboat avatar

Stargazers

 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.