SlideShare a Scribd company logo
1 of 48
Download to read offline
10MoreLessons
Learned from building real-life Machine Learning Systems
Xavier Amatriain (@xamat) 10/13/2015
Machine Learning
@Quora
Our Mission
โ€œTo share and grow the worldโ€™s knowledgeโ€
โ— Millions of questions & answers
โ— Millions of users
โ— Thousands of topics
โ— ...
Demand
What we care about
Quality
Relevance
Lots of data relations
ML Applications @ Quora
โ— Answer ranking
โ— Feed ranking
โ— Topic recommendations
โ— User recommendations
โ— Email digest
โ— Ask2Answer
โ— Duplicate Questions
โ— Related Questions
โ— Spam/moderation
โ— Trending now
โ— ...
Models
โ— Logistic Regression
โ— Elastic Nets
โ— Gradient Boosted Decision
Trees
โ— Random Forests
โ— (Deep) Neural Networks
โ— LambdaMART
โ— Matrix Factorization
โ— LDA
โ— ...
10MoreLessons
Learned from implementing real-life ML systems
1.Implicitsignalsbeat
explicitones
(almostalways)
Implicit vs. Explicit
โ— Many have acknowledged
that implicit feedback is more useful
โ— Is implicit feedback really always
more useful?
โ— If so, why?
โ— Implicit data is (usually):
โ—‹ More dense, and available for all users
โ—‹ Better representative of user behavior vs.
user reflection
โ—‹ More related to final objective function
โ—‹ Better correlated with AB test results
โ— E.g. Rating vs watching
Implicit vs. Explicit
โ— However
โ—‹ It is not always the case that
direct implicit feedback correlates
well with long-term retention
โ—‹ E.g. clickbait
โ— Solution:
โ—‹ Combine different forms of
implicit + explicit to better represent
long-term goal
Implicit vs. Explicit
2.YourModelwilllearn
whatyouteachittolearn
Training a model
โ— Model will learn according to:
โ—‹ Training data (e.g. implicit and explicit)
โ—‹ Target function (e.g. probability of user reading an answer)
โ—‹ Metric (e.g. precision vs. recall)
โ— Example 1 (made up):
โ—‹ Optimize probability of a user going to the cinema to
watch a movie and rate it โ€œhighlyโ€ by using purchase history
and previous ratings. Use NDCG of the ranking as final
metric using only movies rated 4 or higher as positives.
Example 2 - Quoraโ€™s feed
โ— Training data = implicit + explicit
โ— Target function: Value of showing a story to a
user ~ weighted sum of actions: v = โˆ‘a
va
1{ya
= 1}
โ—‹ predict probabilities for each action, then compute expected
value: v_pred = E[ V | x ] = โˆ‘a
va
p(a | x)
โ— Metric: any ranking metric
3.Supervisedvs.plus
UnsupervisedLearning
Supervised/Unsupervised Learning
โ— Unsupervised learning as dimensionality reduction
โ— Unsupervised learning as feature engineering
โ— The โ€œmagicโ€ behind combining
unsupervised/supervised learning
โ—‹ E.g.1 clustering + knn
โ—‹ E.g.2 Matrix Factorization
โ–  MF can be interpreted as
โ— Unsupervised:
โ—‹ Dimensionality Reduction a la PCA
โ—‹ Clustering (e.g. NMF)
โ— Supervised
โ—‹ Labeled targets ~ regression
Supervised/Unsupervised Learning
โ— One of the โ€œtricksโ€ in Deep Learning is how it
combines unsupervised/supervised learning
โ—‹ E.g. Stacked Autoencoders
โ—‹ E.g. training of convolutional nets
4.Everythingisanensemble
Ensembles
โ— Netflix Prize was won by an ensemble
โ—‹ Initially Bellkor was using GDBTs
โ—‹ BigChaos introduced ANN-based ensemble
โ— Most practical applications of ML run an ensemble
โ—‹ Why wouldnโ€™t you?
โ—‹ At least as good as the best of your methods
โ—‹ Can add completely different approaches (e.
g. CF and content-based)
โ—‹ You can use many different models at the
ensemble layer: LR, GDBTs, RFs, ANNs...
Ensembles & Feature Engineering
โ— Ensembles are the way to turn any model into a feature!
โ— E.g. Donโ€™t know if the way to go is to use Factorization
Machines, Tensor Factorization, or RNNs?
โ—‹ Treat each model as a โ€œfeatureโ€
โ—‹ Feed them into an ensemble
The Master Algorithm?
It definitely is an ensemble!
5.Theoutputofyourmodel
willbetheinputofanotherone
(andotherdesignproblems)
Outputs will be inputs
โ— Ensembles turn any model into a feature
โ—‹ Thatโ€™s great!
โ—‹ That can be a mess!
โ— Make sure the output of your model is ready to
accept data dependencies
โ—‹ E.g. can you easily change the distribution of the
value without affecting all other models
depending on it?
โ— Avoid feedback loops
โ— Can you treat your ML infrastructure as you would
your software one?
ML vs Software
โ— Can you treat your ML infrastructure as you would
your software one?
โ—‹ Yes and No
โ— You should apply best Software Engineering
practices (e.g. encapsulation, abstraction, cohesion,
low couplingโ€ฆ)
โ— However, Design Patterns for Machine Learning
software are not well known/documented
6.Thepains&gains
ofFeatureEngineering
Feature Engineering
โ— Main properties of a well-behaved ML feature
โ—‹ Reusable
โ—‹ Transformable
โ—‹ Interpretable
โ—‹ Reliable
โ— Reusability: You should be able to reuse features in different
models, applications, and teams
โ— Transformability: Besides directly reusing a feature, it
should be easy to use a transformation of it (e.g. log(f), max(f),
โˆ‘ft
over a time windowโ€ฆ)
Feature Engineering
โ— Main properties of a well-behaved ML feature
โ—‹ Reusable
โ—‹ Transformable
โ—‹ Interpretable
โ—‹ Reliable
โ— Interpretability: In order to do any of the previous, you
need to be able to understand the meaning of features and
interpret their values.
โ— Reliability: It should be easy to monitor and detect bugs/issues
in features
Feature Engineering Example - Quora Answer Ranking
What is a good Quora answer?
โ€ข truthful
โ€ข reusable
โ€ข provides explanation
โ€ข well formatted
โ€ข ...
Feature Engineering Example - Quora Answer Ranking
How are those dimensions translated
into features?
โ€ข Features that relate to the answer
quality itself
โ€ข Interaction features
(upvotes/downvotes, clicks,
commentsโ€ฆ)
โ€ข User features (e.g. expertise in topic)
7.Thetwofacesofyour
MLinfrastructure
Machine Learning Infrastructure
โ— Whenever you develop any ML infrastructure, you need to
target two different modes:
โ—‹ Mode 1: ML experimentation
โ–  Flexibility
โ–  Easy-to-use
โ–  Reusability
โ—‹ Mode 2: ML production
โ–  All of the above + performance & scalability
โ— Ideally you want the two modes to be as similar as possible
โ— How to combine them?
Machine Learning Infrastructure: Experimentation & Production
โ— Option 1:
โ—‹ Favor experimentation and only invest in productionizing
once something shows results
โ—‹ E.g. Have ML researchers use R and then ask Engineers
to implement things in production when they work
โ— Option 2:
โ—‹ Favor production and have โ€œresearchersโ€ struggle to figure
out how to run experiments
โ—‹ E.g. Implement highly optimized C++ code and have ML
researchers experiment only through data available in logs/DB
Machine Learning Infrastructure: Experimentation & Production
โ— Option 1:
โ—‹ Favor experimentation and only invest in productionazing once
something shows results
โ—‹ E.g. Have ML researchers use R and then ask Engineers to
implement things in production when they work
โ— Option 2:
โ—‹ Favor production and have โ€œresearchersโ€ struggle to figure out
how to run experiments
โ—‹ E.g. Implement highly optimized C++ code and have ML
researchers experiment only through data available in logs/DB
โ— Good intermediate options:
โ—‹ Have ML โ€œresearchersโ€ experiment on iPython Notebooks using
Python tools (scikit-learn, Theanoโ€ฆ). Use same tools in
production whenever possible, implement optimized versions
only when needed.
โ—‹ Implement abstraction layers on top of optimized
implementations so they can be accessed from regular/friendly
experimentation tools
Machine Learning Infrastructure: Experimentation & Production
8.Whyyoushouldcareabout
answeringquestions(aboutyourmodel)
Model debuggability
โ— Value of a model = value it brings to the product
โ— Product owners/stakeholders have expectations on
the product
โ— It is important to answer questions to why did
something fail
โ— Bridge gap between product design and ML algos
โ— Model debuggability is so important it can
determine:
โ—‹ Particular model to use
โ—‹ Features to rely on
โ—‹ Implementation of tools
Model debuggability
โ— E.g. Why am I seeing or not seeing
this on my homepage feed?
9.Youdonโ€™tneedtodistribute
yourMLalgorithm
Distributing ML
โ— Most of what people do in practice can fit into a multi-
core machine
โ—‹ Smart data sampling
โ—‹ Offline schemes
โ—‹ Efficient parallel code
โ— Dangers of โ€œeasyโ€ distributed approaches such
as Hadoop/Spark
โ— Do you care about costs? How about latencies?
Distributing ML
โ— Example of optimizing computations to fit them into
one machine
โ—‹ Spark implementation: 6 hours, 15 machines
โ—‹ Developer time: 4 days
โ—‹ C++ implementation: 10 minutes, 1 machine
โ— Most practical applications of Big Data can fit into
a (multicore) implementation
10.Theuntoldstoryof
DataScienceandvs.MLengineering
Data Scientists and ML Engineers
โ— We all know the definition of a Data Scientist
โ— Where do Data Scientists fit in an organization?
โ—‹ Many companies struggling with this
โ— Valuable to have strong DS who can bring value
from the data
โ— Strong DS with solid engineering skills are
unicorns and finding them is not scalable
โ—‹ DS need engineers to bring things to production
โ—‹ Engineers have enough on their plate to be willing to
โ€œproductionizeโ€ cool DS projects
The data-driven ML innovation funnel
Data Research
ML Exploration -
Product Design
AB Testing
Data Scientists and ML Engineers
โ— Solution:
โ—‹ (1) Define different parts of the innovation funnel
โ–  Part 1. Data research & hypothesis
building -> Data Science
โ–  Part 2. ML solution building &
implementation -> ML Engineering
โ–  Part 3. Online experimentation, AB
Testing analysis-> Data Science
โ—‹ (2) Broaden the definition of ML Engineers
to include from coding experts with high-level
ML knowledge to ML experts with good
software skills
Data Research
ML Solution
AB Testing
Data
Science
Data
Science
ML
Engineering
Conclusions
โ— Make sure you teach your model what you
want it to learn
โ— Ensembles and the combination of
supervised/unsupervised techniques are key
in many ML applications
โ— Important to focus on feature engineering
โ— Be thoughtful about
โ—‹ your ML infrastructure/tools
โ—‹ about organizing your teams
10 more lessons learned from building Machine Learning systems - MLConf

