SlideShare a Scribd company logo
1 of 29
Building a Recommendation
system for e-commerce
AI Ukraine 2017
About me
Alex Konduforov
Data Science Group Leader @
Co-organizer @ Kharkiv AI club
Business
“31% of ecommerce revenues were generated from personalized
product recommendations” - Barilliance.com, 2014
“Already, 35% of what consumers purchase on Amazon and 75% of
what they watch on Netflix come from product recommendations
based on such algorithms” - McKinsey
Evolution
Amazon
Netflix
Why recommendations so important
Traditional Retail can serve only
most popular products.
Online can serve much more
products, but it’s overwhelming for
customers.
How to apply
Website recommendations
• Main goals: cross-sale, save customer time
Personalized marketing emails
• Main goals: return customer on the website, upsale
Recommendation systems
Formulation of the problem
LOTR Star Wars GoT Matrix
Alice 5 2
Bob 4 5 3
Carol 3 4
David 5 5
Goal of recommendation system is to predict blanks in the utility matrix
Gathering Data
Explicit
• Ask people to rate items
• Cons: doesn’t scale, only a small fractions of users leave
ratings and reviews
Implicit
• Inferences from user actions
• Cons: only one value, no difference between dislike and
unknown
Main approaches
• Non-personalized Summary Statistics
• Content-based Filtering
• Collaborative Filtering (nearest neighbors)
• User-User
• Item-Item
• Matrix Factorization
• Hybrid
• Probability models
• etc.
Ecommerce specifics
• Implicit customer feedback (views, purchases, other actions)
• Utility matrix with only 1’s
• Possible to calculate some score but more complicated
• Collaborative Filtering + Matrix Factorization
• Not every similarity/distance works
Collaborative Filtering
Method of making automatic predictions (filtering) about the interests of a user
by collecting preferences or taste information from many users (collaborating)
Types of Collaborative Filtering
User-to-user
1. Look for users who share the same rating patterns with the active user (the
user whom the prediction is for)
2. Use the ratings from those like-minded users to calculate a prediction for
the active user
Item-to-item
1. Build an item-item matrix determining relationships between pairs of items
2. Infer the tastes of the current user by examining the matrix and matching
that user's data
User-to-user
Similarity
Jaccard similarity
Ignores rating values
Pearson similarity (~cosine)
Contrary to cosine treats missing values
not as negatives, but as zeros
Item-to-item
User-based vs. item-based
In practice, item-based CF outperforms user-based CF in many cases
Item-based CF pros:
• better when user size is large
• better for new users
• no need to recalculate so often as user-based (caching)
• more likely to converge => better accuracy
Matrix Factorization
Approximates the utility matrix as product of low-rank matrices
Identifies latent features
P x Q
Matrix Factorization algorithm
• Initialize P and Q with small random numbers
• Teach P and Q
• Alternating Least Squares
• Stochastic Gradient Descent
MF example
Latent features are calculated via MF:
Evaluation
Academic metrics:
• RMSE
• MAE
• Precision/Recall
(all may have low correlation with
actual user satisfaction)
Business metrics:
• CTR/CVR
• ROI
• CLV (Customer Lifetime Value)
Customer metrics:
• Coverage – covering more items for recommendations
• Diversity – higher variety of items (rich-get-richer effect)
• Novelty – recommending new items
Sparsity problem
There is an approximate threshold of 99.5% sparsity for CF to work
• Add product views, shopping cart and other activities
• Decreases sparsity
• Matrix Factorization, SVD
• No zeros
• Content description
• Hybrid content-based + collaborative filtering
Cold start problem
User cold start: new users
• Non-personalized recommendations: most popular, highly rated
• Use user profile (age, gender, etc.) and segment
Item cold start: new items
• Don’t recommend (what about news?)
• Use item content if available
Scalability problem
Amazon had 30+ mln of customers and several million catalog items.
Solution:
• Reduce number of customers by randomly sampling them or discarding
customers with few purchases
• Reduce number of items by discarding very popular or unpopular items
• Dimensionality reduction techniques such as clustering
Other challenges
• Gray sheep
• Diversity and the long tail (rich-get-richer effect)
• Shilling attacks
• Privacy
• EU has quite strict rules and culture of data privacy
• Netflix was sued for dataset publication => cancellation of a second Netflix
Prize competition in 2010
Implementation questions
• For CF+MF - automatic model updates? how frequently?
• How and where to store MF model?
• Emails - track recommended items and don’t duplicate
Tools
Language / Stack Tools / Libraries
R recommenderlab, recosystem
Python Scikit-learn
crab, implicit, python-recsys, Surprise
GraphLab Create ($$$)
Java LensKit, Cofi
Apache Mahout
C++ SVDFeature, Waffles, Graphchi, LIBMF
GraphLab Create ($$$)
C# Nreco
Node.JS raccoon
SaaS Google Cloud Prediction API
Amazon Machine Learning
PredictionIO
SuggestGrid
https://github.com/grahamjenson/list_of_recommender_systems
Materials
• A Gentle Introduction to Recommender Systems with Implicit Feedback
• Matrix Factorization: A Simple Tutorial and Implementation on Python
• Matrix Factorization Model in Collaborating Filtering
• Finding similar music using Matrix Factorization
• Mining of Massive Databases (Stanford), Chapter 9
• AI Ukraine 2014 - Сергей Николенко - Рекомендательные системы
• Recommender Systems specialization (Coursera)
Thank you!
Skype: alex_konduforov
Email: alex.konduforov@altexsoft.com

