SlideShare a Scribd company logo
Decision Making Based on Machine Learning
at .
Jesper Richter-Reichhelm (@jrirei)
In the beginning there was void and every customer was
seeing the same version of the website.
But then came along a Product manager and spoke:
“What is this?
I need to be able to test variants of our products.
I will introduce something!”
And she took an off-the-shelf solution and now every
customer could see a different version of the website.
And after it was done she was happy and

life was good.
But then came along a Data Scientist and spoke:
“What is this?
I need to be able to add complex algorithms

to steer business processes.
I will take this and make it better!”
And he hacked together wrote a complex decision system
that he would call Smart Gateway because it could steer
processes throughout all the company.
And after it was done both were happy and

life was good.
But then came along a Software Engineer and spoke:
“What is this?
If there would come just one strong wind,

everything would fall down and crash.
I will take this and make it better!”
And he would take the Smart Gateway and rewrite it from
scratch refactor it a bit to make it production ready.
And after it was done all three were happy and

life was good.
But then all three looked at the thing that they have
created together and spoke:
“What is this?
How did this become something so much more powerful

than what we set out to do in the first place?”
“Actually we have truly build a …”
Relevant fashion for men
GOTO Night: Decision Making Based on Machine Learning
Day 1
Day 1 Day 3
Day 1 Day 3 Day 4
Day 1 Day 3 Day 4 Day 5
Customer journey is quite “long”
Day 1 Day 3 Day 4 Day 5 Day 19
2-3 weeks to know what we’ve sold
Order economics demand complex tradeoffs
Cart Cost
Goods kept
Returned
Order economics demand complex tradeoffs
Cart Cost
operational profit
Goods kept
Buying
Logistics
Service
Other
Science

=

Data & Tech
Art

=

Stylist team
King

=

Customer
Science

=

Data & Tech
Art

=

Stylist team
Cart Cost
Data Driven Vision
AB Tests
Chapter 1 driven by Product
AB Tests with an external service
AB Tests with an external service
Canary testing with nginx
Canary testing with nginx
GOTO Night: Decision Making Based on Machine Learning
Problem: Parallel experiments with canary tests
A B
Problem: Parallel experiments with canary tests
AB BAAA BB
Problem: External tool can only track conversion
Problem: External tool can only track conversion
Day 1 Day 3 Day 4 Day 5 Day 19
2-3 weeks to know what we’ve sold
Problem: External tool does not support decision points
Cart Cost
operational profit
Goods kept
Buying
Logistics
Service
Other
Problem: External tool does not support decision points
Smart Gateway
Chapter 2 driven by Data Science
Goals
• Integration with IT platform
• Decision Points yield persistent results
• Complex decision making logic to allow process steering
• Configurable for flexibility
Smart Gateway is integrated in platform
Service
Service Smart Gateway
Service
REST
Black Box
Smart Gateways have persistence
Service
Service Smart Gateway
Service
Black Box
SQL
Smart Gateways are “smart”
• Data Scientists create an algorithm, called Decider
• Algorithm can have DWH access
• Algorithm is packed in a Docker container and listens to http calls
Smart Gateways are “smart”
Service
Service Smart Gateway
Service
Black Box
SQL
Smart Gateways are “smart”
Service
Service Smart Gateway
Service
Decider
Decider
Decider
DWH
http
SQL
Smart Gateways are configurable
• Sampling: routing of traffic to experiments
• Experiments can opt in independently
• Experiments define groups (random distribution)
• Groups map to a Decider
Smart Gateways are configurable
Decider
Decider
Decider
Decider
Decider
Decider
Sampling
Experiment
Experiment
25%
50% of “DE”
default
“A”
“B”
Age < 30 ? “A” : “B”
Age < 35 ? “A” : “B”
<something smart>
<some default>
50%
50%
50%
30%
20%
GOTO Night: Decision Making Based on Machine Learning
Problem: Data is not real time and can’t be consistent
Service
Service Smart Gateway
Service
Decider
Decider
Decider
DWH
data import
SQL
Problem: One single point of failure
Service
Service Smart Gateway
Service
Decider
Decider
Decider
DWH
SQL
all on one host
default