More Related Content

What's hot

Ai vs machine learning vs deep learning
Ai vs machine learning vs deep learningAi vs machine learning vs deep learning
Ai vs machine learning vs deep learningSanjay Patel
ย 
Effects of ai on job market
Effects of ai on job marketEffects of ai on job market
Effects of ai on job marketOmar Ahmed
ย 
L1-Introduction to Artificial Intelligence.pdf
L1-Introduction to Artificial Intelligence.pdfL1-Introduction to Artificial Intelligence.pdf
L1-Introduction to Artificial Intelligence.pdfSyedAbdullah854076
ย 
Unlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfUnlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfPremNaraindas1
ย 
AI(artificial intelligence)
AI(artificial intelligence)AI(artificial intelligence)
AI(artificial intelligence)jithinsajan1
ย 
Artificial Intelligence and Future of Work
Artificial Intelligence and Future of WorkArtificial Intelligence and Future of Work
Artificial Intelligence and Future of WorkOleksandr Krakovetskyi
ย 
What is Deep Learning?
What is Deep Learning?What is Deep Learning?
What is Deep Learning?NVIDIA
ย 
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know About
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know AboutIs Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know About
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know AboutBernard Marr
ย 
Introduction to AI with Business Use Cases
Introduction to AI with Business Use CasesIntroduction to AI with Business Use Cases
Introduction to AI with Business Use CasesJack C Crawford
ย 
Introduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptxIntroduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptxRSAISHANKAR
ย 
Machine Learning for Non-technical People
Machine Learning for Non-technical PeopleMachine Learning for Non-technical People
Machine Learning for Non-technical Peopleindico data
ย 
Generative AI Risks & Concerns
Generative AI Risks & ConcernsGenerative AI Risks & Concerns
Generative AI Risks & ConcernsAjitesh Kumar
ย 
What Are The Negative Impacts Of Artificial Intelligence (AI)?
What Are The Negative Impacts Of Artificial Intelligence (AI)?What Are The Negative Impacts Of Artificial Intelligence (AI)?
What Are The Negative Impacts Of Artificial Intelligence (AI)?Bernard Marr
ย 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceNadaraja Sarmilan
ย 
UTILITY OF AI
UTILITY OF AIUTILITY OF AI
UTILITY OF AIAndre Muscat
ย 
Artificial Intelligence and Machine Learning for business
Artificial Intelligence and Machine Learning for businessArtificial Intelligence and Machine Learning for business
Artificial Intelligence and Machine Learning for businessSteven Finlay
ย 
AI Overview and Capabilities
AI Overview and CapabilitiesAI Overview and Capabilities
AI Overview and CapabilitiesAnandSRao1962
ย 
Future of work: AI vs. Human
Future of work: AI vs. HumanFuture of work: AI vs. Human
Future of work: AI vs. HumanBรผlent Duagi
ย 

