MLOps for R with Azure Machine Learning (MLOps cho R với Azure Machine Learning) - David Smith

UN
Uni24h
0 downloads
24
0

Document content

Page 2

What is DevOps? People. Process. Products. Build Deploy & “ Test DevOps is the union of people, process, and products to enable continuous delivery of Develop Continuous Operate Delivery value to your end users. ” http://bit.ly/WhatIs-DevOps Plan Monitor & & Track Learn

Page 5

DEVOPS MLOPS Manage code (source files) Manage code (source files) Manage data files, notebooks, Rmd docs Manage infrastructure (as code) Manage infrastructure (as code) Manage environments (as code) Source code control Source code control Track experiment outcomes Manage data sets Build executables Train models Builds take hours Model training may take weeks or months (mostly) commodity compute GPU compute Manage build versions Manage model versions Manage reproducible environments Tests (deterministic) Tests (probabilistic) Fix bugs with code Fix bugs with code and/or data Model drift / model retraining

Page 8

Azure ML service SDK for R Open-source R package for use with CRAN R: azuremlsdk • Create Workspaces, Experiments, Compute, Models, and other artifacts with R commands • Use any R function/package (and track requirements for deployment) • HyperDrive support: smart hyperparameter search with parallel compute • Publish models as web services (in Azure or your own infra) • Trigger training / deployment pipelines from CI/CD services

Page 9

Accident fatality prediction app • Import flat CSV file and clean data Manage • Export to datastore Data • Create training cluster Train Model • Run experiments: GLM, KNN, GLMNET • Select model by accuracy Deploy • Deploy R function as container model • Shiny application Integrate • Call R function via REST endpoint model

Page 12

Create 2-node training cluster Nodes pre-loaded with R and R packages Scales up as jobs added to queue, scales down when unused Resize as needed Shared between workspace users (Python and R) Low priority nodes for ~80% discount GPU clusters available

Page 15

Register model Register model with R model object Models can be versioned Packages (CRAN, GitHub or private) needed to execute. R script receives model and data (JSON) to make prediction

Page 17

Integrate model into Shiny app Pass Shiny input data frame to endpoint Extract prediction from endpoint response Deploy Shiny app to any server … or call from any another app

Page 19

Deliver ML apps with Pipelines az extension add -n azure-cli-ml Azure ML Pipelines Azure Pipelines pip install --upgrade azureml-sdk in Azure DevOps

Page 20

CI/CD for apps with Azure Pipelines Azure ML extension triggers builds/releases on model registration in Azure ML Services

Showing the first 20 pages. Download the document to see it all.

Comments (0)

Sign in to join the discussion

No comments yet. Be the first!