Giter VIP home page Giter VIP logo

movie-recommendation-algorithms's Introduction

Here, we have implemented various collaborative filtering algorithms as different classes (models) We have not used scikit learn in our code but have implemented all the algorithms by reading up from research papers but way of implementation is similar to scikit learn by encapsulating them in a black box.

There is not anything to test these algorithms as our project included their empirical analysis and implementation and digging into the details of how they work. Currently, we are using the dataset ua.base and ua.test for training and testing respectively. Please refer to the README in the datasets folder.

The main.py contains the following models:

  • Baseline Predictor
  • NearestNeighbour
  • SVD

All the methods contains a train method: This method takes in two numpy arrays X and y where X denotes the feature set and Y denotes the values corresponding to those features.

The baseline predictor contains a predict method which takes in a userId and movieId as parameters and predicts rating of the user for that movie. The initialization of this model requires no parameters.

NearestNeighbour models takes in a number K as parameter which dentoes the no of neighbours to be used by the model. It has the following three methods for predicting movie ratings (each of them takes a userId and movieId as parameter) :

  • ubased_predict : User Based CF
  • mbased_predict : Item Based CF
  • similarityall_predict : All User Based CF with much smaller time complexity

SVD has a predict_rating function too using the userId and movieId as parameters. It also has a cross_validation_error function which finds out the RMSE error on 5-fold cross validtion set.

Detailed report for this project can be read here

movie-recommendation-algorithms's People

Contributors

agarwl avatar srajangarg avatar

Watchers

James Cloos avatar Mohamed Bareche 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.