SlideShare a Scribd company logo
1 of 24
+
Large-scale Parallel Collaborative Filtering and Clustering
using MapReduce for Recommender Engines
Varad Meru
Software Development Engineer,
Orzota, Inc.
© Varad Meru, 2013
+
Outline
 Introduction
 Introduction to Recommendation Engines
 Algorithms for Recommendation Engines
 Challenges in Recommendation Engines
 What is Hadoop MapReduce?
 What is Netflix prize?
 Block diagram
 System requirement
 Conclusion
© Varad Meru, 2013
+
Recommender Systems
Introduction and Project Scope
© Varad Meru, 2013
+
Introduction
 Scope of our project is to build a Recommender Engine using
Clustering.
 Recommender Engine are used in E-Commerce and other
settings to recommend items to the end users.
 Widely used in companies such as
Amazon, Netflix, Flipkart, Google News, and many others.
 Collaborative Algorithms, Clustering and Matrix Decomposition
is used for finding Recommendations.
© Varad Meru, 2013
+
Recommender
System Example
© Varad Meru, 2013
+ Some other Recommender
Systems
Here are some snapshots of widely
used recommendation engines used
in Amazon.
© Varad Meru, 2013
+
Collaborative Filtering in Action
thms” : “Recommender Systems”, “id” : “Example”}
0! 1! 1! 1!
1! 0! 1! 1!
0! 1! 0! 0!
1! 0! 1! 1!
1! 1! 1! 1!
1! 0! 1! 1!
1! 0! 0! 0!
1! 1! 1! 0!
1! 1! 0! 1!
Binary Values
Recommendation!
Alice!
Bob!
John!
Jane!
Bill!
Steve!
Larry!
Don!
Jack!
 Assuming is Every
one of the names
have seen any of
the above movie
 Let 1 denote seen
 Let 0 denote not
seen
© Varad Meru, 2013
+
Collaborative Filtering in Action
Algorithms” : “Recommender Systems” , “Similarity” : “Tanimoto”}
1! 1/3 –
0.33!
5/8 –
0.625!
5/8 –
0.625!
1/3 –
0.33!
1!
3/8 –
0.375!
3/8 –
0.375!
5/8 –
0.625!
3/8 –
0.375!
1!
5/7 –
0.714!
5/8 –
0.625!
3/8 –
0.375!
5/7 –
0.714! 1!
Tanimoto Coefficient!
NA – Number of Customers
who bought Product A!
NB – Number of Customer who
bought Product B!
Nc – Number of Customer who
bought both Product A and
Product B!
15
: “Recommender Systems” , “Similarity” : “Tanimoto”}
1! 1/3 –
0.33!
5/8 –
0.625!
5/8 –
0.625!
1/3 –
0.33!
1!
3/8 –
0.375!
3/8 –
0.375!
5/8 –
0.625!
3/8 –
0.375!
1! 5/7 –
0.714!
5/8 –
0.625!
3/8 –
0.375!
5/7 –
0.714! 1!
Tanimoto Coefficient!
NA – Number of Customers
who bought Product A!
NB – Number of Customer who
bought Product B!
Nc – Number of Customer who
bought both Product A and
Product B!
© Varad Meru, 2013
+
Collaborative Filtering in Action
Algorithms” : “Recommender Systems” , “Similarity” : “Cosine”}
1! 0.507! 0.772! 0.772!
0.507! 1! 0.707! 0.707!
0.772! 0.707! 1! 0.833!
0.772! 0.707! 0.833! 1!
Cosine Coefficient!
NA – Number of Customers
who bought Product A!
NB – Number of Customer who
bought Product B!
Nc – Number of Customer who
bought both Product A and
Product B!
16
: “Recommender Systems” , “Similarity” : “Cosine”}
1! 0.507! 0.772! 0.772!
0.507! 1! 0.707! 0.707!
0.772! 0.707! 1! 0.833!
0.772! 0.707! 0.833! 1!
Cosine Coefficient!
NA – Number of Customers
who bought Product A!
NB – Number of Customer who
bought Product B!
Nc – Number of Customer who
bought both Product A and
Product B!
© Varad Meru, 2013
+
MinHash Clustering in Action
 We will be implementing a variation of algorithm for our Project
 It’s a technique to findout how similar two sets are.
 The scheme was invented by Andrei Broder (1997)1
 The simplest version of the minhash scheme uses k different
