SlideShare a Scribd company logo
1 of 28
Download to read offline
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Artificial Intelligence and Machine
Learning for Developers
Sara Mitchell | October 2018
Faking it as a Data Scientist
Using AWS AI services and Amazon Sagemaker
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is AI, ML and DL?
https://www.geospatialworld.net/blogs/difference-between-ai%EF%BB%BF-machine-learning-and-deep-learning/
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Rekognition
Object and Scene
Detection
Facial
Analysis
Face
Comparison
Facial
Recognition
Celebrity
Recognition
Image
Moderation
Extract rich metadata from visual content
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Maple
Villa
Plant
Garden
Water
Swimming Pool
Tree
Potted Plant
Backyard
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demographic Data
Facial Landmarks
Sentiment Expressed
Image Quality
Brightness: 25.84
Sharpness: 160
General Attributes
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Facial Recognition
Find similar faces in a large collection of images
SearchFacesByImage
Search
Index
Collection
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Comprehend
STORM
WORLD SERIES
STOCK MARKET
WASHINGTON
LIBRARY OF
NEWS ARTICLES
Amazon
Comprehend
Di scover i nsi ght s and rel at i onshi ps i n t ext
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Comprehend
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Know what your customers are asking
Deri ve i nsi ght i nt o every phone cal l
Amazon
Comprehend
Incoming
customer
call
Amazon
Transcribe
Amazon Connect Call
Recordings
Amazon
Quicksight
Amazon Machine
Learning
Entities
Key Phrases
Language
SentimentS3
S3
Lambda
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Polly and SSML
'Can you make your voices sound like an auctioneer?'
<speak><prosody rate='+60%'>I’m at 500 and I want
550<prosody volume='x-loud'>550</prosody></prosody>
<prosody rate='+60%'>bid on 550 I’m at 500 would you go
550 550 for the gentleman in the corner</prosody> <prosody
rate="+90%">A big black bug bit a big black bear a big
black bug bit a big black bear</prosody> Do we get 600?
<prosody rate='+90%'>A big black bug bit a big black
bear</prosody><prosody rate='+60%'>We got 600 for the
whole herd</prosody><prosody rate='default' volume='x-
loud'>Sold <prosody rate='+60%'>for
600.</prosody></prosody></speak>
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
So you’ve mastered the API services …
But now you want to understand how ML Models work
?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Machine Learning process
Fetch data
Clean &
format data
Prepare &
transform
data
Train model
Evaluate
model
Integrate
with prod
Monitor /
debug /
refresh
Data wrangling
• Set up and
manage data
workbench
• Get data to
workbench
securely
Experimentation
• Set up and
manage clusters
• Scale / distribute
ML algorithms
Deployment
• Set up and
manage inference
clusters
• Manage and auto
scale inference
APIs
• Testing,
versioning, and
monitoring
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prepare your data
• Use hosted Jupyter notebook
• Curl to copy the dataset
• Python to process the data
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Machine Learning Models
Regression
Classification Clustering
Association
Supervised Learning Unsupervised Learning
Known Categories
Medical Imaging
Cat or Dog or Fish
Continuous Target
Variable
What will the temperature
be tomorrow?
Target not known
Customer segmentation
Target not known
Market basket analysis
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Machine Learning Models
Classification
Reinforcement Learning
Known Categories
Optimised marketing
Target not known
Robotics
Iterative
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon SageMaker
Fully managed
hosting with auto-
scaling
One-click
deployment
Pre-built
notebooks for
common
problems
Built-in, high
performance
algorithms
One-click
training
Hyperparameter
optimization
BUILD TRAIN DEPLOY
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Sagemaker
Highly-optimized
machine learning
algorithms
BuildPre-built
notebook
instances
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Sagemaker
Highly-optimized
machine learning
algorithms
One-click training
for ML, DL, and
custom algorithms
BuildPre-built
notebook
instances
Easier training with
hyperparameter
optimization
Train
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Sagemaker
One-click training
for ML, DL, and
custom algorithms
Easier training with
hyperparameter
optimization
Highly-optimized
machine learning
algorithms
Deployment
without
engineering effort
Fully-managed
hosting at scale
BuildPre-built
notebook
instances
Deploy
Train
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Training a model
Use an algorithm together with test data to create a
model
• AWS pre-built algorithms
• You provide an algorithm
Automatic Parameter Tuning
• Hyperparameter optimisation
• Tunes training jobs for values in a range
• Uses machine learning to determine the combination of values
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Sagemaker provides many pre-built algorithms
How do you chose?
General Purpose Algorithms
• Linear Learner and XGBoost - discrete classification problems
• K-Means Algorithm – clustering, unknown target
Algorithms for specific use cases
• Image Classification Algorithm - It uses example data with answers (therefore a supervised
algorithm).
• Sequence2Sequence - This supervised algorithm is used for neural machine translation.
• Latent Dirichlet Allocation (LDA) Determines topics in a set of documents. It is an unsupervised
algorithm.
• Neural Topic Model (NTM) - Another unsupervised technique for determining topics in a set of
documents, using a neural network approach.
And many more …
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I
ML Hosting Service
Amazon ECR
30 50
10 10
ProductionVariant
Model Artifacts
Inference Image
Model versions
Versions of the same
inference code saved in
inference containers.
Prod is the primary
one, 50% of the traffic
must be served there!
Create an
EndpointConfiguration
from one or many
ProductionVariant(s)EndpointConfiguration
Amazon SageMaker
Easy Model Deployment to Amazon SageMaker
InstanceType: c3.4xlarge
InitialInstanceCount: 3
ModelName: prod
VariantName: primary
InitialVariantWeight: 50
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SageMaker
Notebooks
Training
Algorithm
SageMaker
Training
Amazon ECR
Code Commit
Code Pipeline
SageMaker
Hosting
Coco dataset
AWS
Lambda
API
Gateway
SageMaker Sample End-to-End Architecture: Style Transfer
Build
Train
Deploy
static website hosted on S3
Inference requests
Amazon S3
Amazon
Cloudfront
Web assets on
Cloudfront
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon EC2 P3 Instances
The f ast est , most powerf ul GPU i nst ances i n t he cl oud
• Purpose built for AI/ML
• Massive amounts of parallel
processing power
• Enables data scientists to
cut down ML training times
from weeks to days
• Supported by a wide range
of AI/ML packages
AWS Deep Learning AMI
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Amazon AI/ML Stack
PLATFORM SERVICES
APPLICATION SERVICES
FRAMEWORKS & INTERFACES
Caffe2 CNTK
Apache
MXNet
PyTorch TensorFlow Torch Keras Gluon
AWS Deep Learning AMIs
Amazon SageMaker AWS DeepLens
Rekognition Transcribe Translate Polly Comprehend Lex
INFRASTRUCTURE
CPU IoT & EdgeGPU (P3) Mobile
Amazon Machine LearningMacie GuardDuty
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Further Resources
Today
• 1.30 - 21st Century Ways of Engaging with Your Customers
• 2.10 - Fraud Detection and Prevention
• 4.30 - The Machine Learning Factory
AWS Machine Learning Blog
• https://aws.amazon.com/blogs/machine-learning/
Amazon Sagemaker
• https://docs.aws.amazon.com/sagemaker/latest/dg/whatis.html
Free Training
• https://www.coursera.org/learn/machine-learning
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon SageMaker
aws.amazon.com/sagemaker
aws.amazon.com/machine-learning
End-to-End Managed ML Platform

