Thanks to Jure Leskovec, Anand Rajaraman, Jeff Ullman

Similar documents
Mining of Massive Datasets Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford University Infinite data. Filtering data streams

Introduction to Data Mining

BBS654 Data Mining. Pinar Duygulu

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS 124/LINGUIST 180 From Languages to Information

CS 124/LINGUIST 180 From Languages to Information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS 124/LINGUIST 180 From Languages to Information

Mining of Massive Datasets Jure Leskovec, Anand Rajaraman, Jeff Ullman Stanford University

CS 5614: (Big) Data Management Systems. B. Aditya Prakash Lecture #16: Recommenda2on Systems

Recommendation and Advertising. Shannon Quinn (with thanks to J. Leskovec, A. Rajaraman, and J. Ullman of Stanford University)

Real-time Recommendations on Spark. Jan Neumann, Sridhar Alla (Comcast Labs) DC Spark Interactive Meetup East May

Recommender Systems - Content, Collaborative, Hybrid

Recommender Systems. Collaborative Filtering & Content-Based Recommending

Recommender Systems 6CCS3WSN-7CCSMWAL

COMP 465: Data Mining Recommender Systems

Recommendation Systems

Knowledge Discovery and Data Mining 1 (VO) ( )

Data Mining Lecture 2: Recommender Systems

CS 345A Data Mining Lecture 1. Introduction to Web Mining

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Recommender Systems - Introduction. Data Mining Lecture 2: Recommender Systems

Recommender System. What is it? How to build it? Challenges. R package: recommenderlab

COMP6237 Data Mining Making Recommendations. Jonathon Hare

CS224W Project: Recommendation System Models in Product Rating Predictions

Part 11: Collaborative Filtering. Francesco Ricci

Use of KNN for the Netflix Prize Ted Hong, Dimitris Tsamis Stanford University

Towards a hybrid approach to Netflix Challenge

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Machine Learning using MapReduce

CS249: ADVANCED DATA MINING

Recommender Systems. Techniques of AI

Using Social Networks to Improve Movie Rating Predictions

Recommendation Algorithms: Collaborative Filtering. CSE 6111 Presentation Advanced Algorithms Fall Presented by: Farzana Yasmeen

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Performance Comparison of Algorithms for Movie Rating Estimation

The influence of social filtering in recommender systems

DS504/CS586: Big Data Analytics Big Data Clustering Prof. Yanhua Li

A probabilistic model to resolve diversity-accuracy challenge of recommendation systems

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Mining Web Data. Lijun Zhang

Recommender Systems (RSs)

Jeff Howbert Introduction to Machine Learning Winter

Part 11: Collaborative Filtering. Francesco Ricci

Matrix-Vector Multiplication by MapReduce. From Rajaraman / Ullman- Ch.2 Part 1

arxiv: v4 [cs.ir] 28 Jul 2016

Part 12: Advanced Topics in Collaborative Filtering. Francesco Ricci

Distributed Itembased Collaborative Filtering with Apache Mahout. Sebastian Schelter twitter.com/sscdotopen. 7.

Recommender Systems New Approaches with Netflix Dataset

CS 229 Final Project - Using machine learning to enhance a collaborative filtering recommendation system for Yelp

General Instructions. Questions

Mining Web Data. Lijun Zhang

CSE 258 Lecture 8. Web Mining and Recommender Systems. Extensions of latent-factor models, (and more on the Netflix prize)

Data Mining Techniques

CPSC 340: Machine Learning and Data Mining. Recommender Systems Fall 2017

Hybrid Recommendation System Using Clustering and Collaborative Filtering

Data Mining Techniques

Web Personalization & Recommender Systems

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CSE 158 Lecture 8. Web Mining and Recommender Systems. Extensions of latent-factor models, (and more on the Netflix prize)

CS435 Introduction to Big Data Spring 2018 Colorado State University. 3/21/2018 Week 10-B Sangmi Lee Pallickara. FAQs. Collaborative filtering

