Giter Site home page Giter Site logo

netflixmovierecommendationsystem's Introduction

NetflixMovieRecommendationSystem

This movie recommendation system based on item-item collaborative filtering algorithm was implemented in Hadoop MapReduce and PIG. The data provided by Netflix contains 3.25 million training ratings and around 100000 testing ratings.

The following data was obtained by PIG(Count.pig):

Distinct movies test set 1701
Distinct users in test set 27555
Distinct movies in training set 1821
Distinct users in training set 28978
Number of paris in training set 3255352
Number of pairs in test set 100478

Steps:

  1. Data Preprocessing(DataPreprocessing.pig): The specific function of Data Preprocessing is to transform the training set with schema (movie-id, user-id, ratings), and emit data with schema (user-id, movie-id, stats{rating, numRatings, sumRatings}), numRatings stands for the number of users who have rated movie x; sumRaings stands for sum of all ratings of movie x; both of which are used in calculating Pearson Correlation in Job1. Preprocessing also generate lists like MovieAvg, MovieIndex & UserAvg, which would be used in later MapReduce Jobs.

  2. Similarity Matrix: This step is to generate a symmetric similarity. This symmetric similarity matrix will be loaded into the distributed cache for the next step of implementations.

  3. Generate a list of the most top k similar movies for each movie.
    a. Get Similarity Matrix for Each Movie-Movie Pair. Two MapReduce jobs was implemented to complete this progress.
    b. One MapReduce job to generete top-k list for each movie.

  4. Predicttion(predict.pig) - to predict the ratings of movie-user pair:
    a. Theinput is TopN list of similarities of each movie, MovieAvg for querying average ratings for each movie and formatted training set for getting movie-user ratings. The prediction emits tuples as ([movie, user], rating). The predict ratings will fill in all the blanks of movie-user pairs.
    b. Evaluation - Use two error measurement for evaluation, the Mean Absolute Error and the Root MeanSquared Error.

netflixmovierecommendationsystem's People

Contributors

rmcyang avatar

Stargazers

just we 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.