Professional Documents
Culture Documents
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module overview
Sections Demonstration
Introducing Amazon SageMaker
1. What is machine learning?
2. Business problems solved with
machine learning
3. Machine learning process
4. Machine learning tools overview
5. Machine learning challenges
Knowledge check
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2
Module objectives
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 3
Module 2: Introduction to Machine Learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Artificial intelligence, machine learning, and
deep learning
Artificial intelligence
Machine learning
Deep learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 5
Artificial intelligence
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 6
Machine learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 7
Deep learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 8
ML and technology advancements
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 9
• Artificial intelligence
Section 1 key • Machines performing human tasks
takeaways • Machine learning
• Training models to make predictions
• Deep learning
• Neural networks
• Technology and economic
advancements have made machine
learning more accessible to
individuals and organizations
10 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2: Introduction to Machine Learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Common business use cases
Recommended items
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 12
Types of machine learning
Unsupervised
learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 13
Supervised learning
Learn by identifying patterns in data that is already labeled.
Binary [0,1] • Fraud detection
• Image recognition
Classification
• Customer retention
Multi [0,1,2] • Medical diagnostics
Supervised • Personalized advertising
learning
• Product sales prediction
Regression • Weather forecasting
• Market forecasting
• Population growth prediction
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 14
Computer vision
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 15
Unsupervised learning
• Product recommendations
• Customer segmentation
Clustering
• Targeted marketing
• Medical diagnostics
Unsupervised
learning
• Visualization
Dimensionality • Natural language processing
reduction • Data structure discovery
• Gene sequencing
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 16
Natural language processing
Right, two
chickens, let me
get that started for
you.
Poor story. Little character development. Jumps between scenes like you
might get caught stealing. Unexplained bad guys appear with the thinnest of
back story. Back to unlimited resources and lets not talk about the
mechanics of building something so huge in such an inhospitable place...
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 17
Reinforcement learning
• Game AI
Reinforcement • Self-driving cars
learning
• Robotics +1+
1
• Customer service routing
AWS DeepRacer
Best when the desired outcome is known but the
exact path to achieving it is not known.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 18
Self-driving vehicles
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 19
When to use machine learning?
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 20
• Machine learning applications affect
Section 2 key everyday life
takeaways • Machine learning can be grouped
into –
• Supervised learning
• Unsupervised learning
• Reinforcement learning
• Most problems are supervised
learning
21 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2: Introduction to Machine Learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ML pipeline: Business problem
Business problem
Problem
formulation
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 23
ML pipeline: Data preparation
Data handling and cleaning
Business problem
data
Collect and
Evaluate data
Name Country Sex dob
label data
Richard Roe UK Male 18/2/1972
Paulo Santos Male 11/2/1969
Mrs. Mary Major Denver F 37
Desai, Arnav USA M 2/22/1962
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 24
ML pipeline: Iterative model training
Business problem
Problem
Tune model
formulation
Meets
Collect and Feature Select and train
Evaluate data Evaluate model business
label data engineering model
goal?
No
Feature augmentation
Data augmentation
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 25
ML pipeline: Feature engineering
Name Country Sex dob
Richard Roe UK Male 18/2/1972
Paulo Santos Male 11/2/1969
?
Mrs. Mary Major Denver F 37
Desai, Arnav USA M 2/22/1962
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 26
ML pipeline: Model training
80%
Algorithm
Trained model
XGBoost
{hyperparameters}
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 27
ML pipeline: Evaluating and tuning the
model
Name USA UK sex age bm dow target
10-20%
Richard Roe 0 1 0 49 2 5 140,000 Test data
… … … … … … … …
{hyperparameters}
Change hyperparameters
Metrics
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 28
Overfitting and underfitting
Y Y Y
X X X
Overfitting Underfitting Balanced
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 29
ML pipeline: Deployment
New data, retraining
Deploy model
Business problem
Problem Yes
Tune model
formulation
Meets
Collect and Feature Select and train
Evaluate data Evaluate model business
label data engineering model
goal?
No
Feature augmentation
Data augmentation
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 30
• Machine learning pipeline guides
Section 3 key you through the process of
takeaways evaluating and training a model
• Iterative process of –
• Data processing
• Training
• Evaluation
31 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2: Introduction to Machine Learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Python tools and libraries
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 33
Machine learning frameworks and
infrastructure
Machine learning frameworks provide Amazon instances that are designed for
tools and code libraries: machine learning applications:
• Customized scripting • AWS IoT Greengrass provides an
• Integration with AWS services infrastructure for building machine learning
for IoT devices
• Community of developers
• Amazon Elastic Inference reduces costs for
running machine learning applications
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 34
Amazon SageMaker
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 35
Demonstration:
Introducing
Amazon
SageMaker
36 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Machine learning managed services
Speech Forecasting
Language Recommendations
38 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2: Introduction to Machine Learning
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Machine learning challenges
• Poor quality
• Lack of data science expertise
• Non-representative
• Cost of staffing with data scientists
• Insufficient
Data Users • Lack of management support
• Overfitting and underfitting
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 40
Using existing models and services
42 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2: Introduction to Machine Learning
Module wrap-up
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Machine learning is a subset of artificial intelligence
• Machine learning applies learning algorithms to
Module takeaways develop models from large datasets
• The machine learning pipeline describes the
different stages for developing a machine learning
application
• The Amazon Machine Learning stack has three key
layers
• Managed services, machine learning services,
machine learning frameworks
• Machine learning development is different from
traditional development
• Training algorithm is applied to data to create a
model for making predictions
44 © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module summary
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 45
Complete the knowledge check
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 46
Additional resources
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 47
Thank you
© 2021 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon
Web Services, Inc. Commercial copying, lending, or selling is prohibited. Corrections, feedback, or other questions? Contact us at https://support.aws.amazon.com/#/contacts/aws-training.
All trademarks are the property of their owners.