More Related Content

What's hot

AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)Julien SIMON
 
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Amazon Web Services
 
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Amazon Web Services
 
Deep learning acceleration with Amazon Elastic Inference
Deep learning acceleration with Amazon Elastic Inference  Deep learning acceleration with Amazon Elastic Inference
Deep learning acceleration with Amazon Elastic Inference Hagay Lupesko
 
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...Adrian Hornsby
 
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Amazon Web Services
 
Automate for Efficiency with Amazon Transcribe & Amazon Translate
Automate for Efficiency with Amazon Transcribe & Amazon TranslateAutomate for Efficiency with Amazon Transcribe & Amazon Translate
Automate for Efficiency with Amazon Transcribe & Amazon TranslateAmazon Web Services
 
Workshop: Build an Image-Based Automatic Alert System with Amazon Rekognition
Workshop: Build an Image-Based Automatic Alert System with Amazon RekognitionWorkshop: Build an Image-Based Automatic Alert System with Amazon Rekognition
Workshop: Build an Image-Based Automatic Alert System with Amazon RekognitionAmazon Web Services
 
Using Amazon SageMaker to build, train, and deploy your ML Models
Using Amazon SageMaker to build, train, and deploy your ML ModelsUsing Amazon SageMaker to build, train, and deploy your ML Models
Using Amazon SageMaker to build, train, and deploy your ML ModelsAmazon Web Services
 
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerWorkshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerAmazon Web Services
 
