SlideShare a Scribd company logo
1 of 101
Download to read offline
@louisdorard
#papisconnect
PredictiveAPIs
Student Researcher Data Scientist Developer Non-technical
Machine Learning
Use cases
Limitations
Predictive APIs
Does it work?
Case study
ML Canvas
–Mike Gualtieri, Principal Analyst at Forrester
“Predictive apps are
the next big thing
in app development.”
–Waqar Hasan, VISA
“Predictive is the ‘killer app’ for big
data.”
1. Machine Learning
2. Data
BUT
–McKinsey & Co. (2011)
“A significant constraint on
realizing value from big data will
be a shortage of talent,
particularly of people with deep
expertise in statistics and machine
learning.”
Demystifying

Machine Learning
“Which type of email is this?
— Spam/Ham”


“Which type of email is this?
— Spam/Ham”


Classification
I
O
“Which type of email is this?
— Spam/Ham”


??
“How much is this house worth?
— X $”


-> Regression
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
3 1 860 1950 house 565,000
3 1 1012 1951 house
2 1.5 968 1976 townhouse 447,000
4 1315 1950 house 648,000
3 2 1599 1964 house
3 2 987 1951 townhouse 790,000
1 1 530 2007 condo 122,000
4 2 1574 1964 house 835,000
4 2001 house 855,000
3 2.5 1472 2005 house
4 3.5 1714 2005 townhouse
2 2 1113 1999 condo
1 769 1999 condo 315,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
3 1 860 1950 house 565,000
3 1 1012 1951 house
2 1.5 968 1976 townhouse 447,000
4 1315 1950 house 648,000
3 2 1599 1964 house
3 2 987 1951 townhouse 790,000
1 1 530 2007 condo 122,000
4 2 1574 1964 house 835,000
4 2001 house 855,000
3 2.5 1472 2005 house
4 3.5 1714 2005 townhouse
2 2 1113 1999 condo
1 769 1999 condo 315,000
ML is a set of AI techniques where
“intelligence” is built by referring to
examples
Use cases
• Real-estate
• Spam
• Priority inbox
• Crowd prediction
property price
email spam indicator
email importance indicator
location & context #people
Zillow
Gmail
Gmail
Tranquilien
I. Get more customers
• Reduce churn
• Score leads
• Optimize campaigns
customer churn indicator
customer revenue
customer & campaign interest indicator
II. Serve customers better
• Cross-sell
• Increase engagement
• Optimize pricing
customer & product purchase indicator
user & item interest indicator
product & price #sales
III. Serve customers more efficiently
• Predict demand
• Automate tasks
• Use predictive enterprise apps
context demand
credit application repayment indicator
Predictive enterprise apps
• Priority filtering
• Message routing
• Auto-configuration
message priority indicator
request employee
user & actions settings
RULES
–Katherine Barr, Partner at VC-firm MDV
"Pairing human workers with
machine learning and automation
will transform knowledge work
and unleash new levels of human
productivity and creativity."
Limitations
Need examples of inputs AND outputs
What if not enough data points?
What if similar inputs have dissimilar outputs?
Bedrooms Bathrooms Price ($)
3 2 500,000
3 2 800,000
1 1 300,000
1 1 800,000
Bedrooms Bathrooms Surface (foot²) Year built Price ($)
3 2 800 1950 500,000
3 2 1000 1950 800,000
1 1 500 1950 300,000
1 1 500 2014 800,000
–@louisdorard
“A model can only be as good as
the data it was given to train on”
Predictive APIs:

