Skip to content

Recommender system based on Item Collaborative Filtering and MapReduce

Notifications You must be signed in to change notification settings

jieren123/Bigdata_Project_Recommender_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

The movie recommender system is based on Item Collaborative Filtering and Hadoop MapReduce in Java.

Dataset Description

  • The dataset used is taken from Netflix Prize Challenge.
  • Movies and their numbers are extracted in a file called 'movie_title.txt'
  • Each subsequent line in the dataset file contains: Customer-ID, Rating(integral scale from 1 to 5) and Date(YYYY-MM-DD).
  • Data Preprocessing:
    • Change the data in each movie file into the following format: User-ID, Movie-ID and Rating-score.

Architecture Overview Diagram

alt text

Algorithms Used For Recommender System

Item Collaborative Filtering is a form of collaborative filtering for recommender systems based on the similarity between items calculated using people's ratings of those items. Item CF is used beacause: 1. The total number of movie users weighs more than total number of movie products. 2.Item will not change frequently and has lower calculation than User CF due to the dynamic nature of user. 3. It is more convincing to use user's historical data.

Main Files

  • DataDividerByUser.java: Divide data by User-ID
  • CoOccurrenceMatrixGenerator.java: Build co-occurence matrix & Build rating matrix
  • Normalization.java: Normalize co-occurence matrix
  • Multiplication.java: Multiply co-occurrence matrix and rating matrix
  • Sum.java: Generate recommender list
  • Drivie.java

Compiling and Running

hadoop com.sun.tools.javac.Main *.java
jar cf recommender.jar *.class
hadoop jar recommender.jar Driver /input /dataDividedByUser /coOccurrenceMatrix /Normalize /Multiplication /Sum
hdfs dfs -cat /Sum/*

Output

#args0: original dataset
#args1: output directory for DividerByUser job
#args2: output directory for coOccurrenceMatrixBuilder job
#args3: output directory for Normalize job
#args4: output directory for Multiplication job
#args5: output directory for Sum job

Releases

No releases published

Packages

No packages published

Languages