Neighborhood-Based Collaborative Filtering

CSE 5243 INTRO. TO DATA MINING

International Journal of Advance Engineering and Research Development. A Facebook Profile Based TV Shows and Movies Recommendation System

Web Personalization & Recommender Systems

Predicting User Ratings Using Status Models on Amazon.com

Movie Recommender System - Hybrid Filtering Approach

CPSC 340: Machine Learning and Data Mining. Non-Parametric Models Fall 2016

CS535 Big Data Fall 2017 Colorado State University 10/10/2017 Sangmi Lee Pallickara Week 8- A.

Recommender Systems. Nivio Ziviani. Junho de Departamento de Ciência da Computação da UFMG

Recommendation System for Netflix

A PROPOSED HYBRID BOOK RECOMMENDER SYSTEM

Instructor: Stefan Savev

Collaborative filtering models for recommendations systems

Mining Social Network Graphs

vector space retrieval many slides courtesy James Amherst

Using Data Mining to Determine User-Specific Movie Ratings

A comprehensive survey of neighborhood-based recommendation methods

Machine Learning and Data Mining. Collaborative Filtering & Recommender Systems. Kalev Kask

Near Neighbor Search in High Dimensional Data (1) Dr. Anwar Alhenshiri

Property1 Property2. by Elvir Sabic. Recommender Systems Seminar Prof. Dr. Ulf Brefeld TU Darmstadt, WS 2013/14

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS570: Introduction to Data Mining

Web Personalisation and Recommender Systems

Problem 1: Complexity of Update Rules for Logistic Regression

AMAZON.COM RECOMMENDATIONS ITEM-TO-ITEM COLLABORATIVE FILTERING PAPER BY GREG LINDEN, BRENT SMITH, AND JEREMY YORK

Collaborative Filtering using Weighted BiPartite Graph Projection A Recommendation System for Yelp

Personalize Movie Recommendation System CS 229 Project Final Writeup

A Genetic Algorithm Approach to Recommender. System Cold Start Problem. Sanjeevan Sivapalan. Bachelor of Science, Ryerson University, 2011.

Recommender Systems: Practical Aspects, Case Studies. Radek Pelánek

Collaborative Filtering and Recommender Systems. Definitions. .. Spring 2009 CSC 466: Knowledge Discovery from Data Alexander Dekhtyar..

Recap: Project and Practicum CS276B. Recommendation Systems. Plan for Today. Sample Applications. What do RSs achieve? Given a set of users and items

CSE 547: Machine Learning for Big Data Spring Problem Set 2. Please read the homework submission policies.

Orange3 Data Fusion Documentation. Biolab

Machine Learning and Bioinformatics 機器學習與生物資訊學

Sampling Large Graphs for Anticipatory Analysis

Finding Similar Sets

Collaborative Filtering using Euclidean Distance in Recommendation Engine

Transcription:

Thanks to Jure Leskovec, Anand Rajaraman, Jeff Ullman http://www.mmds.org

Overview of Recommender Systems Content-based Systems Collaborative Filtering J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org

Customer X Buys Metallica CD Buys Megadeth CD Customer Y Does search on Metallica Recommender system suggests Megadeth from data collected about customer X J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Examples: Search Recommendations Items Products, web sites, blogs, news items,

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 6 Shelf space is a scarce commodity for traditional retailers Also: TV networks, movie theaters, Web enables near-zero-cost dissemination of information about products From scarcity to abundance More choice necessitates better filters Recommendation engines How Into Thin Air made Touching the Void a bestseller: http://www.wired.com/wired/archive/.0/tail.html

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 7 Source: Chris Anderson (00)