ML for all
HTML / CSS / JavaScript
HTML / CSS / JavaScript
squarespace.com
The two phases of machine learning:
• TRAIN a model
• PREDICT with a model
The two methods of predictive APIs:
• TRAIN a model
• PREDICT with a model
The two methods of predictive APIs:
• model = create_model(dataset)
• predicted_output =
create_prediction(model, new_input)
The two methods of predictive APIs:
• model = create_model(‘training.csv’)
• predicted_output =
create_prediction(model, new_input)
“Is this email important?
— Yes/No”
“Is this customer going to leave next month?
— Yes/No”
“What is the sentiment of this tweet?
— Positive/Neutral/Negative”
The two phases of machine learning:
• TRAIN a model
• PREDICT with a model
The two phases of machine learning:
• TRAIN a model
• PREDICT with an already existing model
“Is this email spam?
— Yes/No”
Does it work?
How well
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
3 1 860 1950 house 565,000
3 1 1012 1951 house
2 1.5 968 1976 townhouse 447,000
4 1315 1950 house 648,000
3 2 1599 1964 house
3 2 987 1951 townhouse 790,000
1 1 530 2007 condo 122,000
4 2 1574 1964 house 835,000
4 2001 house 855,000
3 2.5 1472 2005 house
4 3.5 1714 2005 townhouse
2 2 1113 1999 condo
1 769 1999 condo 315,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
3 1 860 1950 house 565,000
2 1.5 968 1976 townhouse 447,000
4 1315 1950 house 648,000
3 2 987 1951 townhouse 790,000
1 1 530 2007 condo 122,000
4 2 1574 1964 house 835,000
4 2001 house 855,000
1 769 1999 condo 315,000
3 1 1012 1951 house
3 2 1599 1964 house
3 2.5 1472 2005 house
4 3.5 1714 2005 townhouse
2 2 1113 1999 condo
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
3 1 860 1950 house 565,000
2 1.5 968 1976 townhouse 447,000
4 1315 1950 house 648,000
3 2 987 1951 townhouse 790,000
1 1 530 2007 condo 122,000
4 2 1574 1964 house 835,000
4 2001 house 855,000
1 769 1999 condo 315,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
4 2 1574 1964 house 835,000
3 2 987 1951 townhouse 790,000
4 2001 house 855,000
1 1 530 2007 condo 122,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
4 2 1574 1964 house 835,000
3 2 987 1951 townhouse 790,000
4 2001 house 855,000
1 1 530 2007 condo 122,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($)
4 2 1574 1964 house 835,000 835,000
3 2 987 1951 townhouse 790,000 790,000
4 2001 house 855,000 855,000
1 1 530 2007 condo 122,000 122,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($)
4 2 1574 1964 house 835,000
3 2 987 1951 townhouse 790,000
4 2001 house 855,000
1 1 530 2007 condo 122,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($)
4 2 1574 1964 house 835,000
3 2 987 1951 townhouse 790,000
4 2001 house 855,000
1 1 530 2007 condo 122,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($)
2 1.5 968 1976 townhouse 447,000
3 1 860 1950 house 565,000
1 769 1999 condo 315,000
4 1315 1950 house 648,000
Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($)
4 2 1574 1964 house 818,000 835,000
3 2 987 1951 townhouse 800,000 790,000
4 2001 house 915,000 855,000
1 1 530 2007 condo 100,000 122,000
Price ($) Price ($)
818,000 835,000
800,000 790,000
915,000 855,000
100,000 122,000
Need real-time machine learning?
The two phases of machine learning:
• TRAIN a model
• PREDICT with a model
• Training time
• Prediction time
• Accuracy
Case study:

churn analysis
• Who: SaaS company selling monthly subscription
• Question asked:“Is this customer going to leave
within 1 month?”
• Input: customer
• Output: no-churn (negative) or churn (positive)
• Data collection: history up until 1 month ago
• Baseline: if no usage for more than 15 days then
churn
Learning: OK
but
• How to represent customers?
• What to do after predicting churn?
Customer representation:
• basic info (age, income, etc.)
• usage of service (# times used app, avg time spent,
features used, etc.)
• interactions with customer support (how many,
topics of questions, satisfaction ratings)
Taking action to prevent churn:
• contact customers (in which order?)
• switch to different plan
• give special offer
• no action?
Measuring accuracy:
• #TP (we predict customer churns and he does)
• #FP (we predict customer churns but he doesn’t)
• #FN (we predict customer doesn’t churn but he does)
• Compare to baseline
Estimating Return On Investment:
• Taking action for #TP and #FP customers has a cost
• We earn #TP * success rate * revenue /cust. /month
• Compare to baseline
Machine Learning
Canvas
PREDICTIONS OBJECTIVES DATA
Context
Who will use the predictive system / who will be
affected by it? Provide some background.
Value Proposition
What are we trying to do? E.g. spend less time on
X, increase Y...
Data Sources
Where do/can we get data from? (internal
database, 3rd party API, etc.)
Problem
Question to predict answers to (in plain English)
Input (i.e. question "parameter")
Possible outputs (i.e. "answers")
Type of problem (e.g. classification, regression,
recommendation...)
Baseline
What is an alternative way of making predictions
(e.g. manual rules based on feature values)?
Performance evaluation
Domain-specific / bottom-line metrics for
monitoring performance in production
Prediction accuracy metrics (e.g. MSE if
regression; % accuracy, #FP for classification)
Offline performance evaluation method (e.g.
cross-validation or simple training/test split)
Dataset
How do we collect data (inputs and outputs)?
How many data points?
Features
Used to represent inputs and extracted from
data sources above. Group by types and
mention key features if too many to list all.
Using predictions
When do we make predictions and how many?
What is the time constraint for making those predictions?
How do we use predictions and confidence values?
Learning predictive models
When do we create/update models? With which data / how much?
What is the time constraint for creating a model?
Criteria for deploying model (e.g. minimum performance value — absolute,
relative to baseline or to previous model)
IDEASPECSDEPLOYMENT
BACKGROUND
ENGINE SPECS
INTEGRATION
PREDICTIONS OBJECTIVES DATA
BACKGROUND
ENGINE SPECS
INTEGRATION
PREDICTIONS OBJECTIVES DATA
BACKGROUND End-user Value prop Sources
ENGINE SPECS ML problem Perf eval Preparation
INTEGRATION Using pred Learning modelINTEGRATION Using pred Learning model
Why fill in ML canvas?
• Target the right problem for your company
• Choose right algorithm, infrastructure, or ML
solution
• Guide project management
• Improve team communication
machinelearningcanvas.com
Recap
• Need examples of inputs AND outputs
• Need enough examples
• ML to create value from data
• 2 phases: TRAIN and PREDICT
• Predictive APIs make it more accessible
• Good data is essential
• What do we do with predictions?
• Measure performance with accuracy, time and
bottom-line
• Also: deploy, maintain, improve…
louisdorard.com

More Related Content

Viewers also liked

Simple machine learning for the masses - Konstantin Davydov
Simple machine learning for the masses - Konstantin DavydovSimple machine learning for the masses - Konstantin Davydov
Simple machine learning for the masses - Konstantin DavydovPAPIs.io
 
Leven Court
Leven CourtLeven Court
Leven Courtsolidred
 
ประชาสัมพันธ์ส่งผลงานวิจัย
ประชาสัมพันธ์ส่งผลงานวิจัยประชาสัมพันธ์ส่งผลงานวิจัย
ประชาสัมพันธ์ส่งผลงานวิจัยPatchanida Yadawong
 
The African Skills Mobilization Program_Concept Paper
The African Skills Mobilization Program_Concept PaperThe African Skills Mobilization Program_Concept Paper
The African Skills Mobilization Program_Concept PaperVictor Kyerematen
 
MENTOR Quick Overview
MENTOR Quick OverviewMENTOR Quick Overview
MENTOR Quick OverviewCandace1953
 
The cost of digital newspapers (23-06-08)
The cost of digital newspapers   (23-06-08)The cost of digital newspapers   (23-06-08)
The cost of digital newspapers (23-06-08)Richard Davies
 
S10200622 w5 p3_lesson plan_22 apr 13
S10200622 w5 p3_lesson plan_22 apr 13S10200622 w5 p3_lesson plan_22 apr 13
S10200622 w5 p3_lesson plan_22 apr 13bchszeto
 
Networking Online using Linkedin
Networking Online using LinkedinNetworking Online using Linkedin
Networking Online using LinkedinAmar Trivedi
 

Viewers also liked (15)

Simple machine learning for the masses - Konstantin Davydov
Simple machine learning for the masses - Konstantin DavydovSimple machine learning for the masses - Konstantin Davydov
Simple machine learning for the masses - Konstantin Davydov
 
Leven Court
Leven CourtLeven Court
Leven Court
 
Yourprezi
YourpreziYourprezi
Yourprezi
 
Archivo012
Archivo012Archivo012
Archivo012
 
ประชาสัมพันธ์ส่งผลงานวิจัย
ประชาสัมพันธ์ส่งผลงานวิจัยประชาสัมพันธ์ส่งผลงานวิจัย
ประชาสัมพันธ์ส่งผลงานวิจัย
 
The African Skills Mobilization Program_Concept Paper
The African Skills Mobilization Program_Concept PaperThe African Skills Mobilization Program_Concept Paper
The African Skills Mobilization Program_Concept Paper
 
Secep#1 05-11-2 nd
Secep#1 05-11-2 ndSecep#1 05-11-2 nd
Secep#1 05-11-2 nd
 
MENTOR Quick Overview
MENTOR Quick OverviewMENTOR Quick Overview
MENTOR Quick Overview
 
E Homes
E HomesE Homes
E Homes
 
Self introduction
Self introductionSelf introduction
Self introduction
 
The cost of digital newspapers (23-06-08)
The cost of digital newspapers   (23-06-08)The cost of digital newspapers   (23-06-08)
The cost of digital newspapers (23-06-08)
 
S10200622 w5 p3_lesson plan_22 apr 13
S10200622 w5 p3_lesson plan_22 apr 13S10200622 w5 p3_lesson plan_22 apr 13
S10200622 w5 p3_lesson plan_22 apr 13
 
Networking Online using Linkedin
Networking Online using LinkedinNetworking Online using Linkedin
Networking Online using Linkedin
 
October 17
October 17October 17
October 17
 
ใบงานที่2..
ใบงานที่2..ใบงานที่2..
ใบงานที่2..
 

Similar to Demystifying Machine Learning

Data Summit Brussels: Introduction
Data Summit Brussels: IntroductionData Summit Brussels: Introduction
Data Summit Brussels: IntroductionLouis Dorard
 
From data to AI with the Machine Learning Canvas by Louis Dorard Slides
From data to AI with the Machine Learning Canvas by Louis  Dorard SlidesFrom data to AI with the Machine Learning Canvas by Louis  Dorard Slides
From data to AI with the Machine Learning Canvas by Louis Dorard SlidesBig Data Spain
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
Why And How To Leverage Predictive APIs In Any Application
Why And How To Leverage Predictive APIs In Any Application Why And How To Leverage Predictive APIs In Any Application
Why And How To Leverage Predictive APIs In Any Application ProgrammableWeb
 
From Data to AI with the Machine Learning Canvas
From Data to AI with the Machine Learning CanvasFrom Data to AI with the Machine Learning Canvas
From Data to AI with the Machine Learning CanvasLouis Dorard
 
Predictive APIs at APIdays Berlin
Predictive APIs at APIdays BerlinPredictive APIs at APIdays Berlin
Predictive APIs at APIdays BerlinLouis Dorard
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
What Is Religion And Its Role In Society Free Essay Ex
What Is Religion And Its Role In Society Free Essay ExWhat Is Religion And Its Role In Society Free Essay Ex
What Is Religion And Its Role In Society Free Essay ExAparna Harrison
 
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily ForumRyan Slack
 
Tuskegee Airmen Essay Thesis. Online assignment writing service.
Tuskegee Airmen Essay Thesis. Online assignment writing service.Tuskegee Airmen Essay Thesis. Online assignment writing service.
Tuskegee Airmen Essay Thesis. Online assignment writing service.April Eide
 
BSSML17 - Introduction, Models, Evaluations
BSSML17 - Introduction, Models, EvaluationsBSSML17 - Introduction, Models, Evaluations
BSSML17 - Introduction, Models, EvaluationsBigML, Inc
 
Multi Family Design & Development in LA
Multi Family Design & Development in LAMulti Family Design & Development in LA
Multi Family Design & Development in LAgarrjacobs
 
Design-led Approach to Big Data
Design-led Approach to Big Data Design-led Approach to Big Data
Design-led Approach to Big Data ChrysSullivan
 
Rethinking residential real estate: 2023 and beyond
Rethinking residential real estate: 2023 and beyondRethinking residential real estate: 2023 and beyond
Rethinking residential real estate: 2023 and beyondAppFolio
 
HouseCanary - PCBC Presentation
HouseCanary - PCBC PresentationHouseCanary - PCBC Presentation
HouseCanary - PCBC PresentationHouseCanary
 
Solution presentation demonstation template
Solution presentation demonstation templateSolution presentation demonstation template
Solution presentation demonstation templatebptowers
 
Creative Ways to Find Money for the Facilities That You Desperately Need
Creative Ways to Find Money for the Facilities That You Desperately NeedCreative Ways to Find Money for the Facilities That You Desperately Need
Creative Ways to Find Money for the Facilities That You Desperately NeedTom O'Rourke
 
Industry Lifecycles | Raph Koster
Industry Lifecycles | Raph KosterIndustry Lifecycles | Raph Koster
Industry Lifecycles | Raph KosterJessica Tams
 
MEMSI June: DE2 - What can you do for your customer?
MEMSI June: DE2 - What can you do for your customer?MEMSI June: DE2 - What can you do for your customer?
MEMSI June: DE2 - What can you do for your customer?Elaine Chen
 

Similar to Demystifying Machine Learning (20)

Data Summit Brussels: Introduction
Data Summit Brussels: IntroductionData Summit Brussels: Introduction
Data Summit Brussels: Introduction
 
From data to AI with the Machine Learning Canvas by Louis Dorard Slides
From data to AI with the Machine Learning Canvas by Louis  Dorard SlidesFrom data to AI with the Machine Learning Canvas by Louis  Dorard Slides
From data to AI with the Machine Learning Canvas by Louis Dorard Slides
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Why And How To Leverage Predictive APIs In Any Application
Why And How To Leverage Predictive APIs In Any Application Why And How To Leverage Predictive APIs In Any Application
Why And How To Leverage Predictive APIs In Any Application
 
From Data to AI with the Machine Learning Canvas
From Data to AI with the Machine Learning CanvasFrom Data to AI with the Machine Learning Canvas
From Data to AI with the Machine Learning Canvas
 
Predictive APIs at APIdays Berlin
Predictive APIs at APIdays BerlinPredictive APIs at APIdays Berlin
Predictive APIs at APIdays Berlin
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
What Is Religion And Its Role In Society Free Essay Ex
What Is Religion And Its Role In Society Free Essay ExWhat Is Religion And Its Role In Society Free Essay Ex
What Is Religion And Its Role In Society Free Essay Ex
 
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum
3rd annual Marcus & Millichap / IPA West and Central Florida Multifamily Forum
 
Tuskegee Airmen Essay Thesis. Online assignment writing service.
Tuskegee Airmen Essay Thesis. Online assignment writing service.Tuskegee Airmen Essay Thesis. Online assignment writing service.
Tuskegee Airmen Essay Thesis. Online assignment writing service.
 
BSSML17 - Introduction, Models, Evaluations
BSSML17 - Introduction, Models, EvaluationsBSSML17 - Introduction, Models, Evaluations
BSSML17 - Introduction, Models, Evaluations
 
Multi Family Design & Development in LA
Multi Family Design & Development in LAMulti Family Design & Development in LA
Multi Family Design & Development in LA
 
Design-led Approach to Big Data
Design-led Approach to Big Data Design-led Approach to Big Data
Design-led Approach to Big Data
 
Rethinking residential real estate: 2023 and beyond
Rethinking residential real estate: 2023 and beyondRethinking residential real estate: 2023 and beyond
Rethinking residential real estate: 2023 and beyond
 
HouseCanary - PCBC Presentation
HouseCanary - PCBC PresentationHouseCanary - PCBC Presentation
HouseCanary - PCBC Presentation
 
Kibana_Data_analyst_7.1.0.pdf
Kibana_Data_analyst_7.1.0.pdfKibana_Data_analyst_7.1.0.pdf
Kibana_Data_analyst_7.1.0.pdf
 
Solution presentation demonstation template
Solution presentation demonstation templateSolution presentation demonstation template
Solution presentation demonstation template
 
Creative Ways to Find Money for the Facilities That You Desperately Need
Creative Ways to Find Money for the Facilities That You Desperately NeedCreative Ways to Find Money for the Facilities That You Desperately Need
Creative Ways to Find Money for the Facilities That You Desperately Need
 
Industry Lifecycles | Raph Koster
Industry Lifecycles | Raph KosterIndustry Lifecycles | Raph Koster
Industry Lifecycles | Raph Koster
 
MEMSI June: DE2 - What can you do for your customer?
MEMSI June: DE2 - What can you do for your customer?MEMSI June: DE2 - What can you do for your customer?
MEMSI June: DE2 - What can you do for your customer?
 

Recently uploaded

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 

Recently uploaded (20)

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 

Demystifying Machine Learning

  • 2.
  • 4.
  • 5. Student Researcher Data Scientist Developer Non-technical
  • 6.
  • 7.
  • 8.
  • 9. Machine Learning Use cases Limitations Predictive APIs Does it work? Case study ML Canvas
  • 10. –Mike Gualtieri, Principal Analyst at Forrester “Predictive apps are the next big thing in app development.”
  • 11. –Waqar Hasan, VISA “Predictive is the ‘killer app’ for big data.”
  • 13. BUT
  • 14. –McKinsey & Co. (2011) “A significant constraint on realizing value from big data will be a shortage of talent, particularly of people with deep expertise in statistics and machine learning.”
  • 16.
  • 17. “Which type of email is this? — Spam/Ham” 

  • 18. “Which type of email is this? — Spam/Ham” 
 Classification
  • 19. I O “Which type of email is this? — Spam/Ham” 

  • 20. ??
  • 21.
  • 22. “How much is this house worth? — X $” 
 -> Regression
  • 23. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 3 1 860 1950 house 565,000 3 1 1012 1951 house 2 1.5 968 1976 townhouse 447,000 4 1315 1950 house 648,000 3 2 1599 1964 house 3 2 987 1951 townhouse 790,000 1 1 530 2007 condo 122,000 4 2 1574 1964 house 835,000 4 2001 house 855,000 3 2.5 1472 2005 house 4 3.5 1714 2005 townhouse 2 2 1113 1999 condo 1 769 1999 condo 315,000
  • 24. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 3 1 860 1950 house 565,000 3 1 1012 1951 house 2 1.5 968 1976 townhouse 447,000 4 1315 1950 house 648,000 3 2 1599 1964 house 3 2 987 1951 townhouse 790,000 1 1 530 2007 condo 122,000 4 2 1574 1964 house 835,000 4 2001 house 855,000 3 2.5 1472 2005 house 4 3.5 1714 2005 townhouse 2 2 1113 1999 condo 1 769 1999 condo 315,000
  • 25.
  • 26. ML is a set of AI techniques where “intelligence” is built by referring to examples
  • 27.
  • 29. • Real-estate • Spam • Priority inbox • Crowd prediction property price email spam indicator email importance indicator location & context #people Zillow Gmail Gmail Tranquilien
  • 30. I. Get more customers • Reduce churn • Score leads • Optimize campaigns customer churn indicator customer revenue customer & campaign interest indicator
  • 31. II. Serve customers better • Cross-sell • Increase engagement • Optimize pricing customer & product purchase indicator user & item interest indicator product & price #sales
  • 32. III. Serve customers more efficiently • Predict demand • Automate tasks • Use predictive enterprise apps context demand credit application repayment indicator
  • 33. Predictive enterprise apps • Priority filtering • Message routing • Auto-configuration message priority indicator request employee user & actions settings RULES
  • 34. –Katherine Barr, Partner at VC-firm MDV "Pairing human workers with machine learning and automation will transform knowledge work and unleash new levels of human productivity and creativity."
  • 36.
  • 37.
  • 38.
  • 39.
  • 40. Need examples of inputs AND outputs
  • 41.
  • 42. What if not enough data points?
  • 43.
  • 44. What if similar inputs have dissimilar outputs?
  • 45.
  • 46. Bedrooms Bathrooms Price ($) 3 2 500,000 3 2 800,000 1 1 300,000 1 1 800,000
  • 47. Bedrooms Bathrooms Surface (foot²) Year built Price ($) 3 2 800 1950 500,000 3 2 1000 1950 800,000 1 1 500 1950 300,000 1 1 500 2014 800,000
  • 48. –@louisdorard “A model can only be as good as the data it was given to train on”
  • 50.
  • 51. HTML / CSS / JavaScript
  • 52. HTML / CSS / JavaScript
  • 54.
  • 55.
  • 56. The two phases of machine learning: • TRAIN a model • PREDICT with a model
  • 57. The two methods of predictive APIs: • TRAIN a model • PREDICT with a model
  • 58. The two methods of predictive APIs: • model = create_model(dataset) • predicted_output = create_prediction(model, new_input)
  • 59. The two methods of predictive APIs: • model = create_model(‘training.csv’) • predicted_output = create_prediction(model, new_input)
  • 60.
  • 61.
  • 62. “Is this email important? — Yes/No”
  • 63. “Is this customer going to leave next month? — Yes/No”
  • 64. “What is the sentiment of this tweet? — Positive/Neutral/Negative”
  • 65. The two phases of machine learning: • TRAIN a model • PREDICT with a model
  • 66. The two phases of machine learning: • TRAIN a model • PREDICT with an already existing model
  • 67. “Is this email spam? — Yes/No”
  • 69. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 3 1 860 1950 house 565,000 3 1 1012 1951 house 2 1.5 968 1976 townhouse 447,000 4 1315 1950 house 648,000 3 2 1599 1964 house 3 2 987 1951 townhouse 790,000 1 1 530 2007 condo 122,000 4 2 1574 1964 house 835,000 4 2001 house 855,000 3 2.5 1472 2005 house 4 3.5 1714 2005 townhouse 2 2 1113 1999 condo 1 769 1999 condo 315,000
  • 70. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 3 1 860 1950 house 565,000 2 1.5 968 1976 townhouse 447,000 4 1315 1950 house 648,000 3 2 987 1951 townhouse 790,000 1 1 530 2007 condo 122,000 4 2 1574 1964 house 835,000 4 2001 house 855,000 1 769 1999 condo 315,000 3 1 1012 1951 house 3 2 1599 1964 house 3 2.5 1472 2005 house 4 3.5 1714 2005 townhouse 2 2 1113 1999 condo
  • 71. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 3 1 860 1950 house 565,000 2 1.5 968 1976 townhouse 447,000 4 1315 1950 house 648,000 3 2 987 1951 townhouse 790,000 1 1 530 2007 condo 122,000 4 2 1574 1964 house 835,000 4 2001 house 855,000 1 769 1999 condo 315,000
  • 72. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000 4 2 1574 1964 house 835,000 3 2 987 1951 townhouse 790,000 4 2001 house 855,000 1 1 530 2007 condo 122,000
  • 73. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 4 2 1574 1964 house 835,000 3 2 987 1951 townhouse 790,000 4 2001 house 855,000 1 1 530 2007 condo 122,000 Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000
  • 74. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000 Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($) 4 2 1574 1964 house 835,000 835,000 3 2 987 1951 townhouse 790,000 790,000 4 2001 house 855,000 855,000 1 1 530 2007 condo 122,000 122,000
  • 75. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000 Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($) 4 2 1574 1964 house 835,000 3 2 987 1951 townhouse 790,000 4 2001 house 855,000 1 1 530 2007 condo 122,000
  • 76. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000 Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($) 4 2 1574 1964 house 835,000 3 2 987 1951 townhouse 790,000 4 2001 house 855,000 1 1 530 2007 condo 122,000
  • 77. Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) 2 1.5 968 1976 townhouse 447,000 3 1 860 1950 house 565,000 1 769 1999 condo 315,000 4 1315 1950 house 648,000 Bedrooms Bathrooms Surface (foot²) Year built Type Price ($) Price ($) 4 2 1574 1964 house 818,000 835,000 3 2 987 1951 townhouse 800,000 790,000 4 2001 house 915,000 855,000 1 1 530 2007 condo 100,000 122,000
  • 78. Price ($) Price ($) 818,000 835,000 800,000 790,000 915,000 855,000 100,000 122,000
  • 80. The two phases of machine learning: • TRAIN a model • PREDICT with a model
  • 81. • Training time • Prediction time • Accuracy
  • 83. • Who: SaaS company selling monthly subscription • Question asked:“Is this customer going to leave within 1 month?” • Input: customer • Output: no-churn (negative) or churn (positive) • Data collection: history up until 1 month ago • Baseline: if no usage for more than 15 days then churn
  • 84. Learning: OK but • How to represent customers? • What to do after predicting churn?
  • 85. Customer representation: • basic info (age, income, etc.) • usage of service (# times used app, avg time spent, features used, etc.) • interactions with customer support (how many, topics of questions, satisfaction ratings)
  • 86. Taking action to prevent churn: • contact customers (in which order?) • switch to different plan • give special offer • no action?
  • 87. Measuring accuracy: • #TP (we predict customer churns and he does) • #FP (we predict customer churns but he doesn’t) • #FN (we predict customer doesn’t churn but he does) • Compare to baseline
  • 88. Estimating Return On Investment: • Taking action for #TP and #FP customers has a cost • We earn #TP * success rate * revenue /cust. /month • Compare to baseline
  • 90.
  • 91. PREDICTIONS OBJECTIVES DATA Context Who will use the predictive system / who will be affected by it? Provide some background. Value Proposition What are we trying to do? E.g. spend less time on X, increase Y... Data Sources Where do/can we get data from? (internal database, 3rd party API, etc.) Problem Question to predict answers to (in plain English) Input (i.e. question "parameter") Possible outputs (i.e. "answers") Type of problem (e.g. classification, regression, recommendation...) Baseline What is an alternative way of making predictions (e.g. manual rules based on feature values)? Performance evaluation Domain-specific / bottom-line metrics for monitoring performance in production Prediction accuracy metrics (e.g. MSE if regression; % accuracy, #FP for classification) Offline performance evaluation method (e.g. cross-validation or simple training/test split) Dataset How do we collect data (inputs and outputs)? How many data points? Features Used to represent inputs and extracted from data sources above. Group by types and mention key features if too many to list all. Using predictions When do we make predictions and how many? What is the time constraint for making those predictions? How do we use predictions and confidence values? Learning predictive models When do we create/update models? With which data / how much? What is the time constraint for creating a model? Criteria for deploying model (e.g. minimum performance value — absolute, relative to baseline or to previous model) IDEASPECSDEPLOYMENT
  • 94. PREDICTIONS OBJECTIVES DATA BACKGROUND End-user Value prop Sources ENGINE SPECS ML problem Perf eval Preparation INTEGRATION Using pred Learning modelINTEGRATION Using pred Learning model
  • 95. Why fill in ML canvas? • Target the right problem for your company • Choose right algorithm, infrastructure, or ML solution • Guide project management • Improve team communication
  • 97. Recap
  • 98. • Need examples of inputs AND outputs • Need enough examples
  • 99. • ML to create value from data • 2 phases: TRAIN and PREDICT • Predictive APIs make it more accessible • Good data is essential • What do we do with predictions? • Measure performance with accuracy, time and bottom-line • Also: deploy, maintain, improve…
  • 100.