Sviluppare applicazioni voice-first con AWS e Amazon Alexa
Sviluppare applicazioni voice-first con AWS e Amazon AlexaSviluppare applicazioni voice-first con AWS e Amazon Alexa
Sviluppare applicazioni voice-first con AWS e Amazon AlexaAmazon Web Services
 
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Amazon Web Services
 
Build Text Analytics Solutions with Amazon Comprehend and Amazon Translate
Build Text Analytics Solutions with Amazon Comprehend and Amazon TranslateBuild Text Analytics Solutions with Amazon Comprehend and Amazon Translate
Build Text Analytics Solutions with Amazon Comprehend and Amazon TranslateAmazon Web Services
 
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...AWS Summits
 
Mcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaMcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaDan Romuald Mbanga
 

What's hot (19)

AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)AWS Machine Learning Language Services (May 2018)
AWS Machine Learning Language Services (May 2018)
 
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
 
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
 
Intro to AI & ML at Amazon
Intro to AI & ML at AmazonIntro to AI & ML at Amazon
Intro to AI & ML at Amazon
 
Deep learning acceleration with Amazon Elastic Inference
Deep learning acceleration with Amazon Elastic Inference  Deep learning acceleration with Amazon Elastic Inference
Deep learning acceleration with Amazon Elastic Inference
 
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
re:Invent re:Cap - An overview of Artificial Intelligence and Machine Learnin...
 
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
 
Automate for Efficiency with Amazon Transcribe & Amazon Translate
Automate for Efficiency with Amazon Transcribe & Amazon TranslateAutomate for Efficiency with Amazon Transcribe & Amazon Translate
Automate for Efficiency with Amazon Transcribe & Amazon Translate
 
Workshop: Build an Image-Based Automatic Alert System with Amazon Rekognition
Workshop: Build an Image-Based Automatic Alert System with Amazon RekognitionWorkshop: Build an Image-Based Automatic Alert System with Amazon Rekognition
Workshop: Build an Image-Based Automatic Alert System with Amazon Rekognition
 
Using Amazon SageMaker to build, train, and deploy your ML Models
Using Amazon SageMaker to build, train, and deploy your ML ModelsUsing Amazon SageMaker to build, train, and deploy your ML Models
Using Amazon SageMaker to build, train, and deploy your ML Models
 
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMakerWorkshop: Build Deep Learning Applications with TensorFlow and SageMaker
Workshop: Build Deep Learning Applications with TensorFlow and SageMaker
 
Sviluppare applicazioni voice-first con AWS e Amazon Alexa
Sviluppare applicazioni voice-first con AWS e Amazon AlexaSviluppare applicazioni voice-first con AWS e Amazon Alexa
Sviluppare applicazioni voice-first con AWS e Amazon Alexa
 
APN-live-hk-opening
APN-live-hk-openingAPN-live-hk-opening
APN-live-hk-opening
 
AI for developers
AI for developersAI for developers
AI for developers
 
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
 
Build Text Analytics Solutions with Amazon Comprehend and Amazon Translate
Build Text Analytics Solutions with Amazon Comprehend and Amazon TranslateBuild Text Analytics Solutions with Amazon Comprehend and Amazon Translate
Build Text Analytics Solutions with Amazon Comprehend and Amazon Translate
 
Machine Learning on AWS
Machine Learning on AWSMachine Learning on AWS
Machine Learning on AWS
 
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...
Building Machine Learning inference pipelines at scale | AWS Summit Tel Aviv ...
 
Mcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbangaMcl345 re invent_sagemaker_dmbanga
Mcl345 re invent_sagemaker_dmbanga
 

Similar to Faking it as a Data Scientist

WhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotWhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotRandall Hunt
 
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Amazon Web Services
 
Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Amazon Web Services
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitAmazon Web Services
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Amazon Web Services
 
AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28Amazon Web Services
 
AI Services for Developers - Floor28
AI Services for Developers - Floor28AI Services for Developers - Floor28
AI Services for Developers - Floor28Boaz Ziniman
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerAmazon Web Services
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudAmazon Web Services
 
DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay Conference by Xebia
 
Amazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAmazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAWS Riyadh User Group
 
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAmazon Web Services
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleAWS Germany
 
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...Amazon Web Services
 