What's hot (20)

Ai vs machine learning vs deep learning
Ai vs machine learning vs deep learningAi vs machine learning vs deep learning
Ai vs machine learning vs deep learning
ย 
Effects of ai on job market
Effects of ai on job marketEffects of ai on job market
Effects of ai on job market
ย 
L1-Introduction to Artificial Intelligence.pdf
L1-Introduction to Artificial Intelligence.pdfL1-Introduction to Artificial Intelligence.pdf
L1-Introduction to Artificial Intelligence.pdf
ย 
Unlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdfUnlocking the Power of Generative AI An Executive's Guide.pdf
Unlocking the Power of Generative AI An Executive's Guide.pdf
ย 
AI(artificial intelligence)
AI(artificial intelligence)AI(artificial intelligence)
AI(artificial intelligence)
ย 
Artificial Intelligence and Future of Work
Artificial Intelligence and Future of WorkArtificial Intelligence and Future of Work
Artificial Intelligence and Future of Work
ย 
What is Deep Learning?
What is Deep Learning?What is Deep Learning?
What is Deep Learning?
ย 
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know About
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know AboutIs Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know About
Is Artificial Intelligence Dangerous? 6 AI Risks Everyone Should Know About
ย 
Introduction to AI with Business Use Cases
Introduction to AI with Business Use CasesIntroduction to AI with Business Use Cases
Introduction to AI with Business Use Cases
ย 
Introduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptxIntroduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptx
ย 
Machine Learning for Non-technical People
Machine Learning for Non-technical PeopleMachine Learning for Non-technical People
Machine Learning for Non-technical People
ย 
Generative AI Risks & Concerns
Generative AI Risks & ConcernsGenerative AI Risks & Concerns
Generative AI Risks & Concerns
ย 
What Are The Negative Impacts Of Artificial Intelligence (AI)?
What Are The Negative Impacts Of Artificial Intelligence (AI)?What Are The Negative Impacts Of Artificial Intelligence (AI)?
What Are The Negative Impacts Of Artificial Intelligence (AI)?
ย 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
ย 
UTILITY OF AI
UTILITY OF AIUTILITY OF AI
UTILITY OF AI
ย 
AI Chatbot
AI ChatbotAI Chatbot
AI Chatbot
ย 
Artificial Intelligence and Machine Learning for business
Artificial Intelligence and Machine Learning for businessArtificial Intelligence and Machine Learning for business
Artificial Intelligence and Machine Learning for business
ย 
Ai Ethics
Ai EthicsAi Ethics
Ai Ethics
ย 
AI Overview and Capabilities
AI Overview and CapabilitiesAI Overview and Capabilities
AI Overview and Capabilities
ย 
Future of work: AI vs. Human
Future of work: AI vs. HumanFuture of work: AI vs. Human
Future of work: AI vs. Human
ย 

