SlideShare a Scribd company logo
1 of 39
Download to read offline
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MDR Learning
Julien Simon
Global Evangelist, AI & Machine Learning, AWS
@julsimon
Machine Learning
Deep Learning
Reinforcement Learning
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Artificial Intelligence: design software applications which
exhibit human-like behavior, e.g. speech, natural language
processing, reasoning or intuition
Machine Learning: using statistical algorithms, teach
machines to learn from featurized data without being
explicitly programmed
Deep Learning: using neural networks, teach machines to
learn from complex data where features cannot be
explicitly expressed
First things first
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Supervised learning
• Run an algorithm on a labeled data set.
• The model learns how to correctly predict the right answer.
• Regression and classification are examples of supervised learning.
Unsupervised learning
• Run an algorithm on an unlabeled data set.
• The model learns patterns and organizes samples accordingly.
• Clustering and topic modeling are examples of unsupervised learning.
Types of Machine Learning
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://fr.slideshare.net/JulienSIMON5/an-introduction-to-machine-learning-with-scikitlearn-october-2018
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
http://scikit-learn.org/stable/tutorial/machine_learning_map/
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://fr.slideshare.net/JulienSIMON5/an-introduction-to-deep-learning-84214689
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Activation functionsThe neuron
!
"#$
%
xi ∗ wi + b = u
”Multiply and
Accumulate”
Source: Wikipedia
bias
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
x =
x11, x12, …. x1I
x21, x22, …. x2I
… … …
xm1, xm2, …. xmI
I features
m samples
y =
2
0
…
4
m labels,
N2 categories
0,0,1,0,0,…,0
1,0,0,0,0,…,0
…
0,0,0,0,1,…,0
One-hot encoding
Neural networks
Buildingasimpleclassifier
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
x =
x11, x12, …. x1I
x21, x22, …. x2I
… … …
xm1, xm2, …. xmI
I features
m samples
y =
2
0
…
4
m labels,
N2 categories
Total number of predictions
Accuracy =
Number of correct predictions
0,0,1,0,0,…,0
1,0,0,0,0,…,0
…
0,0,0,0,1,…,0
One-hot encoding
Neural networks
Buildingasimpleclassifier
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Weights are initialized at random
à the initial network predicts at random
f(X1) = Y’1
A loss function measures the difference between
the real label Y1 and the predicted label Y’1
error = loss(Y1, Y’1)
For a batch of samples:
!
"#$
%&'() *"+,
loss(Yi, Y’i) = batch error
The purpose of the training process is to
minimize error by gradually adjusting weights.
Neural networks
Buildingasimpleclassifier
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training a neural network
Training data set Training
Trained
neural network
Batch size
Learning rate
Number of epochs
Hyper parameters
Backpropagation
Forward propagation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building a dataset is not always an option
Large, complex problems
Uncertain, chaotic environments
Continuous learning
Supply chain management, HVAC systems, industrial robotics, autonomous vehicles,
portfolio management, oil exploration, etc.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Types of Machine Learning
Reinforcement learning
(RL)
Supervised learning
Unsupervised learning
AMOUNT OF TRAINING DATA REQUIRED
SOPHISTICATIONOFMLMODELS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learning without any data: we’ve all done it!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reinforcement Learning
An agent interacts with its environment.
The agent receives positive or negative
rewards for its actions: rewards are
computed by a user-defined function
which outputs a numeric representation
of the actions that should be
incentivized.
By trying to maximize the accumulation
of rewards, the agent learns an optimal
strategy (aka policy) for decision making.
Source: Wikipedia
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training a RL model
1. Formulate the problem: goal, environment, state, actions, reward
2. Define the environment: real-world or simulator?
3. Define the presets
4. Write the training code and the reward function
5. Train the model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://github.com/awslabs/amazon-sagemaker-examples/tree/master/reinforcement_learning/rl_roboschool_ray
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The players
Simulation
environment
RL
agent
Initial
model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
At first, the agent can’t even stand up
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Actions and observations
Simulation
environment
Actions
Observations
RL
agent
Initial
model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The model learns through actions and observations
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Interactions generate training data
Simulation
environment
Actions
Observation
RL
agent
Training Data
Observation, action, reward
Training
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training results in model updates
Simulation
environment
Actions
Observation
RL
agent
Model updates
Training data
Observation, action, reward
Training
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The agent learns to stand and step
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Multiple training episodes improve learning
Simulation
environment
Actions
Observation
RL
agent
Model updates
Training data
Observation, action, reward
Training
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Making progress
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
RL agents try to maximize rewards
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Eventually, the model learns how to walk and run
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Evaluate and deploy trained models
Simulation
environment
Actions
Observation
Trained
Model
RL
agent
Model updates
Training data
Training
visualization
Observation, action, reward
Deploy Model
Training
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Robotics
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Financial portfolio management
Objective Maximize the value of a financial portfolio
STATE Current stock portfolio, price history
ACTION Buy, sell stocks
REWARD Positive when return is positive
Negative when return is negative
https://github.com/awslabs/amazon-sagemaker-
examples/tree/master/reinforcement_learning/rl_portfolio_management_coach_customEnv
Jiang, Zhengyao, Dixing Xu, and Jinjun Liang
« A deep reinforcement learning framework for the
financial portfolio management problem. »
arXiv:1706.10059 (2017)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Compressing deep learning models
Objective Compress model without losing accuracy
STATE Layers
ACTION Remove or shrink a layer
REWARD A combination of compression ratio and
accuracy.
https://github.com/awslabs/amazon-sagemaker-
examples/tree/master/reinforcement_learning/rl_network_compression_ray_custom
Ashok, Anubhav, Nicholas Rhinehart, Fares Beainy, and Kris M. Kitani
"N2N learning: network to network compression via policy gradient
reinforcement learning." arXiv:1709.06030 (2017).
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Vehicle routing
Objective Fulfill customer orders
STATE Current location, distance from homes
ACTION Accept, pick up, and deliver order
REWARD Positive when we deliver on time
Negative when we fail to deliver on time
https://github.com/awslabs/amazon-sagemaker-
examples/tree/master/reinforcement_learning/rl_traveling_salesman_vehicle_routing_coach
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Autonomous driving
AWS DeepRacer
1/18th scale autonomous vehicle
Amazon RoboMaker
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Getting started
http://aws.amazon.com/free
https://ml.aws
https://aws.amazon.com/sagemaker
https://github.com/awslabs/amazon-sagemaker-examples
https://aws.amazon.com/blogs/aws/amazon-sagemaker-rl-managed-reinforcement-
learning-with-amazon-sagemaker/
https://aws.amazon.com/deepracer/
https://medium.com/@julsimon
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://amzn.to/2mp1Lf5
Thank you!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Julien Simon
Global Evangelist, AI & Machine Learning, AWS
@julsimon