Read http://www.wired.com/wired/archive/.0/tail.html to learn more! J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 8

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 9 Editorial and hand curated List of favorites Lists of essential items Simple aggregates Top 0, Most Popular, Recent Uploads Tailored to individual users Amazon, Netflix,

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 0 X = set of Customers S = set of Items Utility function u: X S R R = set of ratings R is a totally ordered set e.g., 0- stars, real number in [0,]

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Avatar LOTR Matrix Pirates Alice 0. Bob 0. 0. Carol 0. David 0.

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org () Gathering known ratings for matrix How to collect the data in the utility matrix () Extrapolate unknown ratings from the known ones Mainly interested in high unknown ratings We are not interested in knowing what you don t like but what you like () Evaluating extrapolation methods How to measure success/performance of recommendation methods

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Explicit Ask people to rate items Doesn t work well in practice people can t be bothered Implicit Learn ratings from user actions E.g., purchase implies high rating What about low ratings?

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Key problem: Utility matrix U is sparse Most people have not rated most items Cold start: New items have no ratings New users have no history Three approaches to recommender systems: ) Content-based ) Collaborative ) Latent factor based Today!

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 6 Main idea: Recommend items to customer x similar to previous items rated highly by x Example: Movie recommendations Recommend movies with same actor(s), director, genre, Websites, blogs, news Recommend other sites with similar content

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 7 Item profiles likes recommend build match Red Circles Triangles User profile

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 8 For each item, create an item profile Profile is a set (vector) of features Movies: author, title, actor, director, Text: Set of important words in document How to pick important features? Usual heuristic from text mining is TF-IDF (Term frequency * Inverse Doc Frequency) Term Feature Document Item

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 9 f ij = frequency of term (feature) i in doc (item) j n i = number of docs that mention term i N = total number of docs Note: we normalize TF to discount for longer documents TF-IDF score: w ij = TF ij IDF i Doc profile = set of words with highest TF-IDF scores, together with their scores

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 0 User profile possibilities: Weighted average of rated item profiles Variation: weight by difference from average rating for item Prediction heuristic: Given user profile x and item profile i, estimate u(x, i) = cos(x, i) = x i x i

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org +: No need for data on other users No cold-start or sparsity problems +: Able to recommend to users with unique tastes +: Able to recommend new & unpopular items No first-rater problem +: Able to provide explanations Can provide explanations of recommended items by listing content-features that caused an item to be recommended

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org : Finding the appropriate features is hard E.g., images, movies, music : Recommendations for new users How to build a user profile? : Overspecialization Never recommends items outside user s content profile People might have multiple interests Unable to exploit quality judgments of other users

Harnessing quality judgments of other users

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Consider user x Find set N of other users whose ratings are similar to x s ratings Estimate x s ratings based on ratings of users in N x N

Let r x be the vector of user x s ratings Jaccard similarity measure Problem: Ignores the value of the rating Cosine similarity measure sim(x, y) = cos(r x, r y ) = r x r y r x r y Problem: Treats missing ratings as negative Pearson correlation coefficient S xy = items rated by both users x and y sim x, y = s S xy r xs r x r ys r y s S xy r xs r x s Sxy r ys r y r x = [*, _, _, *, ***] r y = [*, _, **, **, _] r x, r y as sets: r x = {,, } r y = {,, } r x, r y as points: r x = {, 0, 0,, } r y = {, 0,,, 0} r x, r y avg. rating of x, y J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org

Cosine sim: sim(x, y) = i r xi r yi i r xi i r yi Intuitively we want: sim(a, B) > sim(a, C) Jaccard similarity: / < / Cosine similarity: 0.86 > 0. Considers missing ratings as negative Solution: subtract the (row) mean sim A,B vs. A,C: 0.09 > -0.9 Notice cosine sim. is correlation when data is centered at 0 J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 6

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 7 From similarity metric to recommendations: Let r x be the vector of user x s ratings Let N be the set of k users most similar to x who have rated item i Prediction for item s of user x: r xi = k r xi = y N r yi y N s xy r yi Shorthand: s xy = sim x, y y N s xy Other options? Many other tricks possible

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 8 So far: User-user collaborative filtering Another view: Item-item For item i, find other similar items Estimate rating for item i based on ratings for similar items Can use same similarity metrics and prediction functions as in user-user model r xi j N ( i; x) s ij j N ( i; x) s r ij xj s ij similarity of items i and j r xj rating of user u on item j N(i;x) set items rated by x similar to i

