Giter VIP home page Giter VIP logo

movierecommendationsystem's Introduction

Movie Recommendation System (from Scratch)

Recommendation Systems have been around us since a long time. They use various different approaches to build an effective recommendation system. This project is build on the approach of collaborative filtering. This recommendation system take input the ratings given by different users on various movies and outputs the recommendation for a user based on his/her watch history as well as that of his/her like beings.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Packages required to run the project

1. Pandas package
2. Numpy package
3. Os package
4. Scipy package

Walkhthrough of the code

To get started with the code, first install all the packages described above and download the two data files present in the GitHub Repo.

The description of each function is given below :

read_data() : This function will read the data from the data files into the panda dataframe for future use!
data_stats() : This function displays the stats for the present data. We display the frequency of ratings for each movie as well as the no of movies and users. Feel free to tweak the function to get out more stats from the data.
preprocess_data() : The dataframe created in the previous function contains a large no of zeros as there are many movies which are not rated by many users. This creates an unnecessary empty space into the matrix. Thus we preprocess it to reduce the memory component using scipy.
compute_cost() : This cost function.
grads() : Gradient descent is performed inside this function. The specifics about it is available in the comments of the code.
model() : This is the final compiled model. It calls every above function in their proper order and takes care of the hyperparameters. Run this function to get the final trained parameters.
predict() : This function is used for predicting the movie ratings for users and recommending them based on their watch history.

Authors

movierecommendationsystem's People

Contributors

m0315g avatar ishan-tewari 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.