More Related Content

More from Julien SIMON

AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)Julien SIMON
 
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...Julien SIMON
 
A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)Julien SIMON
 
Building smart applications with AWS AI services (October 2019)
Building smart applications with AWS AI services (October 2019)Building smart applications with AWS AI services (October 2019)
Building smart applications with AWS AI services (October 2019)Julien SIMON
 
Build, train and deploy ML models with SageMaker (October 2019)
Build, train and deploy ML models with SageMaker (October 2019)Build, train and deploy ML models with SageMaker (October 2019)
Build, train and deploy ML models with SageMaker (October 2019)Julien SIMON
 
The Future of AI (September 2019)
The Future of AI (September 2019)The Future of AI (September 2019)
The Future of AI (September 2019)Julien SIMON
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Julien SIMON
 
Train and Deploy Machine Learning Workloads with AWS Container Services (July...
Train and Deploy Machine Learning Workloads with AWS Container Services (July...Train and Deploy Machine Learning Workloads with AWS Container Services (July...
Train and Deploy Machine Learning Workloads with AWS Container Services (July...Julien SIMON
 
Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Julien SIMON
 
Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Julien SIMON
 
Automate your Amazon SageMaker Workflows (July 2019)
Automate your Amazon SageMaker Workflows (July 2019)Automate your Amazon SageMaker Workflows (July 2019)
Automate your Amazon SageMaker Workflows (July 2019)Julien SIMON
 
Build, train and deploy ML models with Amazon SageMaker (May 2019)
Build, train and deploy ML models with Amazon SageMaker (May 2019)Build, train and deploy ML models with Amazon SageMaker (May 2019)
Build, train and deploy ML models with Amazon SageMaker (May 2019)Julien SIMON
 
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)Julien SIMON
 
Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Julien SIMON
 
Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Julien SIMON
 
Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Julien SIMON
 
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Julien SIMON
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Julien SIMON
 
Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Julien SIMON
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Julien SIMON
 

More from Julien SIMON (20)

AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
 
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (Decem...
 
A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)
 
Building smart applications with AWS AI services (October 2019)
Building smart applications with AWS AI services (October 2019)Building smart applications with AWS AI services (October 2019)
Building smart applications with AWS AI services (October 2019)
 
Build, train and deploy ML models with SageMaker (October 2019)
Build, train and deploy ML models with SageMaker (October 2019)Build, train and deploy ML models with SageMaker (October 2019)
Build, train and deploy ML models with SageMaker (October 2019)
 
The Future of AI (September 2019)
The Future of AI (September 2019)The Future of AI (September 2019)
The Future of AI (September 2019)
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)
 
Train and Deploy Machine Learning Workloads with AWS Container Services (July...
Train and Deploy Machine Learning Workloads with AWS Container Services (July...Train and Deploy Machine Learning Workloads with AWS Container Services (July...
Train and Deploy Machine Learning Workloads with AWS Container Services (July...
 
Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)
 
Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)
 
Automate your Amazon SageMaker Workflows (July 2019)
Automate your Amazon SageMaker Workflows (July 2019)Automate your Amazon SageMaker Workflows (July 2019)
Automate your Amazon SageMaker Workflows (July 2019)
 
Build, train and deploy ML models with Amazon SageMaker (May 2019)
Build, train and deploy ML models with Amazon SageMaker (May 2019)Build, train and deploy ML models with Amazon SageMaker (May 2019)
Build, train and deploy ML models with Amazon SageMaker (May 2019)
 
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
 
Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)
 
Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)
 
Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)
 
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
 
Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)
 