Intro To AI & ML at Amazon: Collision 2018
Intro To AI & ML at Amazon: Collision 2018Intro To AI & ML at Amazon: Collision 2018
Intro To AI & ML at Amazon: Collision 2018Amazon Web Services
 
Machine Learning for innovation and transformation
Machine Learning for innovation and transformationMachine Learning for innovation and transformation
Machine Learning for innovation and transformationAmazon Web Services
 
Accelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAccelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAmazon Web Services
 
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Amazon Web Services
 

Similar to Faking it as a Data Scientist (20)

WhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter BotWhereML a Serverless ML Powered Location Guessing Twitter Bot
WhereML a Serverless ML Powered Location Guessing Twitter Bot
 
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
 
Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018
 
Where ml ai_heavy
Where ml ai_heavyWhere ml ai_heavy
Where ml ai_heavy
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
 
Machine Learning in Practice
Machine Learning in PracticeMachine Learning in Practice
Machine Learning in Practice
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
 
AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28AI Services for Developers | AWS Floor28
AI Services for Developers | AWS Floor28
 
AI Services for Developers - Floor28
AI Services for Developers - Floor28AI Services for Developers - Floor28
AI Services for Developers - Floor28
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMaker
 
Resiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the CloudResiliency and Availability Design Patterns for the Cloud
Resiliency and Availability Design Patterns for the Cloud
 
DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker
 
Amazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAmazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML Models
 
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scale
 
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
NEW LAUNCH! Integrating Amazon SageMaker into your Enterprise - MCL345 - re:I...
 
Intro To AI & ML at Amazon: Collision 2018
Intro To AI & ML at Amazon: Collision 2018Intro To AI & ML at Amazon: Collision 2018
Intro To AI & ML at Amazon: Collision 2018
 
Machine Learning for innovation and transformation
Machine Learning for innovation and transformationMachine Learning for innovation and transformation
Machine Learning for innovation and transformation
 
Accelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMakerAccelerate Machine Learning with Ease using Amazon SageMaker
Accelerate Machine Learning with Ease using Amazon SageMaker
 
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Faking it as a Data Scientist

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Artificial Intelligence and Machine Learning for Developers Sara Mitchell | October 2018 Faking it as a Data Scientist Using AWS AI services and Amazon Sagemaker
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is AI, ML and DL? https://www.geospatialworld.net/blogs/difference-between-ai%EF%BB%BF-machine-learning-and-deep-learning/
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Rekognition Object and Scene Detection Facial Analysis Face Comparison Facial Recognition Celebrity Recognition Image Moderation Extract rich metadata from visual content
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Maple Villa Plant Garden Water Swimming Pool Tree Potted Plant Backyard
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demographic Data Facial Landmarks Sentiment Expressed Image Quality Brightness: 25.84 Sharpness: 160 General Attributes
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Facial Recognition Find similar faces in a large collection of images SearchFacesByImage Search Index Collection
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Comprehend STORM WORLD SERIES STOCK MARKET WASHINGTON LIBRARY OF NEWS ARTICLES Amazon Comprehend Di scover i nsi ght s and rel at i onshi ps i n t ext
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Comprehend
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Know what your customers are asking Deri ve i nsi ght i nt o every phone cal l Amazon Comprehend Incoming customer call Amazon Transcribe Amazon Connect Call Recordings Amazon Quicksight Amazon Machine Learning Entities Key Phrases Language SentimentS3 S3 Lambda
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Polly and SSML 'Can you make your voices sound like an auctioneer?' <speak><prosody rate='+60%'>I’m at 500 and I want 550<prosody volume='x-loud'>550</prosody></prosody> <prosody rate='+60%'>bid on 550 I’m at 500 would you go 550 550 for the gentleman in the corner</prosody> <prosody rate="+90%">A big black bug bit a big black bear a big black bug bit a big black bear</prosody> Do we get 600? <prosody rate='+90%'>A big black bug bit a big black bear</prosody><prosody rate='+60%'>We got 600 for the whole herd</prosody><prosody rate='default' volume='x- loud'>Sold <prosody rate='+60%'>for 600.</prosody></prosody></speak>
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. So you’ve mastered the API services … But now you want to understand how ML Models work ?
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Machine Learning process Fetch data Clean & format data Prepare & transform data Train model Evaluate model Integrate with prod Monitor / debug / refresh Data wrangling • Set up and manage data workbench • Get data to workbench securely Experimentation • Set up and manage clusters • Scale / distribute ML algorithms Deployment • Set up and manage inference clusters • Manage and auto scale inference APIs • Testing, versioning, and monitoring
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prepare your data • Use hosted Jupyter notebook • Curl to copy the dataset • Python to process the data
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Machine Learning Models Regression Classification Clustering Association Supervised Learning Unsupervised Learning Known Categories Medical Imaging Cat or Dog or Fish Continuous Target Variable What will the temperature be tomorrow? Target not known Customer segmentation Target not known Market basket analysis
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Machine Learning Models Classification Reinforcement Learning Known Categories Optimised marketing Target not known Robotics Iterative
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon SageMaker Fully managed hosting with auto- scaling One-click deployment Pre-built notebooks for common problems Built-in, high performance algorithms One-click training Hyperparameter optimization BUILD TRAIN DEPLOY
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Sagemaker Highly-optimized machine learning algorithms BuildPre-built notebook instances
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Sagemaker Highly-optimized machine learning algorithms One-click training for ML, DL, and custom algorithms BuildPre-built notebook instances Easier training with hyperparameter optimization Train
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Sagemaker One-click training for ML, DL, and custom algorithms Easier training with hyperparameter optimization Highly-optimized machine learning algorithms Deployment without engineering effort Fully-managed hosting at scale BuildPre-built notebook instances Deploy Train
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Training a model Use an algorithm together with test data to create a model • AWS pre-built algorithms • You provide an algorithm Automatic Parameter Tuning • Hyperparameter optimisation • Tunes training jobs for values in a range • Uses machine learning to determine the combination of values
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Sagemaker provides many pre-built algorithms How do you chose? General Purpose Algorithms • Linear Learner and XGBoost - discrete classification problems • K-Means Algorithm – clustering, unknown target Algorithms for specific use cases • Image Classification Algorithm - It uses example data with answers (therefore a supervised algorithm). • Sequence2Sequence - This supervised algorithm is used for neural machine translation. • Latent Dirichlet Allocation (LDA) Determines topics in a set of documents. It is an unsupervised algorithm. • Neural Topic Model (NTM) - Another unsupervised technique for determining topics in a set of documents, using a neural network approach. And many more …
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I ML Hosting Service Amazon ECR 30 50 10 10 ProductionVariant Model Artifacts Inference Image Model versions Versions of the same inference code saved in inference containers. Prod is the primary one, 50% of the traffic must be served there! Create an EndpointConfiguration from one or many ProductionVariant(s)EndpointConfiguration Amazon SageMaker Easy Model Deployment to Amazon SageMaker InstanceType: c3.4xlarge InitialInstanceCount: 3 ModelName: prod VariantName: primary InitialVariantWeight: 50
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SageMaker Notebooks Training Algorithm SageMaker Training Amazon ECR Code Commit Code Pipeline SageMaker Hosting Coco dataset AWS Lambda API Gateway SageMaker Sample End-to-End Architecture: Style Transfer Build Train Deploy static website hosted on S3 Inference requests Amazon S3 Amazon Cloudfront Web assets on Cloudfront
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon EC2 P3 Instances The f ast est , most powerf ul GPU i nst ances i n t he cl oud • Purpose built for AI/ML • Massive amounts of parallel processing power • Enables data scientists to cut down ML training times from weeks to days • Supported by a wide range of AI/ML packages AWS Deep Learning AMI
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Amazon AI/ML Stack PLATFORM SERVICES APPLICATION SERVICES FRAMEWORKS & INTERFACES Caffe2 CNTK Apache MXNet PyTorch TensorFlow Torch Keras Gluon AWS Deep Learning AMIs Amazon SageMaker AWS DeepLens Rekognition Transcribe Translate Polly Comprehend Lex INFRASTRUCTURE CPU IoT & EdgeGPU (P3) Mobile Amazon Machine LearningMacie GuardDuty
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Further Resources Today • 1.30 - 21st Century Ways of Engaging with Your Customers • 2.10 - Fraud Detection and Prevention • 4.30 - The Machine Learning Factory AWS Machine Learning Blog • https://aws.amazon.com/blogs/machine-learning/ Amazon Sagemaker • https://docs.aws.amazon.com/sagemaker/latest/dg/whatis.html Free Training • https://www.coursera.org/learn/machine-learning
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon SageMaker aws.amazon.com/sagemaker aws.amazon.com/machine-learning End-to-End Managed ML Platform