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

Enabling model retraining

So far, we've talked about what model drift is and how to recognize it. So, the question is, what should we do about it? If a model's predictive performance has deteriorated due to changes in the environment, the solution is to retrain the model using a new training set that represents the current situation. How much should your model be retrained by? And how can you choose your new workout routine? The following diagram shows the Model retrain function triggering the Build module based on the results of the Monitor module. There are two ways to trigger the model retrain function. One is manually and the other is by automating the model retraining function. Let's see how we can enable both:

Figure 13.17 – Model retraining enabled in an MLOps workflow

Manual model retraining

The product owner or quality assurance manager has the responsibility of ensuring manual model retraining is successful. The manual model...