hash functions, where k is a fixed integer parameter, and
represents each set S by the k values of hmin(S) for these k
functions.
 Google is known to have used this method to cluster news
articles for recommending users the news of their tastes2
1Broder, Andrei Z. (1997), "On the resemblance and containment of documents”.
2Mayur Datar et. al. (2007), "Google News Personalization: Scalable Online Collaborative Filtering”.© Varad Meru, 2013
+
MinHash Clustering Flow
Get a Random
Permutation of Product
Catalog, R
Start
Define a hash function h
such that
h(Ui)=min. ranked product
in R
Ui : All the Interaction performed by the User.
An Interaction can be a Click, Purchase, Like, etc.
Pass each user through
the Hash function to get
the Cluster Number
After the Clusters have been
formed, Use Covisitation to
find out Recommendations
Stop
Cache the
Recommendations in
Memory
Memory
© Varad Meru, 2013
+
Some Recommender Systems
Available
 Apache Mahout1
 Easyrec2
 University of Minnisota’s SUGGEST3
 Other, for research, implementations such as UniRecSys and
Taste
1 http://mahout.apache.org
2 http://easyrec.org/
3 http://www-users.cs.umn.edu/~karypis/suggest/
© Varad Meru, 2013
+
MapReduce Paradigm
MapReduce and Hadoop
© Varad Meru, 2013
+
MapReduce Programming
Paradigm
 A core idea behind MapReduce is mapping your data set into a
collection of Key-Value pairs, and then reducing over all pairs
with the same key.
 Hadoop MapReduce is an Open Source implementation of
MapReduce framework on the lines of Google’s MapReduce
software framework.
 Used for writing applications rapidly process vast amounts of
data in parallel on large clusters of compute nodes.
 A Hadoop MapReduce job mainly consists of two user-defined
functions: map and reduce.
© Varad Meru, 2013
+
map() function
 A list of data elements are passed, one at a time, to map()
functions which transform each data element to an individual
output data element.
 A map() produces one or more intermediate <key, values>
pair(s) from the input list.
k1 V1 k2 V2 k5 V5k4 V4k3 V3
MAP MAP MAPMAP
k6 V6 ……
k’1 V’1 k’2 V’2 k’5 V’5k’4 V’4k’3 V’3 k’6 V’6 ……
Input list
Intermediate
output list
© Varad Meru, 2013
+
reduce() function
 After map phase finish, those intermediate values with same
output key are reduced into one or more final values
k’1 V’1 k’2 V’2 k’5 V’5k’4 V’4k’3 V’3 k’6 V’6 ……
Reduce Reduce Reduce
F1 R1 F2 R2 F3 R3 ……
Intermediate
map output
Final
Result
© Varad Meru, 2013
+
Parallelism
 map() functions run in parallel, creating different intermediate
values from different input data elements
 reduce() functions also run in parallel, working with assigned
output key
 All values are processed independently
 Reduce phase can’t start until map phase is completely
finished.
 Its in a way, data parallel implementation and thus works with
humongous amount of data.
© Varad Meru, 2013
+
Hadoop
 Started by Doug Cutting, and then carried ahead by enterprises
such as Yahoo! and Facebook
 It’s a collection of three frameworks – Commons, MapReduce
and DFS.
 Free and Open Source with Apache Software License
 Current Largest Cluster size of 4000 nodes. ( at Yahoo! )
 Whole Ecosystem build around it to process large amounts of
data. (~in GBs, TBs, PBs)
© Varad Meru, 2013
+
Evaluation of
Recommendation Engine
Netflix and Comparison with other frameworks
© Varad Meru, 2013
+
Netflix Dataset
 This dataset was release by Netflix October 2, 2006 for
SIGKDD challenge to build worlds best recommender for
Netflix.
 Netflix provided a training data set of 100,480,507 ratings that
480,189 users gave to 17,770 movies.
 Each training rating is a quadruplet of the form
<user, movie, date of grade, grade>
 Used heavily in Research for Recommender Engine1.
 Used in our project to compare the Implementation of our
Algorithm with other implementations e.g. Mahout
1Google Scholar : About 3,190 results for the search term “netflix prize”© Varad Meru, 2013
+
High-level Architecture
 MapReduce implementation of
Clustering algorithms such as K-
Means and MinHash Clustering.
 Comparative Analysis with
