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

Setting up our production environment in the CI/CD pipeline

Perform the following steps to set up a production environment in the CI/CD pipeline:

  1. Go to the Azure DevOps project you worked on previously and revisit the Pipelines | Releases section to view your Port Weather ML Pipeline. We will enhance this pipeline by creating a production stage.
  2. Click on the Edit button to get started and click on Add under the DEV TEST stage, as shown in the following screenshot:

    Figure 10.6 – Adding a new stage

  3. Clicking the Add button under the DEV TEST stage will prompt you to select a template to create a new stage. Select EMPTY JOB option (under Select a template text) and name the stage production or PROD and save it, as shown in the following screenshot:

    Figure 10.7 – Adding and saving the production stage (PROD)

  4. A new production stage named PROD will be created. Now, you can configure jobs and processes at the production stage. To configure jobs for PROD,...