Similar to 10 more lessons learned from building Machine Learning systems - MLConf

Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
Strata 2016 -  Lessons Learned from building real-life Machine Learning SystemsStrata 2016 -  Lessons Learned from building real-life Machine Learning Systems
Strata 2016 - Lessons Learned from building real-life Machine Learning SystemsXavier Amatriain
ย 
Scaling Recommendations at Quora (RecSys talk 9/16/2016)
Scaling Recommendations at Quora (RecSys talk 9/16/2016)Scaling Recommendations at Quora (RecSys talk 9/16/2016)
Scaling Recommendations at Quora (RecSys talk 9/16/2016)Nikhil Dandekar
ย 
BIG2016- Lessons Learned from building real-life user-focused Big Data systems
BIG2016- Lessons Learned from building real-life user-focused Big Data systemsBIG2016- Lessons Learned from building real-life user-focused Big Data systems
BIG2016- Lessons Learned from building real-life user-focused Big Data systemsXavier Amatriain
ย 
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...Xavier Amatriain
ย 
Staying Shallow & Lean in a Deep Learning World
Staying Shallow & Lean in a Deep Learning WorldStaying Shallow & Lean in a Deep Learning World
Staying Shallow & Lean in a Deep Learning WorldXavier Amatriain
ย 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or realityAwantik Das
ย 
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DSRoopesh Kohad
ย 
Production-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroProduction-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroDaniel Marcous
ย 
Machine Learning: Artificial Intelligence isn't just a Science Fiction topic
Machine Learning: Artificial Intelligence isn't just a Science Fiction topicMachine Learning: Artificial Intelligence isn't just a Science Fiction topic
Machine Learning: Artificial Intelligence isn't just a Science Fiction topicRaรบl Garreta
ย 
L15.pptx
L15.pptxL15.pptx
L15.pptxImonBennett
ย 
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci....NET Conf UY
ย 
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning InfrastructureML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning InfrastructureFei Chen
ย 
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...Aseda Owusua Addai-Deseh
ย 
Open source ml systems that need to be built
Open source ml systems that need to be builtOpen source ml systems that need to be built
Open source ml systems that need to be builtNikhil Garg
ย 
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016MLconf
ย 
Building A Machine Learning Platform At Quora (1)
Building A Machine Learning Platform At Quora (1)Building A Machine Learning Platform At Quora (1)
Building A Machine Learning Platform At Quora (1)Nikhil Garg
ย 
Prototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesPrototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesMarta Soncodi
ย 
Data science
Data scienceData science
Data sciencePurna Chander
ย 
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2Anant Corporation
ย 
Persian MNIST in 5 Minutes
Persian MNIST in 5 MinutesPersian MNIST in 5 Minutes
Persian MNIST in 5 MinutesShahriar Yazdipour
ย 