already present frameworks
such as Apache Mahout (Refer
Reference no. 1, 2, and 3)
© Varad Meru, 2013
+
Requisites
 2 Linux Machines (Required, preferred OS - Ubuntu)
 Pentium 4 + Machines (Recommended – Core 2 Duo 2.53
GHz+)
 RAM 1 GB per machine (Recommended – 4 GB per machine)
 Apache Hadoop (from http://hadoop.apache.org )
 Apache Mahout (from http://mahout.apache.org)
 Java IDE ( Eclipse, Preferred)
 Java SDK1.6+
© Varad Meru, 2013
+
References
1. “Scalable Similarity-Based Neighborhood Methods with
MapReduce” by Sebastian Schelter, Christoph Boden and
Volker Markl. – RecSys 2012.
2. “Case Study Evaluation of Mahout as a Recommender Platform”
by Carlos E. Seminario and David C. Wilson - Workshop on
Recommendation Utility Evaluation: Beyond RMSE (RUE 2012)
3. http://mahout.apache.org/ - Apache Mahout Project Page
4. http://www.ibm.com/developerworks/java/library/j-mahout/ -
Introducing Apache Mahout
5. [VIDEO] “Collaborative filtering at scale” by Sean Owen
6. [BOOK] “Mahout in Action” by Owen et. al., Manning Pub.
© Varad Meru, 2013
+
Thank You
© Varad Meru, 2013

More Related Content

What's hot

Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
nextlib
 
Hybrid recommender systems
Hybrid recommender systemsHybrid recommender systems
Hybrid recommender systems
renataghisloti
 
Machine Learning with Apache Mahout
Machine Learning with Apache MahoutMachine Learning with Apache Mahout
Machine Learning with Apache Mahout
Daniel Glauser
 
Introduction to Collaborative Filtering with Apache Mahout
Introduction to Collaborative Filtering with Apache MahoutIntroduction to Collaborative Filtering with Apache Mahout
Introduction to Collaborative Filtering with Apache Mahout
sscdotopen
 

What's hot (20)

Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systems
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
 
Hybrid recommender systems
Hybrid recommender systemsHybrid recommender systems
Hybrid recommender systems
 
Matrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender SystemsMatrix Factorization Technique for Recommender Systems
Matrix Factorization Technique for Recommender Systems
 
Machine Learning with Apache Mahout
Machine Learning with Apache MahoutMachine Learning with Apache Mahout
Machine Learning with Apache Mahout
 
Recommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS FunctionRecommender Systems with Apache Spark's ALS Function
Recommender Systems with Apache Spark's ALS Function
 
Tutorial Mahout - Recommendation
Tutorial Mahout - RecommendationTutorial Mahout - Recommendation
Tutorial Mahout - Recommendation
 
Recommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right DatasetRecommender Systems from A to Z – The Right Dataset
Recommender Systems from A to Z – The Right Dataset
 
Intro to Mahout -- DC Hadoop
Intro to Mahout -- DC HadoopIntro to Mahout -- DC Hadoop
Intro to Mahout -- DC Hadoop
 
REAL-TIME RECOMMENDATION SYSTEMS
REAL-TIME RECOMMENDATION SYSTEMS REAL-TIME RECOMMENDATION SYSTEMS
REAL-TIME RECOMMENDATION SYSTEMS
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CF
 
Introduction to Collaborative Filtering with Apache Mahout
Introduction to Collaborative Filtering with Apache MahoutIntroduction to Collaborative Filtering with Apache Mahout
Introduction to Collaborative Filtering with Apache Mahout
 
Recommender Systems from A to Z – Real-Time Deployment
Recommender Systems from A to Z – Real-Time DeploymentRecommender Systems from A to Z – Real-Time Deployment
Recommender Systems from A to Z – Real-Time Deployment
 
Collaborative Filtering with Spark
Collaborative Filtering with SparkCollaborative Filtering with Spark
Collaborative Filtering with Spark
 
How to Build a Recommendation Engine on Spark
How to Build a Recommendation Engine on SparkHow to Build a Recommendation Engine on Spark
How to Build a Recommendation Engine on Spark
 
Intro to Mahout
Intro to MahoutIntro to Mahout
Intro to Mahout
 
Mahout Tutorial and Hands-on (version 2015)
Mahout Tutorial and Hands-on (version 2015)Mahout Tutorial and Hands-on (version 2015)
Mahout Tutorial and Hands-on (version 2015)
 
Project presentation
Project presentationProject presentation
Project presentation
 
Mahout part2
Mahout part2Mahout part2
Mahout part2
 
Recommender Systems, Matrices and Graphs
Recommender Systems, Matrices and GraphsRecommender Systems, Matrices and Graphs
Recommender Systems, Matrices and Graphs
 

Viewers also liked

Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
Spark Summit
 

Viewers also liked (6)

Crab: A Python Framework for Building Recommender Systems
Crab: A Python Framework for Building Recommender Systems Crab: A Python Framework for Building Recommender Systems
Crab: A Python Framework for Building Recommender Systems
 
MLlib: Spark's Machine Learning Library
MLlib: Spark's Machine Learning LibraryMLlib: Spark's Machine Learning Library
MLlib: Spark's Machine Learning Library
 
Apache Spark Machine Learning
Apache Spark Machine LearningApache Spark Machine Learning
Apache Spark Machine Learning
 
Collaborative Filtering using KNN
Collaborative Filtering using KNNCollaborative Filtering using KNN
Collaborative Filtering using KNN
 
Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
Netflix's Recommendation ML Pipeline Using Apache Spark: Spark Summit East ta...
 
Machine Learning using Apache Spark MLlib
Machine Learning using Apache Spark MLlibMachine Learning using Apache Spark MLlib
Machine Learning using Apache Spark MLlib
 

Similar to Large-scale Parallel Collaborative Filtering and Clustering using MapReduce for Recommender Engines

An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
Takashi Yamanoue
 
RightScale User Conference / Fall / 2010 - Morning Sessions
RightScale User Conference / Fall / 2010 - Morning SessionsRightScale User Conference / Fall / 2010 - Morning Sessions
RightScale User Conference / Fall / 2010 - Morning Sessions
RightScale
 
Recommendation system using bloom filter in mapreduce
Recommendation system using bloom filter in mapreduceRecommendation system using bloom filter in mapreduce
Recommendation system using bloom filter in mapreduce
IJDKP
 

Similar to Large-scale Parallel Collaborative Filtering and Clustering using MapReduce for Recommender Engines (20)

50120140505004
5012014050500450120140505004
50120140505004
 
Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...Overview of Movie Recommendation System using Machine learning by R programmi...
Overview of Movie Recommendation System using Machine learning by R programmi...
 
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
 
REX Hadoop et R
REX Hadoop et RREX Hadoop et R
REX Hadoop et R
 
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and DataflowHow to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
 
Potter’S Wheel
Potter’S WheelPotter’S Wheel
Potter’S Wheel
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals
 
cametrics-report-final
cametrics-report-finalcametrics-report-final
cametrics-report-final
 
Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020
 
IRJET - Survey Paper on Map Reduce Processing using HADOOP
IRJET - Survey Paper on Map Reduce Processing using HADOOPIRJET - Survey Paper on Map Reduce Processing using HADOOP
IRJET - Survey Paper on Map Reduce Processing using HADOOP
 
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013An Inter-Wiki Page Data Processor for a M2M System  @Matsue, 1sep., Eskm2013
An Inter-Wiki Page Data Processor for a M2M System @Matsue, 1sep., Eskm2013
 
DevOps Spain 2019. Beatriz Martínez-IBM
DevOps Spain 2019. Beatriz Martínez-IBMDevOps Spain 2019. Beatriz Martínez-IBM
DevOps Spain 2019. Beatriz Martínez-IBM
 
RightScale User Conference / Fall / 2010 - Morning Sessions
RightScale User Conference / Fall / 2010 - Morning SessionsRightScale User Conference / Fall / 2010 - Morning Sessions
RightScale User Conference / Fall / 2010 - Morning Sessions
 
One Stop Recommendation
One Stop RecommendationOne Stop Recommendation
One Stop Recommendation
 
One Stop Recommendation
One Stop RecommendationOne Stop Recommendation
One Stop Recommendation
 
Performance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining ToolsPerformance Evaluation of Open Source Data Mining Tools
Performance Evaluation of Open Source Data Mining Tools
 
Place recommendation system
Place recommendation systemPlace recommendation system
Place recommendation system
 
Association Rule based Recommendation System using Big Data
Association Rule based Recommendation System using Big DataAssociation Rule based Recommendation System using Big Data
Association Rule based Recommendation System using Big Data
 
Microservices and Prometheus (Microservices NYC 2016)
Microservices and Prometheus (Microservices NYC 2016)Microservices and Prometheus (Microservices NYC 2016)
Microservices and Prometheus (Microservices NYC 2016)
 
Recommendation system using bloom filter in mapreduce
Recommendation system using bloom filter in mapreduceRecommendation system using bloom filter in mapreduce
Recommendation system using bloom filter in mapreduce
 

More from Varad Meru

More from Varad Meru (16)

Predicting rainfall using ensemble of ensembles
Predicting rainfall using ensemble of ensemblesPredicting rainfall using ensemble of ensembles
Predicting rainfall using ensemble of ensembles
 
Generating Musical Notes and Transcription using Deep Learning
Generating Musical Notes and Transcription using Deep LearningGenerating Musical Notes and Transcription using Deep Learning
Generating Musical Notes and Transcription using Deep Learning
 
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
 
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passin...
 
Kakuro: Solving the Constraint Satisfaction Problem
Kakuro: Solving the Constraint Satisfaction ProblemKakuro: Solving the Constraint Satisfaction Problem
Kakuro: Solving the Constraint Satisfaction Problem
 
CS295 Week5: Megastore - Providing Scalable, Highly Available Storage for Int...
CS295 Week5: Megastore - Providing Scalable, Highly Available Storage for Int...CS295 Week5: Megastore - Providing Scalable, Highly Available Storage for Int...
CS295 Week5: Megastore - Providing Scalable, Highly Available Storage for Int...
 
Cassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage SystemCassandra - A Decentralized Structured Storage System
Cassandra - A Decentralized Structured Storage System
 
Cloud Computing: An Overview
Cloud Computing: An OverviewCloud Computing: An Overview
Cloud Computing: An Overview
 
Live Wide-Area Migration of Virtual Machines including Local Persistent State.
Live Wide-Area Migration of Virtual Machines including Local Persistent State.Live Wide-Area Migration of Virtual Machines including Local Persistent State.
Live Wide-Area Migration of Virtual Machines including Local Persistent State.
 
Machine Learning and Apache Mahout : An Introduction
Machine Learning and Apache Mahout : An IntroductionMachine Learning and Apache Mahout : An Introduction
Machine Learning and Apache Mahout : An Introduction
 
K-Means, its Variants and its Applications
K-Means, its Variants and its ApplicationsK-Means, its Variants and its Applications
K-Means, its Variants and its Applications
 
Introduction to Mahout and Machine Learning
Introduction to Mahout and Machine LearningIntroduction to Mahout and Machine Learning
Introduction to Mahout and Machine Learning
 
Data clustering using map reduce
Data clustering using map reduceData clustering using map reduce
Data clustering using map reduce
 
Big Data, Hadoop, NoSQL and more ...
Big Data, Hadoop, NoSQL and more ...Big Data, Hadoop, NoSQL and more ...
Big Data, Hadoop, NoSQL and more ...
 
Final Year Project Guidance
Final Year Project GuidanceFinal Year Project Guidance
Final Year Project Guidance
 
OpenSourceEducation
OpenSourceEducationOpenSourceEducation
OpenSourceEducation
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Large-scale Parallel Collaborative Filtering and Clustering using MapReduce for Recommender Engines

  • 1. + Large-scale Parallel Collaborative Filtering and Clustering using MapReduce for Recommender Engines Varad Meru Software Development Engineer, Orzota, Inc. © Varad Meru, 2013
  • 2. + Outline  Introduction  Introduction to Recommendation Engines  Algorithms for Recommendation Engines  Challenges in Recommendation Engines  What is Hadoop MapReduce?  What is Netflix prize?  Block diagram  System requirement  Conclusion © Varad Meru, 2013
  • 3. + Recommender Systems Introduction and Project Scope © Varad Meru, 2013
  • 4. + Introduction  Scope of our project is to build a Recommender Engine using Clustering.  Recommender Engine are used in E-Commerce and other settings to recommend items to the end users.  Widely used in companies such as Amazon, Netflix, Flipkart, Google News, and many others.  Collaborative Algorithms, Clustering and Matrix Decomposition is used for finding Recommendations. © Varad Meru, 2013
  • 6. + Some other Recommender Systems Here are some snapshots of widely used recommendation engines used in Amazon. © Varad Meru, 2013
  • 7. + Collaborative Filtering in Action thms” : “Recommender Systems”, “id” : “Example”} 0! 1! 1! 1! 1! 0! 1! 1! 0! 1! 0! 0! 1! 0! 1! 1! 1! 1! 1! 1! 1! 0! 1! 1! 1! 0! 0! 0! 1! 1! 1! 0! 1! 1! 0! 1! Binary Values Recommendation! Alice! Bob! John! Jane! Bill! Steve! Larry! Don! Jack!  Assuming is Every one of the names have seen any of the above movie  Let 1 denote seen  Let 0 denote not seen © Varad Meru, 2013
  • 8. + Collaborative Filtering in Action Algorithms” : “Recommender Systems” , “Similarity” : “Tanimoto”} 1! 1/3 – 0.33! 5/8 – 0.625! 5/8 – 0.625! 1/3 – 0.33! 1! 3/8 – 0.375! 3/8 – 0.375! 5/8 – 0.625! 3/8 – 0.375! 1! 5/7 – 0.714! 5/8 – 0.625! 3/8 – 0.375! 5/7 – 0.714! 1! Tanimoto Coefficient! NA – Number of Customers who bought Product A! NB – Number of Customer who bought Product B! Nc – Number of Customer who bought both Product A and Product B! 15 : “Recommender Systems” , “Similarity” : “Tanimoto”} 1! 1/3 – 0.33! 5/8 – 0.625! 5/8 – 0.625! 1/3 – 0.33! 1! 3/8 – 0.375! 3/8 – 0.375! 5/8 – 0.625! 3/8 – 0.375! 1! 5/7 – 0.714! 5/8 – 0.625! 3/8 – 0.375! 5/7 – 0.714! 1! Tanimoto Coefficient! NA – Number of Customers who bought Product A! NB – Number of Customer who bought Product B! Nc – Number of Customer who bought both Product A and Product B! © Varad Meru, 2013
  • 9. + Collaborative Filtering in Action Algorithms” : “Recommender Systems” , “Similarity” : “Cosine”} 1! 0.507! 0.772! 0.772! 0.507! 1! 0.707! 0.707! 0.772! 0.707! 1! 0.833! 0.772! 0.707! 0.833! 1! Cosine Coefficient! NA – Number of Customers who bought Product A! NB – Number of Customer who bought Product B! Nc – Number of Customer who bought both Product A and Product B! 16 : “Recommender Systems” , “Similarity” : “Cosine”} 1! 0.507! 0.772! 0.772! 0.507! 1! 0.707! 0.707! 0.772! 0.707! 1! 0.833! 0.772! 0.707! 0.833! 1! Cosine Coefficient! NA – Number of Customers who bought Product A! NB – Number of Customer who bought Product B! Nc – Number of Customer who bought both Product A and Product B! © Varad Meru, 2013
  • 10. + MinHash Clustering in Action  We will be implementing a variation of algorithm for our Project  It’s a technique to findout how similar two sets are.  The scheme was invented by Andrei Broder (1997)1  The simplest version of the minhash scheme uses k different hash functions, where k is a fixed integer parameter, and represents each set S by the k values of hmin(S) for these k functions.  Google is known to have used this method to cluster news articles for recommending users the news of their tastes2 1Broder, Andrei Z. (1997), "On the resemblance and containment of documents”. 2Mayur Datar et. al. (2007), "Google News Personalization: Scalable Online Collaborative Filtering”.© Varad Meru, 2013
  • 11. + MinHash Clustering Flow Get a Random Permutation of Product Catalog, R Start Define a hash function h such that h(Ui)=min. ranked product in R Ui : All the Interaction performed by the User. An Interaction can be a Click, Purchase, Like, etc. Pass each user through the Hash function to get the Cluster Number After the Clusters have been formed, Use Covisitation to find out Recommendations Stop Cache the Recommendations in Memory Memory © Varad Meru, 2013
  • 12. + Some Recommender Systems Available  Apache Mahout1  Easyrec2  University of Minnisota’s SUGGEST3  Other, for research, implementations such as UniRecSys and Taste 1 http://mahout.apache.org 2 http://easyrec.org/ 3 http://www-users.cs.umn.edu/~karypis/suggest/ © Varad Meru, 2013
  • 13. + MapReduce Paradigm MapReduce and Hadoop © Varad Meru, 2013
  • 14. + MapReduce Programming Paradigm  A core idea behind MapReduce is mapping your data set into a collection of Key-Value pairs, and then reducing over all pairs with the same key.  Hadoop MapReduce is an Open Source implementation of MapReduce framework on the lines of Google’s MapReduce software framework.  Used for writing applications rapidly process vast amounts of data in parallel on large clusters of compute nodes.  A Hadoop MapReduce job mainly consists of two user-defined functions: map and reduce. © Varad Meru, 2013
  • 15. + map() function  A list of data elements are passed, one at a time, to map() functions which transform each data element to an individual output data element.  A map() produces one or more intermediate <key, values> pair(s) from the input list. k1 V1 k2 V2 k5 V5k4 V4k3 V3 MAP MAP MAPMAP k6 V6 …… k’1 V’1 k’2 V’2 k’5 V’5k’4 V’4k’3 V’3 k’6 V’6 …… Input list Intermediate output list © Varad Meru, 2013
  • 16. + reduce() function  After map phase finish, those intermediate values with same output key are reduced into one or more final values k’1 V’1 k’2 V’2 k’5 V’5k’4 V’4k’3 V’3 k’6 V’6 …… Reduce Reduce Reduce F1 R1 F2 R2 F3 R3 …… Intermediate map output Final Result © Varad Meru, 2013
  • 17. + Parallelism  map() functions run in parallel, creating different intermediate values from different input data elements  reduce() functions also run in parallel, working with assigned output key  All values are processed independently  Reduce phase can’t start until map phase is completely finished.  Its in a way, data parallel implementation and thus works with humongous amount of data. © Varad Meru, 2013
  • 18. + Hadoop  Started by Doug Cutting, and then carried ahead by enterprises such as Yahoo! and Facebook  It’s a collection of three frameworks – Commons, MapReduce and DFS.  Free and Open Source with Apache Software License  Current Largest Cluster size of 4000 nodes. ( at Yahoo! )  Whole Ecosystem build around it to process large amounts of data. (~in GBs, TBs, PBs) © Varad Meru, 2013
  • 19. + Evaluation of Recommendation Engine Netflix and Comparison with other frameworks © Varad Meru, 2013
  • 20. + Netflix Dataset  This dataset was release by Netflix October 2, 2006 for SIGKDD challenge to build worlds best recommender for Netflix.  Netflix provided a training data set of 100,480,507 ratings that 480,189 users gave to 17,770 movies.  Each training rating is a quadruplet of the form <user, movie, date of grade, grade>  Used heavily in Research for Recommender Engine1.  Used in our project to compare the Implementation of our Algorithm with other implementations e.g. Mahout 1Google Scholar : About 3,190 results for the search term “netflix prize”© Varad Meru, 2013
  • 21. + High-level Architecture  MapReduce implementation of Clustering algorithms such as K- Means and MinHash Clustering.  Comparative Analysis with already present frameworks such as Apache Mahout (Refer Reference no. 1, 2, and 3) © Varad Meru, 2013
  • 22. + Requisites  2 Linux Machines (Required, preferred OS - Ubuntu)  Pentium 4 + Machines (Recommended – Core 2 Duo 2.53 GHz+)  RAM 1 GB per machine (Recommended – 4 GB per machine)  Apache Hadoop (from http://hadoop.apache.org )  Apache Mahout (from http://mahout.apache.org)  Java IDE ( Eclipse, Preferred)  Java SDK1.6+ © Varad Meru, 2013
  • 23. + References 1. “Scalable Similarity-Based Neighborhood Methods with MapReduce” by Sebastian Schelter, Christoph Boden and Volker Markl. – RecSys 2012. 2. “Case Study Evaluation of Mahout as a Recommender Platform” by Carlos E. Seminario and David C. Wilson - Workshop on Recommendation Utility Evaluation: Beyond RMSE (RUE 2012) 3. http://mahout.apache.org/ - Apache Mahout Project Page 4. http://www.ibm.com/developerworks/java/library/j-mahout/ - Introducing Apache Mahout 5. [VIDEO] “Collaborative filtering at scale” by Sean Owen 6. [BOOK] “Mahout in Action” by Owen et. al., Manning Pub. © Varad Meru, 2013
  • 24. + Thank You © Varad Meru, 2013