0 9 8 7 6 6 users movies - unknown rating - rating between to 9 J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org

0 9 8 7 6? 6 users - estimate rating of movie by user 0 J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org movies

movies users? 6 7 8 9 0 sim(,m).00-0.8 0. -0.0-0. 6 0.9 Neighbor selection: Identify movies similar to movie, rated by user J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Here we use Pearson correlation as similarity: ) Subtract mean rating m i from each movie i m = (++++)/ =.6 row : [-.6, 0, -0.6, 0, 0,., 0, 0,., 0, 0., 0] ) Compute cosine similarities between rows

movies J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org users? 6 7 8 9 0 sim(,m).00-0.8 0. -0.0-0. 6 0.9 Compute similarity weights: s, =0., s,6 =0.9

movies J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org users 6 7 8 9 0.6 6 Predict by taking weighted average: r. = (0.* + 0.9*) / (0.+0.9) =.6 r ix = j N(i;x) s ij r jx s ij

Define similarity s ij of items i and j Select k nearest neighbors N(i; x) Before: Items most similar to i, that were rated by x Estimate rating r xi as the weighted average: r xi j N ( i; x) s j N ( i; x) ij s r ij xj r xi b xi j N ( i; x) s ij ( r j N ( i; x) xj s ij b xj ) baseline estimate for r xi μ = overall mean movie rating b x = rating deviation of user x b xi = μ + b x + b i = (avg. rating of user x) μ b i = rating deviation of movie i J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Avatar LOTR Matrix Pirates Alice 0.8 Bob 0. 0. Carol 0.9 0.8 David 0. In practice, it has been observed that item-item often works better than user-user Why? Items are simpler, users have multiple tastes

+ Works for any kind of item No feature selection needed - Cold Start: Need enough users in the system to find a match - Sparsity: The user/ratings matrix is sparse Hard to find users that have rated the same items - First rater: Cannot recommend an item that has not been previously rated New items, Esoteric items - Popularity bias: Cannot recommend items to someone with unique taste Tends to recommend popular items J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 6

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 7 Implement two or more different recommenders and combine predictions Perhaps using a linear model Add content-based methods to collaborative filtering Item profiles for new item problem Demographics to deal with new user problem

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 8 - Evaluation - Error metrics - Complexity / Speed

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 9 movies users

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org 0 users movies????? Test Data Set

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Compare predictions with known ratings Root-mean-square error (RMSE) xi r xi r xi where r xi is predicted, r xi is the true rating of x on i Precision at top 0: % of those in top 0 Rank Correlation: Spearman s correlation between system s and user s complete rankings Another approach: 0/ model Coverage: Number of items/users for which system can make predictions Precision: Accuracy of predictions Receiver operating characteristic (ROC) Tradeoff curve between false positives and false negatives

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Narrow focus on accuracy sometimes misses the point Prediction Diversity Prediction Context Order of predictions In practice, we care only to predict high ratings: RMSE might penalize a method that does well for high ratings and badly for others

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Expensive step is finding k most similar customers: O( X ) Too expensive to do at runtime Could pre-compute Naïve pre-computation takes time O(k X ) X set of customers Efficient methods for finding k most similar customers Near-neighbor search in high dimensions (LSH) Clustering Dimensionality reduction

J. Leskovec, A. Rajaraman, J. Ullman: Mining of Massive Datasets, http://www.mmds.org Leverage all the data Don t try to reduce data size in an effort to make fancy algorithms work Simple methods on large data do best Add more data e.g., add IMDB data on genres More data beats better algorithms http://anand.typepad.com/datawocky/008/0/more-data-usual.html