Similar to 10 more lessons learned from building Machine Learning systems - MLConf (20)

Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
Strata 2016 -  Lessons Learned from building real-life Machine Learning SystemsStrata 2016 -  Lessons Learned from building real-life Machine Learning Systems
Strata 2016 - Lessons Learned from building real-life Machine Learning Systems
ย 
Scaling Recommendations at Quora (RecSys talk 9/16/2016)
Scaling Recommendations at Quora (RecSys talk 9/16/2016)Scaling Recommendations at Quora (RecSys talk 9/16/2016)
Scaling Recommendations at Quora (RecSys talk 9/16/2016)
ย 
BIG2016- Lessons Learned from building real-life user-focused Big Data systems
BIG2016- Lessons Learned from building real-life user-focused Big Data systemsBIG2016- Lessons Learned from building real-life user-focused Big Data systems
BIG2016- Lessons Learned from building real-life user-focused Big Data systems
ย 
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...
Recsys 2016 tutorial: Lessons learned from building real-life recommender sys...
ย 
Staying Shallow & Lean in a Deep Learning World
Staying Shallow & Lean in a Deep Learning WorldStaying Shallow & Lean in a Deep Learning World
Staying Shallow & Lean in a Deep Learning World
ย 
AI hype or reality
AI  hype or realityAI  hype or reality
AI hype or reality
ย 
General introduction to AI ML DL DS
General introduction to AI ML DL DSGeneral introduction to AI ML DL DS
General introduction to AI ML DL DS
ย 
Production-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to heroProduction-Ready BIG ML Workflows - from zero to hero
Production-Ready BIG ML Workflows - from zero to hero
ย 
Machine Learning: Artificial Intelligence isn't just a Science Fiction topic
Machine Learning: Artificial Intelligence isn't just a Science Fiction topicMachine Learning: Artificial Intelligence isn't just a Science Fiction topic
Machine Learning: Artificial Intelligence isn't just a Science Fiction topic
ย 
L15.pptx
L15.pptxL15.pptx
L15.pptx
ย 
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...
Machine Learning: Inteligencia Artificial no es sรณlo un tema de Ciencia Ficci...
ย 
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning InfrastructureML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ML Platform Q1 Meetup: Airbnb's End-to-End Machine Learning Infrastructure
ย 
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
ย 
Open source ml systems that need to be built
Open source ml systems that need to be builtOpen source ml systems that need to be built
Open source ml systems that need to be built
ย 
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
Nikhil Garg, Engineering Manager, Quora at MLconf SF 2016
ย 
Building A Machine Learning Platform At Quora (1)
Building A Machine Learning Platform At Quora (1)Building A Machine Learning Platform At Quora (1)
Building A Machine Learning Platform At Quora (1)
ย 
Prototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, PrototypesPrototyping Workshop - Wireframes, Mockups, Prototypes
Prototyping Workshop - Wireframes, Mockups, Prototypes
ย 
Data science
Data scienceData science
Data science
ย 
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2
Apache Cassandra Lunch #54: Machine Learning with Spark + Cassandra Part 2
ย 
Persian MNIST in 5 Minutes
Persian MNIST in 5 MinutesPersian MNIST in 5 Minutes
Persian MNIST in 5 Minutes
ย 

More from Xavier Amatriain

Data/AI driven product development: from video streaming to telehealth
Data/AI driven product development: from video streaming to telehealthData/AI driven product development: from video streaming to telehealth
Data/AI driven product development: from video streaming to telehealthXavier Amatriain
ย 
AI-driven product innovation: from Recommender Systems to COVID-19
AI-driven product innovation: from Recommender Systems to COVID-19AI-driven product innovation: from Recommender Systems to COVID-19
AI-driven product innovation: from Recommender Systems to COVID-19Xavier Amatriain
ย 
AI for COVID-19 - Q42020 update
AI for COVID-19 - Q42020 updateAI for COVID-19 - Q42020 update
AI for COVID-19 - Q42020 updateXavier Amatriain
ย 
AI for COVID-19: An online virtual care approach
AI for COVID-19: An online virtual care approachAI for COVID-19: An online virtual care approach
AI for COVID-19: An online virtual care approachXavier Amatriain
ย 
Lessons learned from building practical deep learning systems
Lessons learned from building practical deep learning systemsLessons learned from building practical deep learning systems
Lessons learned from building practical deep learning systemsXavier Amatriain
ย 
AI for healthcare: Scaling Access and Quality of Care for Everyone
AI for healthcare: Scaling Access and Quality of Care for EveryoneAI for healthcare: Scaling Access and Quality of Care for Everyone
AI for healthcare: Scaling Access and Quality of Care for EveryoneXavier Amatriain
ย 
Towards online universal quality healthcare through AI
Towards online universal quality healthcare through AITowards online universal quality healthcare through AI
Towards online universal quality healthcare through AIXavier Amatriain
ย 
From one to zero: Going smaller as a growth strategy
From one to zero: Going smaller as a growth strategyFrom one to zero: Going smaller as a growth strategy
From one to zero: Going smaller as a growth strategyXavier Amatriain
ย 
Learning to speak medicine
Learning to speak medicineLearning to speak medicine
Learning to speak medicineXavier Amatriain
ย 
ML to cure the world
ML to cure the worldML to cure the world
ML to cure the worldXavier Amatriain
ย 
Recommender Systems In Industry
Recommender Systems In IndustryRecommender Systems In Industry
Recommender Systems In IndustryXavier Amatriain
ย 
Medical advice as a Recommender System
Medical advice as a Recommender SystemMedical advice as a Recommender System
Medical advice as a Recommender SystemXavier Amatriain
ย 
Past present and future of Recommender Systems: an Industry Perspective
Past present and future of Recommender Systems: an Industry PerspectivePast present and future of Recommender Systems: an Industry Perspective
Past present and future of Recommender Systems: an Industry PerspectiveXavier Amatriain
ย 
Machine Learning for Q&A Sites: The Quora Example
Machine Learning for Q&A Sites: The Quora ExampleMachine Learning for Q&A Sites: The Quora Example
Machine Learning for Q&A Sites: The Quora ExampleXavier Amatriain
ย 
Past, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectivePast, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectiveXavier Amatriain
ย 
Barcelona ML Meetup - Lessons Learned
Barcelona ML Meetup - Lessons LearnedBarcelona ML Meetup - Lessons Learned
Barcelona ML Meetup - Lessons LearnedXavier Amatriain
ย 
10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systemsXavier Amatriain
ย 
Machine Learning to Grow the World's Knowledge
Machine Learning to Grow  the World's KnowledgeMachine Learning to Grow  the World's Knowledge
Machine Learning to Grow the World's KnowledgeXavier Amatriain
ย 
MLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraMLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraXavier Amatriain
ย 
Lean DevOps - Lessons Learned from Innovation-driven Companies
Lean DevOps - Lessons Learned from Innovation-driven CompaniesLean DevOps - Lessons Learned from Innovation-driven Companies
Lean DevOps - Lessons Learned from Innovation-driven CompaniesXavier Amatriain
ย 

