Book Image

Engineering MLOps

By : Emmanuel Raj
Book Image

Engineering MLOps

By: Emmanuel Raj

Overview of this book

Engineering MLps presents comprehensive insights into MLOps coupled with real-world examples in Azure to help you to write programs, train robust and scalable ML models, and build ML pipelines to train and deploy models securely in production. The book begins by familiarizing you with the MLOps workflow so you can start writing programs to train ML models. Then you’ll then move on to explore options for serializing and packaging ML models post-training to deploy them to facilitate machine learning inference, model interoperability, and end-to-end model traceability. You’ll learn how to build ML pipelines, continuous integration and continuous delivery (CI/CD) pipelines, and monitor pipelines to systematically build, deploy, monitor, and govern ML solutions for businesses and industries. Finally, you’ll apply the knowledge you’ve gained to build real-world projects. By the end of this ML book, you'll have a 360-degree view of MLOps and be ready to implement MLOps in your organization.
Table of Contents (18 chapters)
1
Section 1: Framework for Building Machine Learning Models
7
Section 2: Deploying Machine Learning Models at Scale
13
Section 3: Monitoring Machine Learning Models in Production

Testing our production-ready pipeline

Congratulations on setting up the production pipeline! Next, we will test its robustness. One great way to do this is to create a new release and observe and study whether the production pipeline successfully deploys the model to production (in the production Kubernetes cluster setup containing the pipeline). Follow these steps to test the pipeline:

  1. First, create a new release, go to the Pipelines | Releases section, select your previously created pipeline (for example, Port Weather ML Pipeline), and click on the Create Release button at the top right-hand side of the screen to initiate a new release, as shown here:

    Figure 10.11 – Create a new release

  2. Select the artifacts you would like to deploy in the pipeline (for example, Learn_MLOps repo, _scaler, and support-vector-classifier model and select their versions. Version 1 is recommended for testing PROD deployments for the first time), and click on the Create button at the top...