More Related Content

What's hot

Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
Liang Xiang
 
Recommender Systems in E-Commerce
Recommender Systems in E-CommerceRecommender Systems in E-Commerce
Recommender Systems in E-Commerce
Roger Chen
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
nextlib
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item Recommendations
Roger Chen
 
Recommendation engines
Recommendation enginesRecommendation engines
Recommendation engines
Georgian Micsa
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
Lior Rokach
 

What's hot (20)

Recommender system introduction
Recommender system   introductionRecommender system   introduction
Recommender system introduction
 
Recommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filteringRecommender systems: Content-based and collaborative filtering
Recommender systems: Content-based and collaborative filtering
 
Collaborative filtering
Collaborative filteringCollaborative filtering
Collaborative filtering
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Collaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CFCollaborative Filtering 1: User-based CF
Collaborative Filtering 1: User-based CF
 
Recommender Systems in E-Commerce
Recommender Systems in E-CommerceRecommender Systems in E-Commerce
Recommender Systems in E-Commerce
 
Item Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation AlgorithmsItem Based Collaborative Filtering Recommendation Algorithms
Item Based Collaborative Filtering Recommendation Algorithms
 
Amazon Item-to-Item Recommendations
Amazon Item-to-Item RecommendationsAmazon Item-to-Item Recommendations
Amazon Item-to-Item Recommendations
 
Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system Movie recommendation system using collaborative filtering system
Movie recommendation system using collaborative filtering system
 
Overview of recommender system
Overview of recommender systemOverview of recommender system
Overview of recommender system
 
Recommendation engines
Recommendation enginesRecommendation engines
Recommendation engines
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
An introduction to Recommender Systems
An introduction to Recommender SystemsAn introduction to Recommender Systems
An introduction to Recommender Systems
 
Recommender Systems
Recommender SystemsRecommender Systems
Recommender Systems
 
Recommendation Engine Project Presentation
Recommendation Engine Project PresentationRecommendation Engine Project Presentation
Recommendation Engine Project Presentation
 
Recommendation system
Recommendation systemRecommendation system
Recommendation system
 
Movies Recommendation System
Movies Recommendation SystemMovies Recommendation System
Movies Recommendation System
 
Project presentation
Project presentationProject presentation
Project presentation
 
Recommendation System
Recommendation SystemRecommendation System
Recommendation System
 
Recent advances in deep recommender systems
Recent advances in deep recommender systemsRecent advances in deep recommender systems
Recent advances in deep recommender systems
 

Similar to Recommender systems for E-commerce

Preference Elicitation Interface
Preference Elicitation InterfacePreference Elicitation Interface
Preference Elicitation Interface
晓愚 孟
 
recommendationsystem-140410131156-phpapp01 (1).pdf
recommendationsystem-140410131156-phpapp01 (1).pdfrecommendationsystem-140410131156-phpapp01 (1).pdf
recommendationsystem-140410131156-phpapp01 (1).pdf
ssuserff0096
 
Utilizing Marginal Net Utility for Recommendation in E-commerce
Utilizing Marginal Net Utility for Recommendation in E-commerceUtilizing Marginal Net Utility for Recommendation in E-commerce
Utilizing Marginal Net Utility for Recommendation in E-commerce
Liangjie Hong
 

Similar to Recommender systems for E-commerce (20)

Demystifying Recommendation Systems
Demystifying Recommendation SystemsDemystifying Recommendation Systems
Demystifying Recommendation Systems
 
Big data certification training mumbai
Big data certification training mumbaiBig data certification training mumbai
Big data certification training mumbai
 
Best data science courses in pune
Best data science courses in puneBest data science courses in pune
Best data science courses in pune
 