decision
Smart Gateway v2
Chapter 3 driven by IT
Goals
• Separation of concerns
• Data access is real time
• Production ready setup
Created a new team to shift responsibilities
Stylist Support
Logistics Support
Web
Data / ML
BI
Created a new team to shift responsibilities
Stylist Support
Logistics Support
Web
Data Delivery Data / ML
BI
Created a new team to shift responsibilities
Service
Service Smart Gateway
Service
Decider
Decider
Decider
DWH
SQL
Configuration is now DB based
• It simply got too big
• Decision Point
• n Experiments per Decision Point
• n Deciders per Experiment
• REST API to change config on the fly
Smart Gateways do “data enrichment”
• Deciders become pure functions
• Before sampling of traffic, call is enriched with data
• Enrichment is configurable
• Enriched data can be used to decide if experiments “opt in”
Smart Gateways now do “data enrichment”
Enrichment Sampling Experiment
Decider
Decider
DeciderRetrieve data:
• REST call
• constant value
• LocalStore (K/V)
• JS Script
Smart Gateways become production ready
• Professional Docker setup
• Orchestrating Docker containers via Kubernetes
Decider
Decider
Decider
Smart Gateway
Smart Gateways become production ready
Service
Service Smart Gateway
Service
Decider
Decider
Decider
SQL
Service
Service
SQL Redis
Data Job
Example use cases
• AB testing
• Decision Points
• User discrimination to prepayment
• … and many more
• Also very nice: shadow mode
GOTO Night: Decision Making Based on Machine Learning
Smart Gateways
Service
Service Smart GatewaySmart Gateway
Service
DeciderDecider
DeciderDecider
DeciderDecider
Service
Service
RedisSQL
Data Job
Smart Gateways are a runtime environment for pure functions
Service
Service Smart GatewaySmart Gateway
Service
Decider𝛌
Decider𝛌
Decider𝛌
Service
Service
RedisSQL
Data Job
Delivery platform for pure functions
Chapter 4 driven by Product, Data Science, and IT
Our own delivery platform for algorithms
Example 1: Supporting our stylists in decision making
Filters…
Customer
Info
Order /
Basket
Available Stock
• For every order
• For every article in stock
• Calculate a score how likely
customer is to keep this article
• Score is used to encourage or
discourage stylist to pick an article
Example 2: Scanning return slips
• External partner would take too
long
• Implemented algorithm on our own
• Every scan is handled via Smart
Gateway
• Information on follow on orders
is now available
Filters…
Customer
Info
Order /
Basket
Available Stock
Smart Gateway
120 sec execution time3 MB data (input / output)
Smart Gateway became asynchronous (if necessary)
Service
Service Smart GatewaySmart Gateway
Service
Decider𝛌
Decider𝛌
Decider𝛌
Service
Service
RedisSQL
Data Job
AWESOME
Conclusion
By me
But then all three looked at the thing that they have
created together and spoke:
“What is this?
How did this become something so much more powerful

than what we set out to do in the first place?”
“Actually we have truly build a system that can run

just any pure function.
AB tests and process steering are just the beginning.
Maybe speech recognition is next. Or maybe…”
With that they started to brainstorm all the cool things
they could do in the future.
Time and the next Hackathon will tell

what they made out of it.
And maybe I can come back next year

to tell you all about it.
The End
Questions?
Jesper Richter-Reichhelm (@jrirei)

More Related Content

What's hot (9)

PPTX
You've Got No UI?! (Agile Data Teams)
Mark Barber
 
PPTX
Scaling Your Architecture for the Long Term
Randy Shoup
 
PDF
Overcoming DataOps hurdles for ML in Production
Sandeep Uttamchandani
 
PPTX
Minimal Viable Architecture - Silicon Slopes 2020
Randy Shoup
 
PDF
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Looker
 
PPTX
Service Architectures at Scale
Randy Shoup
 
PPTX
A tale of agile - CAS2019
Javier Salinas Polo
 
PPTX
Embedding Data & Analytics With Looker
Looker
 
PPTX
Five Steps to DevOps Success - Avoiding the High Cost of Downtime
Anand Akela
 
