SlideShare une entreprise Scribd logo
1  sur  32
Recommendation Engine Powered by Hadoop PranabGhosh pkghosh@yahoo.com August 11th 2011 Meetup
About me Started with numerical computation on main frames, followed by many years of C and C++ systems and real time programming, followed by many years of java, JEE and enterprise apps Worked for Oracle, HP, Yahoo, Motorola, many startups and mid size companies Currently Big Data consultant using Hadoop and other cloud related technologies Interested in Distributed Computation, Big Data, NOSQL DB and Data Mining. August 11th 2011 Meetup
Hadoop Power of functional programming and parallel processing join hands to create Hadoop Basically parallel processing framework running on cluster of commodity machines Stateless functional programming because processing of each row of data does not depend upon any other row or any state Divide and conquer parallel processing. Data gets partitioned and each partition get processed by a separate mapper or reducer task. August 11th 2011 Meetup
More About Hadoop Data locality, at least for the mapper. Code gets shipped to where the data partition resides Data is replicated, partitioned and resides in Hadoop Distributed File System (HDFS) Mapper output: {k -> v}. Reducer: input {k -> List(v)} Reducer output {k -> v} Many to many shuffle between mapper output and reducer input. Lot of network IO. Simple paradigm, but surprising solves an incredible array of problems. August 11th 2011 Meetup
Recommendation Engine Does not require an introduction. You know it if you have visited Amazon or Netflix. We love it when they get right, hate it otherwise. Very computationally intensive, ideal for Hadoop processing. In memory based recommendation engines, the entire data set is used directly e.g collaboration filtering, content based recommendation engine In model based recommendation, a model is built first by training the data and then predictions made e.g., Bayesian, Clustering August 11th 2011 Meetup
Content Based recommendation A memory based system, based purely on the attributes of an item only An item with p attributes is considered as a point in a p dimensional space. Uses nearest neighbor approach. Similar items are found using distance measurement in the p dimensional space. Useful for addressing the cold start problem i.e., a new item in introduced in the inventory. Computationally intensive. Not very useful for real time recommendation. August 11th 2011 Meetup
Model Based Recommendation Based on traditional machine learning approach In contract to memory based algorithms, creates a learning model using the ratings as training data. The model is built offline as a batch process and saved. Model needs to be rebuilt when significant change in data is detected. Once the trained model is available, making recommendation is quick. Effective for real time recommendation. August 11th 2011 Meetup
Collaboration Filter In collaboration filtering based recommendation engine, recommendations are made based not only the user’s rating but also rating by other users for the same item and some other items. Hence the name collaboration filtering. Requires social data i.e., user’s interest level for an item. It could be explicit e.g.,  product rating or implicit based on user’s interaction and behavior in a site.  More appropriate name might be user intent based recommendation engine. Two approaches. In user based, similar users are found first. In item based, similar items are found first. August 11th 2011 Meetup
Item Based or User Based? Item based CF is generally preferred. Similarity relationship between items is relatively static and  stable, because items naturally map into many genres. User based CF is less preferred, because we humans are more complex than a laptop or smart phone (although some marketing folks may disagree). As we grow and go through life experiences, our interests change. Our similarity relationship in terms of common interests with other humans is more dynamic and change over time August 11th 2011 Meetup
Utility Matrix Matrix of user and item. The cell contains a value indicative of the users interest level for that item e.g., rating. Matrix is sparse The purpose of recommendation engine is to predict the values for the empty cells based on available cell values Denser the matrix, better the quality of recommendation. But generally the matrix sparse. If I have rated item A and I need recommendation, enough users must have rated A as well as other items. August 11th 2011 Meetup
Example Utility Matrix August 11th 2011 Meetup
Rating Prediction Example Let’s say we are interested in predicting r35 i.e., rating of item i5 for user u3. Item based CF : r35 = (c52 x r32 + c54 x r34)  /  (c52 + c54) where items i2 and i4 are similar to i5 User based CF : r35 = (c31 x r15 + c32  x r25) / (c31 +c32) where users u1 and u2 are similar to u3 cij = similarity coefficient between items i and j  or users i and j and rij = rating of item j by user i August 11th 2011 Meetup
Rating Estimation In the previous slide, we assumed rating data for item, user pair was already available, through some rating mechanism a.k.a explicit rating. However there may not be a product rating feature available in a site. Even if the rating feature is there, many users may not use it.Evenif many users rate, explicit rating by users tend to be biased. We need a way to estimate rating based on user behavior in the site and some heuristic a.k.a implicit rating August 11th 2011 Meetup
Heuristics for Rating: An Example August 11th 2011 Meetup
Similarity computation For item based CF, the first step is finding similar items. For user based CF, the first step is finding similar users We will use Pearson Correlation Coefficient. It indicates how well a set of data points lie in a straight line. In a 2 dimensional space of 2 items, rating of the 2 items  by an user is a data point.  There are other similarity measure algorithms e.g., euclidian distance, cosine distance August 11th 2011 Meetup
Pearson Correlation Coefficient c(i,j) = cov(i,j) / (stddev(i) * stddev(j))  cov(i,j) = sum ((r(u,i) - av(r(i)) * (r(u,j) - av(r(j))) / n  stddev(i) = sqrt(sum((r(u,i) - av(r(i)) ** 2) / n)  stddev(j) = sqrt(sum((r(u,j) - av(r(j)) ** 2) / n)  The covariance can also be expressed in this alternative form, which we will be using cov(i,j) = sum(r(u,i) * r(u,j)) / n - av(r(i)) * av(r(j)  c(i,j) = Pearson correlation coefficient between product i and j  cov(i,j) = Covariance of rating for products i and j  stddev(i) = Std deviation of rating for product i stddev(j) = Std deviation of rating for product j  r(u,i) = Rating for user u for product i av(r(i)) = Average rating for product i over all users that rated  sum = Sum over all users  n = Num of data points August 11th 2011 Meetup
Map Reduce We are going to have 2 MR jobs working in tandem for items based CF. Additional preprocessing MR jobs are also necessary to process click stream data. The first MR calculates correlation for all item pairs, based on rating data. Essentially finds similar items. The second MR takes the output of the first MR and the rating data for the user in question. The output is a list of items ranked by predicted rating August 11th 2011 Meetup
Correlation Map Reduce  It takes two kinds of input. The first kind has item id pair and two mean and std dev values for the ratings . This is generated by another pre processor MR.  The second input has item rating for all users. This is generated by another preprocessor MR analyzing click stream data. Each row is for one user along with variable number of product ratings by an user August 11th 2011 Meetup
Correlation Mapper Input August 11th 2011 Meetup
Correlation Mapper Output The mapper produces two kinds of output.  The first kind contains {pid1,pid2,0 -> m1,s1,m2ms2}. It’s the mean and std dev for a pid pair The second kind contains {pid1,pid2,1 -> r1xr2}. It’s the product of rating  for the pidpair for some user. We are appending 0 and 1 to the mapper output key, for secondary sorting which will ensure that for a given pid pair, the reducer will receive the value of the first kind of record followed by multiple values of the second kind of mapper output August 11th 2011 Meetup
Correlation Mapper Output August 11th 2011 Meetup
Correlation Reducer Partitioner based on the first two tokens of key (pid1,pid2), so that the values for the same pid pair go to the same reducer Grouping comparator on the first two tokens of key (pid1,pid2), so that all the mapper out put for the same pid pair is treated as one group and passed to the reducer in one call The reducer output is pid pair and the corresponding correlation coefficient {pid1,pid2 -> c12} For a pid pair, the reducer has at it’s disposal all the data for Pearson correlation computation. August 11th 2011 Meetup
Correlation Reducer Output August 11th 2011 Meetup
Prediction Map Reduce This is the second MR that takes item correlation data which is the output of the first MR and the rating data for the target user. We are running this MR to make rating prediction and ultimately recommendation for an user. The user rating data is passed to Hadoop as so called “side data”. The mapper output consists of pid of an item as the key and the rating of the related item multiplied by the correlation coefficint and the correlation coefficient  as the value. {pid1 -> rating(pid3) x c13, c13} August 11th 2011 Meetup
Prediction Mapper Input August 11th 2011 Meetup
Prediction Mapper Output August 11th 2011 Meetup
Prediction Reducer The reducer gets a pid as a key and a list of tuples as value. Each tuple consists of weighted rating of a related item and the corresponding correlation coefficient. {pid1 -> [(pid3 x c31, c31), (pid5 x c51, c51),…..] The reducer sums up the weighted rating and divides the sum by sum of correlation value. This is the final predicted rating for an item. The reducer output  is an item pid and the predicted rating for the item. All that remains is to sort the predicted ratings and use the top n items for making recommendation August 11th 2011 Meetup
Realtime Prediction We would like to make recommendation when there is a significant event e.g., item gets put on a shopping cart. But Hadoop is an offline batch processing system. How do we circumvent that? We have to do pre computation and cache the results. There are 2 MR jobs: Correlation MR to calculate item correlation and Prediction MR to prediction rating.  We should re run the 2 MR jobs as necessary when significant change in user item rating is detected  August 11th 2011 Meetup
Pre Computation As mentioned earlier item correlation is relatively stable and only needs to be re computed when there is significant change in the utility matrix  Correlation MR for item similarity should be run only after significant over all  change in utility matrix has been detected, since the last run. For a given user, which is basically a row in the utility matrix,  if significant change is detected e.g., new rating by the user  for a product is available, we should re run rating prediction MR for the user.  August 11th 2011 Meetup
Cold Start Problem How do we make recommendation when a new item is introduced in the inventory or a new user visits the site For new item, although we have no user interest data available we can use content based recommendation. Essentially, it’s  similarity computation based on the attributes of the item only.  For new user (cold user?)  the problem is much harder, unless detailed user profile data is available. August 11th 2011 Meetup
Some Temporal Issues When does an item have enough rating data to be accurately recommendable? How to define the threshold? When is there enough user rating, to be able to get good recommendations? How to define the threshold? How to deal with old ratings, as users interest shifts with passing time? When is there enough data in the utility matrix to bootstrap the recommendation system? August 11th 2011 Meetup
Resources My 2 part blog posts on this topic at http://pkghosh.wordpress.com  “Programming Collective Intelligence” by Toby Segaram, O’Reilly “Mining of Massive Datasets” by AnandRajaraman and Jeffrey Ullman August 11th 2011 Meetup

Contenu connexe

Tendances

How to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectHow to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectSease
 
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...Sease
 
Semantic Analysis Using MapReduce
Semantic Analysis Using MapReduceSemantic Analysis Using MapReduce
Semantic Analysis Using MapReduceAnkur Pandey
 
Search Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveSearch Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveAndrea Gazzarini
 
Recommendation system
Recommendation systemRecommendation system
Recommendation systemDing Li
 
Data Science as a Career and Intro to R
Data Science as a Career and Intro to RData Science as a Career and Intro to R
Data Science as a Career and Intro to RAnshik Bansal
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic rankingFELIX75
 
Feature Selection for Document Ranking
Feature Selection for Document RankingFeature Selection for Document Ranking
Feature Selection for Document RankingAndrea Gigli
 
Advanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAdvanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAlessandro Benedetti
 
Data Patterns - A Native Open Source Data Profiling Tool for HPCC Systems
Data Patterns - A Native Open Source Data Profiling Tool for HPCC SystemsData Patterns - A Native Open Source Data Profiling Tool for HPCC Systems
Data Patterns - A Native Open Source Data Profiling Tool for HPCC SystemsHPCC Systems
 
Literature Survey: Clustering Technique
Literature Survey: Clustering TechniqueLiterature Survey: Clustering Technique
Literature Survey: Clustering TechniqueEditor IJCATR
 
Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Andrea Gazzarini
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFYusuke Yamamoto
 
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 FunctionWill Johnson
 
Building a Predictive Model
Building a Predictive ModelBuilding a Predictive Model
Building a Predictive ModelDKALab
 
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...cscpconf
 
Hybrid Algorithm for Clustering Mixed Data Sets
Hybrid Algorithm for Clustering Mixed Data SetsHybrid Algorithm for Clustering Mixed Data Sets
Hybrid Algorithm for Clustering Mixed Data SetsIOSR Journals
 
Query optimization to improve performance of the code execution
Query optimization to improve performance of the code executionQuery optimization to improve performance of the code execution
Query optimization to improve performance of the code executionAlexander Decker
 

Tendances (20)

How to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank ProjectHow to Build your Training Set for a Learning To Rank Project
How to Build your Training Set for a Learning To Rank Project
 
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...
Rated Ranking Evaluator Enterprise: the next generation of free Search Qualit...
 
Semantic Analysis Using MapReduce
Semantic Analysis Using MapReduceSemantic Analysis Using MapReduce
Semantic Analysis Using MapReduce
 
Search Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer PerspectiveSearch Quality Evaluation: a Developer Perspective
Search Quality Evaluation: a Developer Perspective
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Data Science as a Career and Intro to R
Data Science as a Career and Intro to RData Science as a Career and Intro to R
Data Science as a Career and Intro to R
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 
Feature Selection for Document Ranking
Feature Selection for Document RankingFeature Selection for Document Ranking
Feature Selection for Document Ranking
 
Advanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache LuceneAdvanced Document Similarity With Apache Lucene
Advanced Document Similarity With Apache Lucene
 
Data Patterns - A Native Open Source Data Profiling Tool for HPCC Systems
Data Patterns - A Native Open Source Data Profiling Tool for HPCC SystemsData Patterns - A Native Open Source Data Profiling Tool for HPCC Systems
Data Patterns - A Native Open Source Data Profiling Tool for HPCC Systems
 
Literature Survey: Clustering Technique
Literature Survey: Clustering TechniqueLiterature Survey: Clustering Technique
Literature Survey: Clustering Technique
 
Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques Haystack London - Search Quality Evaluation, Tools and Techniques
Haystack London - Search Quality Evaluation, Tools and Techniques
 
Property Alignment on Linked Open Data
Property Alignment on Linked Open DataProperty Alignment on Linked Open Data
Property Alignment on Linked Open Data
 
Collaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CFCollaborative Filtering 2: Item-based CF
Collaborative Filtering 2: Item-based CF
 
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
 
Linkset quality (LWDM 2013)
Linkset quality (LWDM 2013)Linkset quality (LWDM 2013)
Linkset quality (LWDM 2013)
 
Building a Predictive Model
Building a Predictive ModelBuilding a Predictive Model
Building a Predictive Model
 
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...
EFFECTIVENESS PREDICTION OF MEMORY BASED CLASSIFIERS FOR THE CLASSIFICATION O...
 
Hybrid Algorithm for Clustering Mixed Data Sets
Hybrid Algorithm for Clustering Mixed Data SetsHybrid Algorithm for Clustering Mixed Data Sets
Hybrid Algorithm for Clustering Mixed Data Sets
 
Query optimization to improve performance of the code execution
Query optimization to improve performance of the code executionQuery optimization to improve performance of the code execution
Query optimization to improve performance of the code execution
 

En vedette

Amazon推荐算法 201102
Amazon推荐算法 201102Amazon推荐算法 201102
Amazon推荐算法 201102lynch1108
 
Partner Webinar: Recommendation Engines with MongoDB and Hadoop
 Partner Webinar: Recommendation Engines with MongoDB and Hadoop Partner Webinar: Recommendation Engines with MongoDB and Hadoop
Partner Webinar: Recommendation Engines with MongoDB and HadoopMongoDB
 
Credit Card Analytics on a Connected Data Platform
Credit Card Analytics on a Connected Data PlatformCredit Card Analytics on a Connected Data Platform
Credit Card Analytics on a Connected Data PlatformHortonworks
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender SystemsT212
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineNYC Predictive Analytics
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architectureLiang Xiang
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsRoger Chen
 
Recommendation system
Recommendation system Recommendation system
Recommendation system Vikrant Arya
 
Seminar Presentation Hadoop
Seminar Presentation HadoopSeminar Presentation Hadoop
Seminar Presentation HadoopVarun Narang
 

En vedette (10)

Amazon推荐算法 201102
Amazon推荐算法 201102Amazon推荐算法 201102
Amazon推荐算法 201102
 
Partner Webinar: Recommendation Engines with MongoDB and Hadoop
 Partner Webinar: Recommendation Engines with MongoDB and Hadoop Partner Webinar: Recommendation Engines with MongoDB and Hadoop
Partner Webinar: Recommendation Engines with MongoDB and Hadoop
 
Credit Card Analytics on a Connected Data Platform
Credit Card Analytics on a Connected Data PlatformCredit Card Analytics on a Connected Data Platform
Credit Card Analytics on a Connected Data Platform
 
Hadoop
HadoopHadoop
Hadoop
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Building a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engineBuilding a Recommendation Engine - An example of a product recommendation engine
Building a Recommendation Engine - An example of a product recommendation engine
 
Recommender system algorithm and architecture
Recommender system algorithm and architectureRecommender system algorithm and architecture
Recommender system algorithm and architecture
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item Recommendations
 
Recommendation system
Recommendation system Recommendation system
Recommendation system
 
Seminar Presentation Hadoop
Seminar Presentation HadoopSeminar Presentation Hadoop
Seminar Presentation Hadoop
 

Similaire à Recommendation Engine Powered by Hadoop

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...IRJET Journal
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation SystemsRobin Reni
 
PredictionIO - Building Applications That Predict User Behavior Through Big D...
PredictionIO - Building Applications That Predict User Behavior Through Big D...PredictionIO - Building Applications That Predict User Behavior Through Big D...
PredictionIO - Building Applications That Predict User Behavior Through Big D...predictionio
 
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachSearch Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachAlessandro Benedetti
 
Recommender Systems in the Linked Data era
Recommender Systems in the Linked Data eraRecommender Systems in the Linked Data era
Recommender Systems in the Linked Data eraRoku
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlightsSandra Garcia
 
(Gaurav sawant & dhaval sawlani)bia 678 final project report
(Gaurav sawant & dhaval sawlani)bia 678 final project report(Gaurav sawant & dhaval sawlani)bia 678 final project report
(Gaurav sawant & dhaval sawlani)bia 678 final project reportGaurav Sawant
 
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...Mladen Jovanovic
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data AnalyticsOsman Ali
 
Experiments on Design Pattern Discovery
Experiments on Design Pattern DiscoveryExperiments on Design Pattern Discovery
Experiments on Design Pattern DiscoveryTim Menzies
 
R programming for psychometrics
R programming for psychometricsR programming for psychometrics
R programming for psychometricsDiane Talley
 
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...OpenSource Connections
 
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationSease
 
An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationAn Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationEnrico Palumbo
 
Explain Yourself: Why You Get the Recommendations You Do
Explain Yourself: Why You Get the Recommendations You DoExplain Yourself: Why You Get the Recommendations You Do
Explain Yourself: Why You Get the Recommendations You DoDatabricks
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R ProgrammingIRJET Journal
 
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)Jee Vang, Ph.D.
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysisPramod Toraskar
 

Similaire à Recommendation Engine Powered by Hadoop (20)

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...
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation Systems
 
PredictionIO - Building Applications That Predict User Behavior Through Big D...
PredictionIO - Building Applications That Predict User Behavior Through Big D...PredictionIO - Building Applications That Predict User Behavior Through Big D...
PredictionIO - Building Applications That Predict User Behavior Through Big D...
 
50120140505004
5012014050500450120140505004
50120140505004
 
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source ApproachSearch Quality Evaluation to Help Reproducibility: An Open-source Approach
Search Quality Evaluation to Help Reproducibility: An Open-source Approach
 
Recommender Systems in the Linked Data era
Recommender Systems in the Linked Data eraRecommender Systems in the Linked Data era
Recommender Systems in the Linked Data era
 
Recsys 2018 overview and highlights
Recsys 2018 overview and highlightsRecsys 2018 overview and highlights
Recsys 2018 overview and highlights
 
(Gaurav sawant & dhaval sawlani)bia 678 final project report
(Gaurav sawant & dhaval sawlani)bia 678 final project report(Gaurav sawant & dhaval sawlani)bia 678 final project report
(Gaurav sawant & dhaval sawlani)bia 678 final project report
 
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
PyCon Balkans 2018 // Recommender systems - collaborative filtering and dimen...
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 
Getting started with R
Getting started with RGetting started with R
Getting started with R
 
Experiments on Design Pattern Discovery
Experiments on Design Pattern DiscoveryExperiments on Design Pattern Discovery
Experiments on Design Pattern Discovery
 
R programming for psychometrics
R programming for psychometricsR programming for psychometrics
R programming for psychometrics
 
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
Haystack 2019 - Rated Ranking Evaluator: an Open Source Approach for Search Q...
 
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality EvaluationRated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
Rated Ranking Evaluator: an Open Source Approach for Search Quality Evaluation
 
An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item RecommendationAn Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
An Empirical Comparison of Knowledge Graph Embeddings for Item Recommendation
 
Explain Yourself: Why You Get the Recommendations You Do
Explain Yourself: Why You Get the Recommendations You DoExplain Yourself: Why You Get the Recommendations You Do
Explain Yourself: Why You Get the Recommendations You Do
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R Programming
 
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)
A Quick Tutorial on Mahout’s Recommendation Engine (v 0.4)
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysis
 

Dernier

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 

Dernier (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 

Recommendation Engine Powered by Hadoop

  • 1. Recommendation Engine Powered by Hadoop PranabGhosh pkghosh@yahoo.com August 11th 2011 Meetup
  • 2. About me Started with numerical computation on main frames, followed by many years of C and C++ systems and real time programming, followed by many years of java, JEE and enterprise apps Worked for Oracle, HP, Yahoo, Motorola, many startups and mid size companies Currently Big Data consultant using Hadoop and other cloud related technologies Interested in Distributed Computation, Big Data, NOSQL DB and Data Mining. August 11th 2011 Meetup
  • 3. Hadoop Power of functional programming and parallel processing join hands to create Hadoop Basically parallel processing framework running on cluster of commodity machines Stateless functional programming because processing of each row of data does not depend upon any other row or any state Divide and conquer parallel processing. Data gets partitioned and each partition get processed by a separate mapper or reducer task. August 11th 2011 Meetup
  • 4. More About Hadoop Data locality, at least for the mapper. Code gets shipped to where the data partition resides Data is replicated, partitioned and resides in Hadoop Distributed File System (HDFS) Mapper output: {k -> v}. Reducer: input {k -> List(v)} Reducer output {k -> v} Many to many shuffle between mapper output and reducer input. Lot of network IO. Simple paradigm, but surprising solves an incredible array of problems. August 11th 2011 Meetup
  • 5. Recommendation Engine Does not require an introduction. You know it if you have visited Amazon or Netflix. We love it when they get right, hate it otherwise. Very computationally intensive, ideal for Hadoop processing. In memory based recommendation engines, the entire data set is used directly e.g collaboration filtering, content based recommendation engine In model based recommendation, a model is built first by training the data and then predictions made e.g., Bayesian, Clustering August 11th 2011 Meetup
  • 6. Content Based recommendation A memory based system, based purely on the attributes of an item only An item with p attributes is considered as a point in a p dimensional space. Uses nearest neighbor approach. Similar items are found using distance measurement in the p dimensional space. Useful for addressing the cold start problem i.e., a new item in introduced in the inventory. Computationally intensive. Not very useful for real time recommendation. August 11th 2011 Meetup
  • 7. Model Based Recommendation Based on traditional machine learning approach In contract to memory based algorithms, creates a learning model using the ratings as training data. The model is built offline as a batch process and saved. Model needs to be rebuilt when significant change in data is detected. Once the trained model is available, making recommendation is quick. Effective for real time recommendation. August 11th 2011 Meetup
  • 8. Collaboration Filter In collaboration filtering based recommendation engine, recommendations are made based not only the user’s rating but also rating by other users for the same item and some other items. Hence the name collaboration filtering. Requires social data i.e., user’s interest level for an item. It could be explicit e.g., product rating or implicit based on user’s interaction and behavior in a site. More appropriate name might be user intent based recommendation engine. Two approaches. In user based, similar users are found first. In item based, similar items are found first. August 11th 2011 Meetup
  • 9. Item Based or User Based? Item based CF is generally preferred. Similarity relationship between items is relatively static and stable, because items naturally map into many genres. User based CF is less preferred, because we humans are more complex than a laptop or smart phone (although some marketing folks may disagree). As we grow and go through life experiences, our interests change. Our similarity relationship in terms of common interests with other humans is more dynamic and change over time August 11th 2011 Meetup
  • 10. Utility Matrix Matrix of user and item. The cell contains a value indicative of the users interest level for that item e.g., rating. Matrix is sparse The purpose of recommendation engine is to predict the values for the empty cells based on available cell values Denser the matrix, better the quality of recommendation. But generally the matrix sparse. If I have rated item A and I need recommendation, enough users must have rated A as well as other items. August 11th 2011 Meetup
  • 11. Example Utility Matrix August 11th 2011 Meetup
  • 12. Rating Prediction Example Let’s say we are interested in predicting r35 i.e., rating of item i5 for user u3. Item based CF : r35 = (c52 x r32 + c54 x r34) / (c52 + c54) where items i2 and i4 are similar to i5 User based CF : r35 = (c31 x r15 + c32 x r25) / (c31 +c32) where users u1 and u2 are similar to u3 cij = similarity coefficient between items i and j or users i and j and rij = rating of item j by user i August 11th 2011 Meetup
  • 13. Rating Estimation In the previous slide, we assumed rating data for item, user pair was already available, through some rating mechanism a.k.a explicit rating. However there may not be a product rating feature available in a site. Even if the rating feature is there, many users may not use it.Evenif many users rate, explicit rating by users tend to be biased. We need a way to estimate rating based on user behavior in the site and some heuristic a.k.a implicit rating August 11th 2011 Meetup
  • 14. Heuristics for Rating: An Example August 11th 2011 Meetup
  • 15. Similarity computation For item based CF, the first step is finding similar items. For user based CF, the first step is finding similar users We will use Pearson Correlation Coefficient. It indicates how well a set of data points lie in a straight line. In a 2 dimensional space of 2 items, rating of the 2 items by an user is a data point. There are other similarity measure algorithms e.g., euclidian distance, cosine distance August 11th 2011 Meetup
  • 16. Pearson Correlation Coefficient c(i,j) = cov(i,j) / (stddev(i) * stddev(j)) cov(i,j) = sum ((r(u,i) - av(r(i)) * (r(u,j) - av(r(j))) / n stddev(i) = sqrt(sum((r(u,i) - av(r(i)) ** 2) / n) stddev(j) = sqrt(sum((r(u,j) - av(r(j)) ** 2) / n) The covariance can also be expressed in this alternative form, which we will be using cov(i,j) = sum(r(u,i) * r(u,j)) / n - av(r(i)) * av(r(j) c(i,j) = Pearson correlation coefficient between product i and j cov(i,j) = Covariance of rating for products i and j stddev(i) = Std deviation of rating for product i stddev(j) = Std deviation of rating for product j r(u,i) = Rating for user u for product i av(r(i)) = Average rating for product i over all users that rated sum = Sum over all users n = Num of data points August 11th 2011 Meetup
  • 17. Map Reduce We are going to have 2 MR jobs working in tandem for items based CF. Additional preprocessing MR jobs are also necessary to process click stream data. The first MR calculates correlation for all item pairs, based on rating data. Essentially finds similar items. The second MR takes the output of the first MR and the rating data for the user in question. The output is a list of items ranked by predicted rating August 11th 2011 Meetup
  • 18. Correlation Map Reduce It takes two kinds of input. The first kind has item id pair and two mean and std dev values for the ratings . This is generated by another pre processor MR. The second input has item rating for all users. This is generated by another preprocessor MR analyzing click stream data. Each row is for one user along with variable number of product ratings by an user August 11th 2011 Meetup
  • 19. Correlation Mapper Input August 11th 2011 Meetup
  • 20. Correlation Mapper Output The mapper produces two kinds of output. The first kind contains {pid1,pid2,0 -> m1,s1,m2ms2}. It’s the mean and std dev for a pid pair The second kind contains {pid1,pid2,1 -> r1xr2}. It’s the product of rating for the pidpair for some user. We are appending 0 and 1 to the mapper output key, for secondary sorting which will ensure that for a given pid pair, the reducer will receive the value of the first kind of record followed by multiple values of the second kind of mapper output August 11th 2011 Meetup
  • 21. Correlation Mapper Output August 11th 2011 Meetup
  • 22. Correlation Reducer Partitioner based on the first two tokens of key (pid1,pid2), so that the values for the same pid pair go to the same reducer Grouping comparator on the first two tokens of key (pid1,pid2), so that all the mapper out put for the same pid pair is treated as one group and passed to the reducer in one call The reducer output is pid pair and the corresponding correlation coefficient {pid1,pid2 -> c12} For a pid pair, the reducer has at it’s disposal all the data for Pearson correlation computation. August 11th 2011 Meetup
  • 23. Correlation Reducer Output August 11th 2011 Meetup
  • 24. Prediction Map Reduce This is the second MR that takes item correlation data which is the output of the first MR and the rating data for the target user. We are running this MR to make rating prediction and ultimately recommendation for an user. The user rating data is passed to Hadoop as so called “side data”. The mapper output consists of pid of an item as the key and the rating of the related item multiplied by the correlation coefficint and the correlation coefficient as the value. {pid1 -> rating(pid3) x c13, c13} August 11th 2011 Meetup
  • 25. Prediction Mapper Input August 11th 2011 Meetup
  • 26. Prediction Mapper Output August 11th 2011 Meetup
  • 27. Prediction Reducer The reducer gets a pid as a key and a list of tuples as value. Each tuple consists of weighted rating of a related item and the corresponding correlation coefficient. {pid1 -> [(pid3 x c31, c31), (pid5 x c51, c51),…..] The reducer sums up the weighted rating and divides the sum by sum of correlation value. This is the final predicted rating for an item. The reducer output is an item pid and the predicted rating for the item. All that remains is to sort the predicted ratings and use the top n items for making recommendation August 11th 2011 Meetup
  • 28. Realtime Prediction We would like to make recommendation when there is a significant event e.g., item gets put on a shopping cart. But Hadoop is an offline batch processing system. How do we circumvent that? We have to do pre computation and cache the results. There are 2 MR jobs: Correlation MR to calculate item correlation and Prediction MR to prediction rating. We should re run the 2 MR jobs as necessary when significant change in user item rating is detected August 11th 2011 Meetup
  • 29. Pre Computation As mentioned earlier item correlation is relatively stable and only needs to be re computed when there is significant change in the utility matrix Correlation MR for item similarity should be run only after significant over all change in utility matrix has been detected, since the last run. For a given user, which is basically a row in the utility matrix, if significant change is detected e.g., new rating by the user for a product is available, we should re run rating prediction MR for the user. August 11th 2011 Meetup
  • 30. Cold Start Problem How do we make recommendation when a new item is introduced in the inventory or a new user visits the site For new item, although we have no user interest data available we can use content based recommendation. Essentially, it’s similarity computation based on the attributes of the item only. For new user (cold user?) the problem is much harder, unless detailed user profile data is available. August 11th 2011 Meetup
  • 31. Some Temporal Issues When does an item have enough rating data to be accurately recommendable? How to define the threshold? When is there enough user rating, to be able to get good recommendations? How to define the threshold? How to deal with old ratings, as users interest shifts with passing time? When is there enough data in the utility matrix to bootstrap the recommendation system? August 11th 2011 Meetup
  • 32. Resources My 2 part blog posts on this topic at http://pkghosh.wordpress.com “Programming Collective Intelligence” by Toby Segaram, O’Reilly “Mining of Massive Datasets” by AnandRajaraman and Jeffrey Ullman August 11th 2011 Meetup