Top data science institutes in hyderabad
Top data science institutes in hyderabadTop data science institutes in hyderabad
Top data science institutes in hyderabad
 
best online data science courses
best online data science coursesbest online data science courses
best online data science courses
 
Cs548 s15 showcase_web_mining
Cs548 s15 showcase_web_miningCs548 s15 showcase_web_mining
Cs548 s15 showcase_web_mining
 
Building High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning ApplicationsBuilding High Available and Scalable Machine Learning Applications
Building High Available and Scalable Machine Learning Applications
 
Lecture Notes on Recommender System Introduction
Lecture Notes on Recommender System IntroductionLecture Notes on Recommender System Introduction
Lecture Notes on Recommender System Introduction
 
Preference Elicitation Interface
Preference Elicitation InterfacePreference Elicitation Interface
Preference Elicitation Interface
 
Fashiondatasc
FashiondatascFashiondatasc
Fashiondatasc
 
recommendationsystem-140410131156-phpapp01 (1).pdf
recommendationsystem-140410131156-phpapp01 (1).pdfrecommendationsystem-140410131156-phpapp01 (1).pdf
recommendationsystem-140410131156-phpapp01 (1).pdf
 
Mini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation DemystifiedMini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation Demystified
 
recommendation system techunique and issue
recommendation system techunique and issuerecommendation system techunique and issue
recommendation system techunique and issue
 
Use of data science in recommendation system
Use of data science in  recommendation systemUse of data science in  recommendation system
Use of data science in recommendation system
 
Utilizing Marginal Net Utility for Recommendation in E-commerce
Utilizing Marginal Net Utility for Recommendation in E-commerceUtilizing Marginal Net Utility for Recommendation in E-commerce
Utilizing Marginal Net Utility for Recommendation in E-commerce
 
Recommender lecture
Recommender lectureRecommender lecture
Recommender lecture
 
Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”Олександр Обєдніков “Рекомендательные системы”
Олександр Обєдніков “Рекомендательные системы”
 
Recommendation engine Using Genetic Algorithm
Recommendation engine Using Genetic AlgorithmRecommendation engine Using Genetic Algorithm
Recommendation engine Using Genetic Algorithm
 
Recommended System.pptx
 Recommended System.pptx Recommended System.pptx
Recommended System.pptx
 
Recommendation Systems : Selection vs Fulfillment
Recommendation Systems : Selection vs FulfillmentRecommendation Systems : Selection vs Fulfillment
Recommendation Systems : Selection vs Fulfillment
 

More from Alexander Konduforov (8)

Fast data munging in R
Fast data munging in RFast data munging in R
Fast data munging in R
 
Machine Learning and Azure Machine Learning
Machine Learning and Azure Machine LearningMachine Learning and Azure Machine Learning
Machine Learning and Azure Machine Learning
 
ИИ персонажей в онлайн шутере Survarium
ИИ персонажей в онлайн шутере SurvariumИИ персонажей в онлайн шутере Survarium
ИИ персонажей в онлайн шутере Survarium
 
Real-time ASP.NET with SignalR
Real-time ASP.NET with SignalRReal-time ASP.NET with SignalR
Real-time ASP.NET with SignalR
 
Design Principles
Design PrinciplesDesign Principles
Design Principles
 
New in Entity Framework 4.0
New in Entity Framework 4.0New in Entity Framework 4.0
New in Entity Framework 4.0
 
ASP.NET MVC: new era?
ASP.NET MVC: new era?ASP.NET MVC: new era?
ASP.NET MVC: new era?
 
Ling to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysisLing to SQL and Entity Framework performance analysis
Ling to SQL and Entity Framework performance analysis
 