You've Got No UI?! (Agile Data Teams)
Mark Barber
 
Scaling Your Architecture for the Long Term
Randy Shoup
 
Overcoming DataOps hurdles for ML in Production
Sandeep Uttamchandani
 
Minimal Viable Architecture - Silicon Slopes 2020
Randy Shoup
 
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Looker
 
Service Architectures at Scale
Randy Shoup
 
A tale of agile - CAS2019
Javier Salinas Polo
 
Embedding Data & Analytics With Looker
Looker
 
Five Steps to DevOps Success - Avoiding the High Cost of Downtime
Anand Akela
 

Similar to GOTO Night: Decision Making Based on Machine Learning (20)

PDF
Einführung in Amazon Machine Learning - AWS Machine Learning Web Day
AWS Germany
 
PDF
IBM Big Data References
Rob Thomas
 
PPSX
Maximize Big Data ROI via Best of Breed Patterns and Practices
Jeff Bertman
 
PDF
IBM Big Data Success Stories
IBM India Smarter Computing
 
PDF
DNA - Einstein - Data science ja bigdata
Rolf Koski
 
PDF
Amazon Machine Learning #AWSLoft Berlin
AWS Germany
 
PDF
Platforming the Major Analytic Use Cases for Modern Engineering
DATAVERSITY
 
PPTX
The Future for Smart Technology Architects
Paul Preiss
 
PDF
Learning from Machine Intelligence: The Next Wave of Digital Transformation
Orange Silicon Valley
 
PDF
Big Data, Physics, and the Industrial Internet: How Modeling & Analytics are ...
mattdenesuk
 
PDF
Meetup 10 here&now: Megatris Comp design method (Part 1)
Megatris Comp
 
PDF
Meetup 10 here&amp;now_megatriscomp_design_methodparti_v1
Francesco Rago
 
PDF
From Business Idea to Successful Delivery by Serhiy Haziyev & Olha Hrytsay, S...
SoftServe
 
PPTX
The new dominant companies are running on data
SnapLogic
 
PDF
Maximizing Big Data ROI via Best of Breed Technology Patterns and Practices -...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Big Data LDN 2017: The New Dominant Companies Are Running on Data
Matt Stubbs
 
PDF
Big Data LDN 2017: The New Dominant Companies Are Running on Data
Matt Stubbs
 
PDF
The Changing Face of Government IT
Dustin Haisler
 
PDF
Keynote: Trends in Modern Application Development - Gilly Dekel, IBM
Codemotion Tel Aviv
 
PPT
Gtl Corporate Presentation
Dipankar_Das
 
Einführung in Amazon Machine Learning - AWS Machine Learning Web Day
AWS Germany
 
IBM Big Data References
Rob Thomas
 
Maximize Big Data ROI via Best of Breed Patterns and Practices
Jeff Bertman
 
IBM Big Data Success Stories
IBM India Smarter Computing
 
DNA - Einstein - Data science ja bigdata
Rolf Koski
 
Amazon Machine Learning #AWSLoft Berlin
AWS Germany
 
Platforming the Major Analytic Use Cases for Modern Engineering
DATAVERSITY
 
The Future for Smart Technology Architects
Paul Preiss
 
Learning from Machine Intelligence: The Next Wave of Digital Transformation
Orange Silicon Valley
 
Big Data, Physics, and the Industrial Internet: How Modeling & Analytics are ...
mattdenesuk
 
Meetup 10 here&now: Megatris Comp design method (Part 1)
Megatris Comp
 
Meetup 10 here&amp;now_megatriscomp_design_methodparti_v1
Francesco Rago
 
From Business Idea to Successful Delivery by Serhiy Haziyev & Olha Hrytsay, S...
SoftServe
 
The new dominant companies are running on data
SnapLogic
 
Maximizing Big Data ROI via Best of Breed Technology Patterns and Practices -...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Big Data LDN 2017: The New Dominant Companies Are Running on Data
Matt Stubbs
 
Big Data LDN 2017: The New Dominant Companies Are Running on Data
Matt Stubbs
 
