GithubHelp home page GithubHelp logo

navegantex / recommender-system-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crimenghini/recommender-system

0.0 1.0 0.0 12 KB

An Item-Based Recommendation System built on MovieLens 1M dataset - Python

Python 100.00%

recommender-system-1's Introduction

Recommender-System(12-17 february 2016)

In this project I have to implement a recommender system for movies. As a dataset I use the MovieLens 1M dataset, available at http://grouplens.org/datasets/movielens. The scripts refer to the 'ratings.csv'.

Offline procedere

I used the item-based method with some corrections avaiable in the code. I first evaluate the recommender system offline splitting the dataset (i.e. pairs of user × movie) into a training set (80% of pairs) and test set (20% of pairs). After training the system on the training set, I evaluate it on the test set. My attention was focused on the RMSE that for this system is, on average, 0.89.

Online procedure

Once I complete the offline procedure, I consider a new user. Assume that you are given a list of movies and scores, corresponding to the preferences of this new users. These will be provided by a file. The user is also interested in some new movies. Recommend to him or her the movies he or she may like.

How to run the code:

Once you have all the scripts in a folder, type on the bash: python _ main _.py( there are no space btw the _ and main). Then follow the instructions for the Offline or Online procedure. In order to run the code it’s importanto to do first the Offline procedure (typying 0 when requested) and then the Online procedure. That’s because the files that are created during the Offline procedure are useful in the Online part.

Scripts summary

  • create_ new _user.py is the library by which the new user is randomly created.
  • from_file.py is a library by which the csv files are loading.
  • new_user _pred.py is a library by which are computed the predictions for the new user.
  • recommended_movies.py is a library that provides to the user a list of recommended movies.
  • recommender_system.py is the library that contains the code of the method I used.
  • traning_test.py is the library by which the dataset is splitted.

recommender-system-1's People

Contributors

crimenghini avatar

Watchers

James Cloos 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.