M6 - Custom Model Building With Cloud AutoML Slides
M6 - Custom Model Building With Cloud AutoML Slides
building with
Cloud AutoML
Agenda
Why Auto ML?
Auto ML Vision
Auto ML NLP
Auto ML Tables
Create and deploy custom models with AutoML
Build a Custom Build Custom Call a Pretrained Model
Model Model (codeless)
Time
Math
Cloud AutoML follows a standard procedure that is divided
into train, deploy, and serve phases
TRAIN
VALIDATION
optional
column
TEST
CSV
file
Trained
Prepared
Analysis Training Custom
Dataset
Model
Start
Training
Data from the TEST group is used to evaluate the Custom
Model and to remove bias from the evaluation
Trained
Custom
Model Predictions and
classifications
Prepared
Dataset
Evaluation
Accuracy ?
TEST group
There is nothing you need to do to deploy a trained model
https://automl.googleapis.com/
Serve models using the Web UI, or from the command line
using CURL to send a JSON-structured request
Train Deploy Serve
model-name
payload https://automl.googleapis.com/
displayName
classification
score
Break up complicated problem into multiple models
Model 2
Model 3
Model 1
Model 1
Model 2
Model 3 Model 4
#1
As a data engineer should
#1
you build or buy a NO Trained on same input and
label?
solution? YES
YES NO
Custom and automated
Got more data than the
off-the-shelf solution?
BUILD
AutoML
Vision AutoML Natural Language AutoML Translation AutoML
Speech-to-Text
BUY
Cloud Data Fusion AI Hub Cloud
Cloud Dataflow Cloud Dataproc Google BigQuery BigQuery ML
Cloud AI Platform Vision API Cloud Video Intelligence API
Conversation
Infrastructure ML Libraries Language
Auto ML Vision
Auto ML NLP
Auto ML Tables
Cloud AutoML Vision specializes in training models for
image classification
Prepared Dataset
CSV
TRAIN gs://… label1, label2, label3 ...
file
Custom Model
Evaluation Deletion
Average precision ?? days unused
Confidence threshold curves 24 months max
Confusion matrix
Improving Vision Custom Models
+1
Auto ML Vision
Auto ML NLP
Auto ML Tables
Cloud AutoML Natural Language specializes in training
models for text
Prepared Dataset
CSV
TRAIN gs://… label1, label2, label3 ...
file
Custom Model
Evaluation Deletion
Average precision 60 days unused
Confidence threshold curves 6 months max
Confusion matrix
Improving Natural Language Custom Models
-1
Auto ML Vision
Auto ML NLP
Auto ML Tables
Cloud AutoML Table is for structured data
Phase 2: Architecture Search & Tuning Phase 3 CV,
Bagging
Classification Regression
Ensemble
Phase 4
Loss Function Selector Deploy
…
Auto Feature: Selection & Embedding
123
...
Categorical Numerical Text DateTime
Features Features Features Features
Example: Mercari Price Suggestion Challenge
Goal: Automatically suggest product prices to online sellers
Training data
How SQL in BigQuery AutoML uses neural architecture Keras with a TensorFlow backend,
for ML on search and best-of-class model trained on Cloud ML Engine
structured data architectures for the specific
problem
Best if you are a Data analyst who Developer who can create the ML Engineer who knows Python
can wrangle data dataset in the required format and knows deep learning, NLP
with SQL techniques
Most of this time Writing SQL Waiting for job to finish Coding Python and
is spent in experimentation with ML
Accuracy Moderate to high, High Low if you don't know what you are
mostly depending doing; extremely high if you
on the size of your employ appropriate architectures
dataset and have a large-enough dataset
Module Summary
● Cloud AutoML can be used to create powerful ML
models without any coding
● Use AutoML Vision when you have image data
● Use AutoML NLP when you have text data
● Use AutoML Tables when you have structured data