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

Pipeline execution and testing

Now, it is time to test your pipeline and for that we will create a release and validate whether the pipeline release has executed successfully. The following steps will help you to test your pipeline:

  1. Click on the Create release button to execute jobs configured on your pipeline. A popup will appear on the right of your screen (as shown in Figure 7.16) to view and select artifacts to deploy in your staging environment.
  2. Select the artifacts (_scaler and _support-vector-classifier) and select their versions. For simplicity, version 1 is recommended for both.

    If you want to choose another version of your model or scaler make sure to change the path of your model and scaler in the score.py file (that is, insert the appropriate version number in the scaler and model paths model-scaler/{version number}/modelscaler.pkl and support-vector-classifier/ {version number} /svc.onnx. If you choose version 1, you don't have to worry about changing...