More from Xavier Amatriain (20)

Data/AI driven product development: from video streaming to telehealth
Data/AI driven product development: from video streaming to telehealthData/AI driven product development: from video streaming to telehealth
Data/AI driven product development: from video streaming to telehealth
ย 
AI-driven product innovation: from Recommender Systems to COVID-19
AI-driven product innovation: from Recommender Systems to COVID-19AI-driven product innovation: from Recommender Systems to COVID-19
AI-driven product innovation: from Recommender Systems to COVID-19
ย 
AI for COVID-19 - Q42020 update
AI for COVID-19 - Q42020 updateAI for COVID-19 - Q42020 update
AI for COVID-19 - Q42020 update
ย 
AI for COVID-19: An online virtual care approach
AI for COVID-19: An online virtual care approachAI for COVID-19: An online virtual care approach
AI for COVID-19: An online virtual care approach
ย 
Lessons learned from building practical deep learning systems
Lessons learned from building practical deep learning systemsLessons learned from building practical deep learning systems
Lessons learned from building practical deep learning systems
ย 
AI for healthcare: Scaling Access and Quality of Care for Everyone
AI for healthcare: Scaling Access and Quality of Care for EveryoneAI for healthcare: Scaling Access and Quality of Care for Everyone
AI for healthcare: Scaling Access and Quality of Care for Everyone
ย 
Towards online universal quality healthcare through AI
Towards online universal quality healthcare through AITowards online universal quality healthcare through AI
Towards online universal quality healthcare through AI
ย 
From one to zero: Going smaller as a growth strategy
From one to zero: Going smaller as a growth strategyFrom one to zero: Going smaller as a growth strategy
From one to zero: Going smaller as a growth strategy
ย 
Learning to speak medicine
Learning to speak medicineLearning to speak medicine
Learning to speak medicine
ย 
ML to cure the world
ML to cure the worldML to cure the world
ML to cure the world
ย 
Recommender Systems In Industry
Recommender Systems In IndustryRecommender Systems In Industry
Recommender Systems In Industry
ย 
Medical advice as a Recommender System
Medical advice as a Recommender SystemMedical advice as a Recommender System
Medical advice as a Recommender System
ย 
Past present and future of Recommender Systems: an Industry Perspective
Past present and future of Recommender Systems: an Industry PerspectivePast present and future of Recommender Systems: an Industry Perspective
Past present and future of Recommender Systems: an Industry Perspective
ย 
Machine Learning for Q&A Sites: The Quora Example
Machine Learning for Q&A Sites: The Quora ExampleMachine Learning for Q&A Sites: The Quora Example
Machine Learning for Q&A Sites: The Quora Example
ย 
Past, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspectivePast, present, and future of Recommender Systems: an industry perspective
Past, present, and future of Recommender Systems: an industry perspective
ย 
Barcelona ML Meetup - Lessons Learned
Barcelona ML Meetup - Lessons LearnedBarcelona ML Meetup - Lessons Learned
Barcelona ML Meetup - Lessons Learned
ย 
10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems10 more lessons learned from building Machine Learning systems
10 more lessons learned from building Machine Learning systems
ย 
Machine Learning to Grow the World's Knowledge
Machine Learning to Grow  the World's KnowledgeMachine Learning to Grow  the World's Knowledge
Machine Learning to Grow the World's Knowledge
ย 
MLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@QuoraMLConf Seattle 2015 - ML@Quora
MLConf Seattle 2015 - ML@Quora
ย 
Lean DevOps - Lessons Learned from Innovation-driven Companies
Lean DevOps - Lessons Learned from Innovation-driven CompaniesLean DevOps - Lessons Learned from Innovation-driven Companies
Lean DevOps - Lessons Learned from Innovation-driven Companies
ย 

Recently uploaded

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
ย 