Recently uploaded

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 

Recently uploaded (20)

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 

[ Meetup - Cloudreach - Paris - France - 19/09/2019]

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. MDR Learning Julien Simon Global Evangelist, AI & Machine Learning, AWS @julsimon Machine Learning Deep Learning Reinforcement Learning
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Artificial Intelligence: design software applications which exhibit human-like behavior, e.g. speech, natural language processing, reasoning or intuition Machine Learning: using statistical algorithms, teach machines to learn from featurized data without being explicitly programmed Deep Learning: using neural networks, teach machines to learn from complex data where features cannot be explicitly expressed First things first
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Supervised learning • Run an algorithm on a labeled data set. • The model learns how to correctly predict the right answer. • Regression and classification are examples of supervised learning. Unsupervised learning • Run an algorithm on an unlabeled data set. • The model learns patterns and organizes samples accordingly. • Clustering and topic modeling are examples of unsupervised learning. Types of Machine Learning
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://fr.slideshare.net/JulienSIMON5/an-introduction-to-machine-learning-with-scikitlearn-october-2018
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. http://scikit-learn.org/stable/tutorial/machine_learning_map/
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://fr.slideshare.net/JulienSIMON5/an-introduction-to-deep-learning-84214689
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Activation functionsThe neuron ! "#$ % xi ∗ wi + b = u ”Multiply and Accumulate” Source: Wikipedia bias
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. x = x11, x12, …. x1I x21, x22, …. x2I … … … xm1, xm2, …. xmI I features m samples y = 2 0 … 4 m labels, N2 categories 0,0,1,0,0,…,0 1,0,0,0,0,…,0 … 0,0,0,0,1,…,0 One-hot encoding Neural networks Buildingasimpleclassifier
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. x = x11, x12, …. x1I x21, x22, …. x2I … … … xm1, xm2, …. xmI I features m samples y = 2 0 … 4 m labels, N2 categories Total number of predictions Accuracy = Number of correct predictions 0,0,1,0,0,…,0 1,0,0,0,0,…,0 … 0,0,0,0,1,…,0 One-hot encoding Neural networks Buildingasimpleclassifier
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Weights are initialized at random à the initial network predicts at random f(X1) = Y’1 A loss function measures the difference between the real label Y1 and the predicted label Y’1 error = loss(Y1, Y’1) For a batch of samples: ! "#$ %&'() *"+, loss(Yi, Y’i) = batch error The purpose of the training process is to minimize error by gradually adjusting weights. Neural networks Buildingasimpleclassifier
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training a neural network Training data set Training Trained neural network Batch size Learning rate Number of epochs Hyper parameters Backpropagation Forward propagation
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Building a dataset is not always an option Large, complex problems Uncertain, chaotic environments Continuous learning Supply chain management, HVAC systems, industrial robotics, autonomous vehicles, portfolio management, oil exploration, etc.
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Types of Machine Learning Reinforcement learning (RL) Supervised learning Unsupervised learning AMOUNT OF TRAINING DATA REQUIRED SOPHISTICATIONOFMLMODELS
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Learning without any data: we’ve all done it!
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reinforcement Learning An agent interacts with its environment. The agent receives positive or negative rewards for its actions: rewards are computed by a user-defined function which outputs a numeric representation of the actions that should be incentivized. By trying to maximize the accumulation of rewards, the agent learns an optimal strategy (aka policy) for decision making. Source: Wikipedia
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training a RL model 1. Formulate the problem: goal, environment, state, actions, reward 2. Define the environment: real-world or simulator? 3. Define the presets 4. Write the training code and the reward function 5. Train the model
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://github.com/awslabs/amazon-sagemaker-examples/tree/master/reinforcement_learning/rl_roboschool_ray
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The players Simulation environment RL agent Initial model
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. At first, the agent can’t even stand up
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Actions and observations Simulation environment Actions Observations RL agent Initial model
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The model learns through actions and observations
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Interactions generate training data Simulation environment Actions Observation RL agent Training Data Observation, action, reward Training
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training results in model updates Simulation environment Actions Observation RL agent Model updates Training data Observation, action, reward Training
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The agent learns to stand and step
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Multiple training episodes improve learning Simulation environment Actions Observation RL agent Model updates Training data Observation, action, reward Training
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Making progress
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. RL agents try to maximize rewards
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Eventually, the model learns how to walk and run
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Evaluate and deploy trained models Simulation environment Actions Observation Trained Model RL agent Model updates Training data Training visualization Observation, action, reward Deploy Model Training
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Robotics
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Financial portfolio management Objective Maximize the value of a financial portfolio STATE Current stock portfolio, price history ACTION Buy, sell stocks REWARD Positive when return is positive Negative when return is negative https://github.com/awslabs/amazon-sagemaker- examples/tree/master/reinforcement_learning/rl_portfolio_management_coach_customEnv Jiang, Zhengyao, Dixing Xu, and Jinjun Liang « A deep reinforcement learning framework for the financial portfolio management problem. » arXiv:1706.10059 (2017)
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Compressing deep learning models Objective Compress model without losing accuracy STATE Layers ACTION Remove or shrink a layer REWARD A combination of compression ratio and accuracy. https://github.com/awslabs/amazon-sagemaker- examples/tree/master/reinforcement_learning/rl_network_compression_ray_custom Ashok, Anubhav, Nicholas Rhinehart, Fares Beainy, and Kris M. Kitani "N2N learning: network to network compression via policy gradient reinforcement learning." arXiv:1709.06030 (2017).
  • 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Vehicle routing Objective Fulfill customer orders STATE Current location, distance from homes ACTION Accept, pick up, and deliver order REWARD Positive when we deliver on time Negative when we fail to deliver on time https://github.com/awslabs/amazon-sagemaker- examples/tree/master/reinforcement_learning/rl_traveling_salesman_vehicle_routing_coach
  • 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Autonomous driving AWS DeepRacer 1/18th scale autonomous vehicle Amazon RoboMaker
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Getting started http://aws.amazon.com/free https://ml.aws https://aws.amazon.com/sagemaker https://github.com/awslabs/amazon-sagemaker-examples https://aws.amazon.com/blogs/aws/amazon-sagemaker-rl-managed-reinforcement- learning-with-amazon-sagemaker/ https://aws.amazon.com/deepracer/ https://medium.com/@julsimon
  • 38. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://amzn.to/2mp1Lf5
  • 39. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Julien Simon Global Evangelist, AI & Machine Learning, AWS @julsimon