Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ......

49

Transcript of Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ......

Page 1: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 2: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Auto ML & UI ML

Model Interpretability

ML Ops

3+1 = ?

Page 3: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 4: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Machine Learning Process

Model

Page 5: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Machine Learning on Azure

Domain specific pretrained modelsTo reduce time to market

Azure Databricks

Machine Learning VMs

Popular frameworks To build advanced deep learning solutions

TensorFlowPytorch Onnx

Azure Machine Learning

LanguageSpeech

SearchVision

Productive servicesTo empower data science and development teams

Powerful infrastructureTo accelerate deep learning

Scikit-Learn

PyCharm Jupyter

Familiar Data Science toolsTo simplify model development

Visual Studio Code Command line

CPU GPU FPGA

From the Intelligent Cloud to the Intelligent Edge

Page 6: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

What is Azure Machine Learning service?

Set of Azure

Cloud ServicesPython

SDK

✓ Prepare Data

✓ Build Models

✓ Train Models

✓Manage Models

✓ Track Experiments

✓Deploy Models

That enables

you to:

Page 7: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://azure.microsoft.com/en-us/services/machine-learning/

https://github.com/microsoft/recommenders

Page 8: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Automated machine learning

Page 9: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Step 1Step 2Step 3

Page 10: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Configure

Choose

Compute Target

Run

Sit back

& RelaxSelect

Algorithm

Hyper-parameter

tuning

Test

Best Model

Produced!

Auto ML

https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-configure-auto-train

Page 11: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

How much is this car worth?

Azure Machine Learning Automated machine learning

Page 12: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Mileage

Condition

Car brand

Year of make

Regulations

Parameter 1

Parameter 2

Parameter 3

Parameter 4

Gradient Boosted

Nearest Neighbors

SVM

Bayesian Regression

LGBM

Mileage Gradient Boosted Criterion

Loss

Min Samples Split

Min Samples Leaf

Others Model

Which algorithm? Which parameters?Which features?

Car brand

Year of make

Model creation is typically a time consuming process

Page 13: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Which algorithm? Which parameters?Which features?

Mileage

Condition

Car brand

Year of make

Regulations

Gradient Boosted

Nearest Neighbors

SGD

Bayesian Regression

LGBM

Nearest Neighbors

Criterion

Loss

Min Samples Split

Min Samples Leaf

XYZ Model

Iterate

Gradient Boosted N Neighbors

Weights

Metric

P

ZYX

Mileage

Car brand

Year of make

Car brand

Year of make

Condition

Track

Model creation is typically a time consuming process

Page 14: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Track

Which algorithm? Which parameters?Which features?

Iterate

Model creation is typically a time consuming process

Page 15: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Enter data

Define goals

Apply constraints

Output

Automated Machine Learning accelerates model development

Input Intelligently test multiple models in parallel

Optimized model

Page 16: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Feature Importance

Mileage

Condition

Car brand

Year of make

Regulations

0 1

Feature Importance

Mileage

Condition

Car brand

Year of make

Regulations

95% model

Understand the inner workings of ML by analyzing feature importance

70% model

Page 17: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://github.com/Azure/MachineLearningNotebooks

Page 18: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

ONNX

Page 19: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Open Neural Network Exchange

Page 20: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://onnx.ai/

https://github.com/microsoft/onnxruntime

Page 21: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 22: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

What

Why

Page 23: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 24: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 25: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Why Trust Model?

Page 26: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Why Trust Model?

?

Page 27: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

(Husky Vs Wolf)

Page 28: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 29: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 30: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 31: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 32: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

FeaturesFeature 1 Feature 2 Engineered Feature 3

Page 33: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Series 1

Series 2

Series 3

0

1

2

3

4

5

Category 1Category 2

Category 3Category 4

0-1 1-2 2-3 3-4 4-5

0

0.5

1

1.5

2

2.5

3

3.5

4

0 0.5 1 1.5 2 2.5 3 3.5

Page 34: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

azureml.contrib.

interpret

azureml.train.

automl.

automlexplainerazureml.interpret

Page 35: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 36: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://github.com/interpretml/interpret-community

Page 37: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Model Deployment

Page 38: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Choosing Model Deployment Modes

Deployment Mode When to choose

ACI – Azure Container Instances • Faster Deployment

• Mainly used in Development and Testing scenarios

AKS – Azure Kubernetes Service • Preferable for Production deployments

• Autoscaling

• Logging & Model Data collection

• Best performance for web-service calls

Azure IoT Edge • Low latency decision making

• Reduce network bandwidth by making predictions locally

• Intermittent network connectivity

• Highly sensitive IP

Batch Deployment mode • For making decisions on the groups of records offline

• Large scale batch decisioning

Page 39: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

DevOps for machine learning

Page 40: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

DevOps loop for data science

Prepare

Data

Prepare

Register and

Manage Model

Build

Image

Build model

(your favorite IDE)

Deploy Service

Monitor Model

Train &

Test Model

Page 41: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Model management in Azure Machine Learning

Create/retrain model

Create scoring

files and

dependencies

Create and register image

MonitorRegister model

Cloud Light

Edge

Heavy

Edge

Deploy

image

Page 42: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://github.com/microsoft/MCW-ML-Ops

https://microsoftcloudworkshop.com/

Page 43: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image
Page 44: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Image Source: https://www.thoughtco.com/facts-about-jellyfish-4102061

Page 45: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Image Source: https://www.thoughtco.com/facts-about-jellyfish-4102061

Page 46: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Image Source: https://www.thoughtco.com/facts-about-jellyfish-4102061

Page 47: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

Domain Expertise

Less Labelled Data

Rapid Training

Page 48: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image

https://blogs.microsoft.com/ai/machine-teaching/

https://docs.bons.ai/guides/inkling-guide.html

https://www.microsoft.com/en-us/research/group/machine-teaching-group/

Page 49: Auto ML & UI ML Model Interpretability · Hyper-parameter tuning Test Best Model Produced! ... DevOps loop for data science Prepare Data Prepare Register and Manage Model Build Image