Recently uploaded

Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Recommender systems for E-commerce

  • 1. Building a Recommendation system for e-commerce AI Ukraine 2017
  • 2. About me Alex Konduforov Data Science Group Leader @ Co-organizer @ Kharkiv AI club
  • 3. Business “31% of ecommerce revenues were generated from personalized product recommendations” - Barilliance.com, 2014 “Already, 35% of what consumers purchase on Amazon and 75% of what they watch on Netflix come from product recommendations based on such algorithms” - McKinsey
  • 5. Why recommendations so important Traditional Retail can serve only most popular products. Online can serve much more products, but it’s overwhelming for customers.
  • 6. How to apply Website recommendations • Main goals: cross-sale, save customer time Personalized marketing emails • Main goals: return customer on the website, upsale
  • 8. Formulation of the problem LOTR Star Wars GoT Matrix Alice 5 2 Bob 4 5 3 Carol 3 4 David 5 5 Goal of recommendation system is to predict blanks in the utility matrix
  • 9. Gathering Data Explicit • Ask people to rate items • Cons: doesn’t scale, only a small fractions of users leave ratings and reviews Implicit • Inferences from user actions • Cons: only one value, no difference between dislike and unknown
  • 10. Main approaches • Non-personalized Summary Statistics • Content-based Filtering • Collaborative Filtering (nearest neighbors) • User-User • Item-Item • Matrix Factorization • Hybrid • Probability models • etc.
  • 11. Ecommerce specifics • Implicit customer feedback (views, purchases, other actions) • Utility matrix with only 1’s • Possible to calculate some score but more complicated • Collaborative Filtering + Matrix Factorization • Not every similarity/distance works
  • 12. Collaborative Filtering Method of making automatic predictions (filtering) about the interests of a user by collecting preferences or taste information from many users (collaborating)
  • 13. Types of Collaborative Filtering User-to-user 1. Look for users who share the same rating patterns with the active user (the user whom the prediction is for) 2. Use the ratings from those like-minded users to calculate a prediction for the active user Item-to-item 1. Build an item-item matrix determining relationships between pairs of items 2. Infer the tastes of the current user by examining the matrix and matching that user's data
  • 15. Similarity Jaccard similarity Ignores rating values Pearson similarity (~cosine) Contrary to cosine treats missing values not as negatives, but as zeros
  • 17. User-based vs. item-based In practice, item-based CF outperforms user-based CF in many cases Item-based CF pros: • better when user size is large • better for new users • no need to recalculate so often as user-based (caching) • more likely to converge => better accuracy
  • 18. Matrix Factorization Approximates the utility matrix as product of low-rank matrices Identifies latent features P x Q
  • 19. Matrix Factorization algorithm • Initialize P and Q with small random numbers • Teach P and Q • Alternating Least Squares • Stochastic Gradient Descent
  • 20. MF example Latent features are calculated via MF:
  • 21. Evaluation Academic metrics: • RMSE • MAE • Precision/Recall (all may have low correlation with actual user satisfaction) Business metrics: • CTR/CVR • ROI • CLV (Customer Lifetime Value) Customer metrics: • Coverage – covering more items for recommendations • Diversity – higher variety of items (rich-get-richer effect) • Novelty – recommending new items
  • 22. Sparsity problem There is an approximate threshold of 99.5% sparsity for CF to work • Add product views, shopping cart and other activities • Decreases sparsity • Matrix Factorization, SVD • No zeros • Content description • Hybrid content-based + collaborative filtering
  • 23. Cold start problem User cold start: new users • Non-personalized recommendations: most popular, highly rated • Use user profile (age, gender, etc.) and segment Item cold start: new items • Don’t recommend (what about news?) • Use item content if available
  • 24. Scalability problem Amazon had 30+ mln of customers and several million catalog items. Solution: • Reduce number of customers by randomly sampling them or discarding customers with few purchases • Reduce number of items by discarding very popular or unpopular items • Dimensionality reduction techniques such as clustering
  • 25. Other challenges • Gray sheep • Diversity and the long tail (rich-get-richer effect) • Shilling attacks • Privacy • EU has quite strict rules and culture of data privacy • Netflix was sued for dataset publication => cancellation of a second Netflix Prize competition in 2010
  • 26. Implementation questions • For CF+MF - automatic model updates? how frequently? • How and where to store MF model? • Emails - track recommended items and don’t duplicate
  • 27. Tools Language / Stack Tools / Libraries R recommenderlab, recosystem Python Scikit-learn crab, implicit, python-recsys, Surprise GraphLab Create ($$$) Java LensKit, Cofi Apache Mahout C++ SVDFeature, Waffles, Graphchi, LIBMF GraphLab Create ($$$) C# Nreco Node.JS raccoon SaaS Google Cloud Prediction API Amazon Machine Learning PredictionIO SuggestGrid https://github.com/grahamjenson/list_of_recommender_systems
  • 28. Materials • A Gentle Introduction to Recommender Systems with Implicit Feedback • Matrix Factorization: A Simple Tutorial and Implementation on Python • Matrix Factorization Model in Collaborating Filtering • Finding similar music using Matrix Factorization • Mining of Massive Databases (Stanford), Chapter 9 • AI Ukraine 2014 - Сергей Николенко - Рекомендательные системы • Recommender Systems specialization (Coursera)
  • 29. Thank you! Skype: alex_konduforov Email: alex.konduforov@altexsoft.com

Editor's Notes

  1. Recall - % relevant documents