Recently uploaded (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
ย 

10 more lessons learned from building Machine Learning systems - MLConf

  • 1. 10MoreLessons Learned from building real-life Machine Learning Systems Xavier Amatriain (@xamat) 10/13/2015
  • 3. Our Mission โ€œTo share and grow the worldโ€™s knowledgeโ€ โ— Millions of questions & answers โ— Millions of users โ— Thousands of topics โ— ...
  • 4. Demand What we care about Quality Relevance
  • 5. Lots of data relations
  • 6. ML Applications @ Quora โ— Answer ranking โ— Feed ranking โ— Topic recommendations โ— User recommendations โ— Email digest โ— Ask2Answer โ— Duplicate Questions โ— Related Questions โ— Spam/moderation โ— Trending now โ— ...
  • 7. Models โ— Logistic Regression โ— Elastic Nets โ— Gradient Boosted Decision Trees โ— Random Forests โ— (Deep) Neural Networks โ— LambdaMART โ— Matrix Factorization โ— LDA โ— ...
  • 10. Implicit vs. Explicit โ— Many have acknowledged that implicit feedback is more useful โ— Is implicit feedback really always more useful? โ— If so, why?
  • 11. โ— Implicit data is (usually): โ—‹ More dense, and available for all users โ—‹ Better representative of user behavior vs. user reflection โ—‹ More related to final objective function โ—‹ Better correlated with AB test results โ— E.g. Rating vs watching Implicit vs. Explicit
  • 12. โ— However โ—‹ It is not always the case that direct implicit feedback correlates well with long-term retention โ—‹ E.g. clickbait โ— Solution: โ—‹ Combine different forms of implicit + explicit to better represent long-term goal Implicit vs. Explicit
  • 14. Training a model โ— Model will learn according to: โ—‹ Training data (e.g. implicit and explicit) โ—‹ Target function (e.g. probability of user reading an answer) โ—‹ Metric (e.g. precision vs. recall) โ— Example 1 (made up): โ—‹ Optimize probability of a user going to the cinema to watch a movie and rate it โ€œhighlyโ€ by using purchase history and previous ratings. Use NDCG of the ranking as final metric using only movies rated 4 or higher as positives.
  • 15. Example 2 - Quoraโ€™s feed โ— Training data = implicit + explicit โ— Target function: Value of showing a story to a user ~ weighted sum of actions: v = โˆ‘a va 1{ya = 1} โ—‹ predict probabilities for each action, then compute expected value: v_pred = E[ V | x ] = โˆ‘a va p(a | x) โ— Metric: any ranking metric
  • 17. Supervised/Unsupervised Learning โ— Unsupervised learning as dimensionality reduction โ— Unsupervised learning as feature engineering โ— The โ€œmagicโ€ behind combining unsupervised/supervised learning โ—‹ E.g.1 clustering + knn โ—‹ E.g.2 Matrix Factorization โ–  MF can be interpreted as โ— Unsupervised: โ—‹ Dimensionality Reduction a la PCA โ—‹ Clustering (e.g. NMF) โ— Supervised โ—‹ Labeled targets ~ regression
  • 18. Supervised/Unsupervised Learning โ— One of the โ€œtricksโ€ in Deep Learning is how it combines unsupervised/supervised learning โ—‹ E.g. Stacked Autoencoders โ—‹ E.g. training of convolutional nets
  • 20. Ensembles โ— Netflix Prize was won by an ensemble โ—‹ Initially Bellkor was using GDBTs โ—‹ BigChaos introduced ANN-based ensemble โ— Most practical applications of ML run an ensemble โ—‹ Why wouldnโ€™t you? โ—‹ At least as good as the best of your methods โ—‹ Can add completely different approaches (e. g. CF and content-based) โ—‹ You can use many different models at the ensemble layer: LR, GDBTs, RFs, ANNs...
  • 21. Ensembles & Feature Engineering โ— Ensembles are the way to turn any model into a feature! โ— E.g. Donโ€™t know if the way to go is to use Factorization Machines, Tensor Factorization, or RNNs? โ—‹ Treat each model as a โ€œfeatureโ€ โ—‹ Feed them into an ensemble
  • 22. The Master Algorithm? It definitely is an ensemble!
  • 24. Outputs will be inputs โ— Ensembles turn any model into a feature โ—‹ Thatโ€™s great! โ—‹ That can be a mess! โ— Make sure the output of your model is ready to accept data dependencies โ—‹ E.g. can you easily change the distribution of the value without affecting all other models depending on it? โ— Avoid feedback loops โ— Can you treat your ML infrastructure as you would your software one?
  • 25. ML vs Software โ— Can you treat your ML infrastructure as you would your software one? โ—‹ Yes and No โ— You should apply best Software Engineering practices (e.g. encapsulation, abstraction, cohesion, low couplingโ€ฆ) โ— However, Design Patterns for Machine Learning software are not well known/documented
  • 27. Feature Engineering โ— Main properties of a well-behaved ML feature โ—‹ Reusable โ—‹ Transformable โ—‹ Interpretable โ—‹ Reliable โ— Reusability: You should be able to reuse features in different models, applications, and teams โ— Transformability: Besides directly reusing a feature, it should be easy to use a transformation of it (e.g. log(f), max(f), โˆ‘ft over a time windowโ€ฆ)
  • 28. Feature Engineering โ— Main properties of a well-behaved ML feature โ—‹ Reusable โ—‹ Transformable โ—‹ Interpretable โ—‹ Reliable โ— Interpretability: In order to do any of the previous, you need to be able to understand the meaning of features and interpret their values. โ— Reliability: It should be easy to monitor and detect bugs/issues in features
  • 29. Feature Engineering Example - Quora Answer Ranking What is a good Quora answer? โ€ข truthful โ€ข reusable โ€ข provides explanation โ€ข well formatted โ€ข ...
  • 30. Feature Engineering Example - Quora Answer Ranking How are those dimensions translated into features? โ€ข Features that relate to the answer quality itself โ€ข Interaction features (upvotes/downvotes, clicks, commentsโ€ฆ) โ€ข User features (e.g. expertise in topic)
  • 32. Machine Learning Infrastructure โ— Whenever you develop any ML infrastructure, you need to target two different modes: โ—‹ Mode 1: ML experimentation โ–  Flexibility โ–  Easy-to-use โ–  Reusability โ—‹ Mode 2: ML production โ–  All of the above + performance & scalability โ— Ideally you want the two modes to be as similar as possible โ— How to combine them?
  • 33. Machine Learning Infrastructure: Experimentation & Production โ— Option 1: โ—‹ Favor experimentation and only invest in productionizing once something shows results โ—‹ E.g. Have ML researchers use R and then ask Engineers to implement things in production when they work โ— Option 2: โ—‹ Favor production and have โ€œresearchersโ€ struggle to figure out how to run experiments โ—‹ E.g. Implement highly optimized C++ code and have ML researchers experiment only through data available in logs/DB
  • 34. Machine Learning Infrastructure: Experimentation & Production โ— Option 1: โ—‹ Favor experimentation and only invest in productionazing once something shows results โ—‹ E.g. Have ML researchers use R and then ask Engineers to implement things in production when they work โ— Option 2: โ—‹ Favor production and have โ€œresearchersโ€ struggle to figure out how to run experiments โ—‹ E.g. Implement highly optimized C++ code and have ML researchers experiment only through data available in logs/DB
  • 35. โ— Good intermediate options: โ—‹ Have ML โ€œresearchersโ€ experiment on iPython Notebooks using Python tools (scikit-learn, Theanoโ€ฆ). Use same tools in production whenever possible, implement optimized versions only when needed. โ—‹ Implement abstraction layers on top of optimized implementations so they can be accessed from regular/friendly experimentation tools Machine Learning Infrastructure: Experimentation & Production
  • 37. Model debuggability โ— Value of a model = value it brings to the product โ— Product owners/stakeholders have expectations on the product โ— It is important to answer questions to why did something fail โ— Bridge gap between product design and ML algos โ— Model debuggability is so important it can determine: โ—‹ Particular model to use โ—‹ Features to rely on โ—‹ Implementation of tools
  • 38. Model debuggability โ— E.g. Why am I seeing or not seeing this on my homepage feed?
  • 40. Distributing ML โ— Most of what people do in practice can fit into a multi- core machine โ—‹ Smart data sampling โ—‹ Offline schemes โ—‹ Efficient parallel code โ— Dangers of โ€œeasyโ€ distributed approaches such as Hadoop/Spark โ— Do you care about costs? How about latencies?
  • 41. Distributing ML โ— Example of optimizing computations to fit them into one machine โ—‹ Spark implementation: 6 hours, 15 machines โ—‹ Developer time: 4 days โ—‹ C++ implementation: 10 minutes, 1 machine โ— Most practical applications of Big Data can fit into a (multicore) implementation
  • 43. Data Scientists and ML Engineers โ— We all know the definition of a Data Scientist โ— Where do Data Scientists fit in an organization? โ—‹ Many companies struggling with this โ— Valuable to have strong DS who can bring value from the data โ— Strong DS with solid engineering skills are unicorns and finding them is not scalable โ—‹ DS need engineers to bring things to production โ—‹ Engineers have enough on their plate to be willing to โ€œproductionizeโ€ cool DS projects
  • 44. The data-driven ML innovation funnel Data Research ML Exploration - Product Design AB Testing
  • 45. Data Scientists and ML Engineers โ— Solution: โ—‹ (1) Define different parts of the innovation funnel โ–  Part 1. Data research & hypothesis building -> Data Science โ–  Part 2. ML solution building & implementation -> ML Engineering โ–  Part 3. Online experimentation, AB Testing analysis-> Data Science โ—‹ (2) Broaden the definition of ML Engineers to include from coding experts with high-level ML knowledge to ML experts with good software skills Data Research ML Solution AB Testing Data Science Data Science ML Engineering
  • 47. โ— Make sure you teach your model what you want it to learn โ— Ensembles and the combination of supervised/unsupervised techniques are key in many ML applications โ— Important to focus on feature engineering โ— Be thoughtful about โ—‹ your ML infrastructure/tools โ—‹ about organizing your teams