The Changing Face of Government IT
Dustin Haisler
 
Keynote: Trends in Modern Application Development - Gilly Dekel, IBM
Codemotion Tel Aviv
 
Gtl Corporate Presentation
Dipankar_Das
 
Ad

Recently uploaded (20)

PDF
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PPTX
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PPTX
PowerISO Crack 2025 – Free Download Full Version with Serial Key [Latest](1)....
HyperPc soft
 
PDF
interacting-with-ai-2023---module-2---session-3---handout.pdf
cniclsh1
 
PDF
Dealing with JSON in the relational world
Andres Almiray
 
PPTX
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PowerISO Crack 2025 – Free Download Full Version with Serial Key [Latest](1)....
HyperPc soft
 
interacting-with-ai-2023---module-2---session-3---handout.pdf
cniclsh1
 
Dealing with JSON in the relational world
Andres Almiray
 
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
Ad

GOTO Night: Decision Making Based on Machine Learning

  • 1. Decision Making Based on Machine Learning at . Jesper Richter-Reichhelm (@jrirei)
  • 2. In the beginning there was void and every customer was seeing the same version of the website.
  • 3. But then came along a Product manager and spoke:
  • 4. “What is this? I need to be able to test variants of our products. I will introduce something!”
  • 5. And she took an off-the-shelf solution and now every customer could see a different version of the website. And after it was done she was happy and
 life was good.
  • 6. But then came along a Data Scientist and spoke:
  • 7. “What is this? I need to be able to add complex algorithms
 to steer business processes. I will take this and make it better!”
  • 8. And he hacked together wrote a complex decision system that he would call Smart Gateway because it could steer processes throughout all the company. And after it was done both were happy and
 life was good.
  • 9. But then came along a Software Engineer and spoke:
  • 10. “What is this? If there would come just one strong wind,
 everything would fall down and crash. I will take this and make it better!”
  • 11. And he would take the Smart Gateway and rewrite it from scratch refactor it a bit to make it production ready. And after it was done all three were happy and
 life was good.
  • 12. But then all three looked at the thing that they have created together and spoke:
  • 13. “What is this? How did this become something so much more powerful
 than what we set out to do in the first place?”
  • 14. “Actually we have truly build a …”
  • 17. Day 1
  • 19. Day 1 Day 3 Day 4
  • 20. Day 1 Day 3 Day 4 Day 5
  • 21. Customer journey is quite “long” Day 1 Day 3 Day 4 Day 5 Day 19 2-3 weeks to know what we’ve sold
  • 22. Order economics demand complex tradeoffs Cart Cost Goods kept Returned
  • 23. Order economics demand complex tradeoffs Cart Cost operational profit Goods kept Buying Logistics Service Other
  • 24. Science = Data & Tech Art = Stylist team King = Customer
  • 25. Science = Data & Tech Art = Stylist team Cart Cost Data Driven Vision
  • 26. AB Tests Chapter 1 driven by Product
  • 27. AB Tests with an external service
  • 28. AB Tests with an external service
  • 32. Problem: Parallel experiments with canary tests A B
  • 33. Problem: Parallel experiments with canary tests AB BAAA BB
  • 34. Problem: External tool can only track conversion
  • 35. Problem: External tool can only track conversion Day 1 Day 3 Day 4 Day 5 Day 19 2-3 weeks to know what we’ve sold
  • 36. Problem: External tool does not support decision points Cart Cost operational profit Goods kept Buying Logistics Service Other
  • 37. Problem: External tool does not support decision points
  • 38. Smart Gateway Chapter 2 driven by Data Science
  • 39. Goals • Integration with IT platform • Decision Points yield persistent results • Complex decision making logic to allow process steering • Configurable for flexibility
  • 40. Smart Gateway is integrated in platform Service Service Smart Gateway Service REST Black Box
  • 41. Smart Gateways have persistence Service Service Smart Gateway Service Black Box SQL
  • 42. Smart Gateways are “smart” • Data Scientists create an algorithm, called Decider • Algorithm can have DWH access • Algorithm is packed in a Docker container and listens to http calls
  • 43. Smart Gateways are “smart” Service Service Smart Gateway Service Black Box SQL
  • 44. Smart Gateways are “smart” Service Service Smart Gateway Service Decider Decider Decider DWH http SQL
  • 45. Smart Gateways are configurable • Sampling: routing of traffic to experiments • Experiments can opt in independently • Experiments define groups (random distribution) • Groups map to a Decider
  • 46. Smart Gateways are configurable Decider Decider Decider Decider Decider Decider Sampling Experiment Experiment 25% 50% of “DE” default “A” “B” Age < 30 ? “A” : “B” Age < 35 ? “A” : “B” <something smart> <some default> 50% 50% 50% 30% 20%
  • 48. Problem: Data is not real time and can’t be consistent Service Service Smart Gateway Service Decider Decider Decider DWH data import SQL
  • 49. Problem: One single point of failure Service Service Smart Gateway Service Decider Decider Decider DWH SQL all on one host default
 decision
  • 50. Smart Gateway v2 Chapter 3 driven by IT
  • 51. Goals • Separation of concerns • Data access is real time • Production ready setup
  • 52. Created a new team to shift responsibilities Stylist Support Logistics Support Web Data / ML BI
  • 53. Created a new team to shift responsibilities Stylist Support Logistics Support Web Data Delivery Data / ML BI
  • 54. Created a new team to shift responsibilities Service Service Smart Gateway Service Decider Decider Decider DWH SQL
  • 55. Configuration is now DB based • It simply got too big • Decision Point • n Experiments per Decision Point • n Deciders per Experiment • REST API to change config on the fly
  • 56. Smart Gateways do “data enrichment” • Deciders become pure functions • Before sampling of traffic, call is enriched with data • Enrichment is configurable • Enriched data can be used to decide if experiments “opt in”
  • 57. Smart Gateways now do “data enrichment” Enrichment Sampling Experiment Decider Decider DeciderRetrieve data: • REST call • constant value • LocalStore (K/V) • JS Script
  • 58. Smart Gateways become production ready • Professional Docker setup • Orchestrating Docker containers via Kubernetes
  • 59. Decider Decider Decider Smart Gateway Smart Gateways become production ready Service Service Smart Gateway Service Decider Decider Decider SQL Service Service SQL Redis Data Job
  • 60. Example use cases • AB testing • Decision Points • User discrimination to prepayment • … and many more • Also very nice: shadow mode
  • 62. Smart Gateways Service Service Smart GatewaySmart Gateway Service DeciderDecider DeciderDecider DeciderDecider Service Service RedisSQL Data Job
  • 63. Smart Gateways are a runtime environment for pure functions Service Service Smart GatewaySmart Gateway Service Decider𝛌 Decider𝛌 Decider𝛌 Service Service RedisSQL Data Job
  • 64. Delivery platform for pure functions Chapter 4 driven by Product, Data Science, and IT
  • 65. Our own delivery platform for algorithms
  • 66. Example 1: Supporting our stylists in decision making Filters… Customer Info Order / Basket Available Stock • For every order • For every article in stock • Calculate a score how likely customer is to keep this article • Score is used to encourage or discourage stylist to pick an article
  • 67. Example 2: Scanning return slips • External partner would take too long • Implemented algorithm on our own • Every scan is handled via Smart Gateway • Information on follow on orders is now available
  • 68. Filters… Customer Info Order / Basket Available Stock Smart Gateway 120 sec execution time3 MB data (input / output)
  • 69. Smart Gateway became asynchronous (if necessary) Service Service Smart GatewaySmart Gateway Service Decider𝛌 Decider𝛌 Decider𝛌 Service Service RedisSQL Data Job
  • 72. But then all three looked at the thing that they have created together and spoke:
  • 73. “What is this? How did this become something so much more powerful
 than what we set out to do in the first place?”
  • 74. “Actually we have truly build a system that can run
 just any pure function. AB tests and process steering are just the beginning. Maybe speech recognition is next. Or maybe…”
  • 75. With that they started to brainstorm all the cool things they could do in the future.
  • 76. Time and the next Hackathon will tell
 what they made out of it. And maybe I can come back next year
 to tell you all about it.