Git Product home page Git Product logo

balajirvp / recommender-systems---content-based-systems-and-collaborative-filtering Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.58 MB

Created Recommender systems using TMDB movie dataset by leveraging the concepts of Content Based Systems and Collaborative Filtering.

License: Apache License 2.0

Jupyter Notebook 100.00%
collaborative-filtering content-based-recommendation item-based-recommendation recommendation-system sbert-implementation surprise-library svdpp user-based-recommendation user-item-utility-matrix recommender-system recsys

recommender-systems---content-based-systems-and-collaborative-filtering's Introduction

Recommender Systems - Content Based Systems and Collaborative Filtering

I) Overview

Created Recommender systems using TMDB movie dataset by leveraging the concepts of Content Based Systems and Collaborative Filtering.

II) Contents of the Jupyter Notebook

Section 1 - Exploratory Data Analysis

  • 1.1 Dropping Features
  • 1.2 Updating Features
  • 1.3 Feature Engineering

Section 2 - Simple Recommender System

  • 2.1 Creating a simple recommender system to show the top N movies at an overall level
  • 2.2 Creating a simple recommender system to show the top N movies based on genre

Section 3 - Content Based Recommender System

  • 3.1 Movie Overview Based Recommender
  • 3.2 Movie Metadata Based Recommender

Section 4 - Collaborative Filtering System

  • 4.1 Memory-Based Systems
    • 4.1.1 User-Based Collaborative Filtering
    • 4.1.2 Item-Based Collaborative Filtering
  • 4.2 Model-Based Systems

III) Key Packages/Functions used

  • pandas - 1.4.4
  • numpy - 1.21.5
  • SentenceTransformer (from sentence_transformers) - 2.2.2
    • Model used: all-mpnet-base-v2
  • cosine_similarity (from sklearn.metrics.pairwise) - 1.0.2
  • SVDpp (from surprise) - 1.1.3
  • Reader, Dataset (from surprise) - 1.1.3
  • cross_validate (from surprise.model_selection) - 1.1.3

IV) Predicted Recommendations

1) Simple Recommender System

Top 15 movies at an Overall level

image

Top 15 movies based on 'Horror' genre

image

2) Content Based Recommender System

2.1) Movie Overview Based Recommender

  • Top 15 movies recommended to a user who has watched 'The Godfather'

image

  • Top 15 movies recommended to a user who has watched 'The Notebook'

image

2.2) Movie Metadata Based Recommender

  • Top 15 movies recommended to a user who has watched 'The Godfather'

image

  • Top 15 movies recommended to a user who has watched 'The Dark Knight'

image

  • Top 15 movies recommended to a user who has watched the movies in the below movie list

movie_list = ['The Lion King', 'Se7en', 'Toy Story', 'Blade Runner', 'Quantum of Solace', 'Casino Royale', 'Skyfall']

image

3) Collaborative Filtering System

3.1) Memory-Based Systems

  • User-Based Collaborative Filtering

    • Top 15 movies recommended for user number 39

    image

  • Item-Based Collaborative Filtering

    • Top 15 movies recommended for user number 39

    image

3.2) Model-Based Systems

  • Top 15 movies recommended for user number 39

image

V) References

http://infolab.stanford.edu/~ullman/mmds/ch9.pdf

https://www.kaggle.com/code/rounakbanik/movie-recommender-systems

https://medium.com/grabngoinfo/recommendation-system-user-based-collaborative-filtering-a2e76e3e15c4

https://towardsdatascience.com/building-and-testing-recommender-systems-with-surprise-step-by-step-d4ba702ef80b

https://github.com/NicolasHug/Surprise/tree/master/examples

recommender-systems---content-based-systems-and-collaborative-filtering's People

Contributors

balajirvp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.