1
The Machine Learning Guide to Fine Dining
Rani Nelken
2
Motivation
Human decision making
Machine Learning
3
How to pick the best restaurant?
Trust your server’s recommendations?
Stick with a favorite or try a new dish?
4
Best restaurant for a group of friends?
5
Ensemble methods and rank aggregation
Group restaurant
choice
ElectionsMeta-searchCombining classifiers
6
Borda count: consensus over majority
Candidate John Paul George
1st Choice A A C2nd Choice B C A3rd Choice C B B
A: ASTAB: Grill 23 & BarC: Craigie on Main
7
Borda count
Restaurant John Paul George Score
1st Choice A A C 32nd Choice B C A 23rd Choice C B B 1
Candidate ScoreA 3+3+2=8C 1+2+3=6B 2+1+1=4
8
Beyond Borda Count
• Partial lists
• Uneven comparisons
• Enhanced Heuristics
• Efficiency
9
More holistic view: Markov Chains
AB C
Edges represent preference
Self-edges
Nodes representrestaurants
Find stationary distribution using power method
10
How to pick the best restaurant?
Stick with a favorite or try a new dish?
Trust your server’s recommendations?
11
Bayesian classification
Trust server’s
recs?
Document classification
12
Flip the problem using Bayes’ rule
• Instead of
estimate
• Reminder:
13
Naïve Bayes
• How to estimate?
•
• Reduce to liking individual ingredients
14
What about unknown ingredients?
15
Solution: Laplace smoothing
http://www.youtube.com/watch?v=iGPldwfoddw
16
How to pick the best restaurant?
Trust your server’s recommendations?
Stick with a favorite or try a new dish?
17
Multi-arm Bandits
When to choose a
new dish?
Website optimization, Clinical trials
18
ε-Greedy
ExploitFavorite
Usually
With low probability
ExploreNew
New dish 1
New dish 2
19
How to choose between unknown dishes?Information used
Sophistication
ε-greedy
SoftmaxDishes’ previous success ratio
Dishes’ #triesUCB
GLM UCBModel of unseen dishes
Contextual bandits
Bayesian sampling
20
Strategy for unknown dishes
• Prior estimate for based on ingredients
• Optimistic correction
21
Life lessons from bandits
• Optimism in the face of uncertainty
• Minimize regret relative to other strategies
22
Summary
Human decision making
Machine Learning
23
Further reading
• Rank Aggregation:http://www10.org/cdrom/papers/pdf/p577.pdf
• Bayesian classification in Intro to IR: http://nlp.stanford.edu/IR-book/
• Bandit algorithms for website optimization http://shop.oreilly.com/product/0636920027393.do
• Contextual Bandits: http://hunch.net/~exploration_learning/main.pdf
• Bayesian Methods for Hackers https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
• Ingredient Networks: http://arxiv.org/pdf/1111.3919v3.pdf
24
Thank you
@RaniNelkenRani Nelken