Book Image

Machine Learning on Kubernetes

By : Faisal Masood, Ross Brigoli
Book Image

Machine Learning on Kubernetes

By: Faisal Masood, Ross Brigoli

Overview of this book

MLOps is an emerging field that aims to bring repeatability, automation, and standardization of the software engineering domain to data science and machine learning engineering. By implementing MLOps with Kubernetes, data scientists, IT professionals, and data engineers can collaborate and build machine learning solutions that deliver business value for their organization. You'll begin by understanding the different components of a machine learning project. Then, you'll design and build a practical end-to-end machine learning project using open source software. As you progress, you'll understand the basics of MLOps and the value it can bring to machine learning projects. You will also gain experience in building, configuring, and using an open source, containerized machine learning platform. In later chapters, you will prepare data, build and deploy machine learning models, and automate workflow tasks using the same platform. Finally, the exercises in this book will help you get hands-on experience in Kubernetes and open source tools, such as JupyterHub, MLflow, and Airflow. By the end of this book, you'll have learned how to effectively build, train, and deploy a machine learning model using the machine learning platform you built.
Table of Contents (16 chapters)
1
Part 1: The Challenges of Adopting ML and Understanding MLOps (What and Why)
5
Part 2: The Building Blocks of an MLOps Platform and How to Build One on Kubernetes
10
Part 3: How to Use the MLOps Platform and Build a Full End-to-End Project Using the New Platform

Reproducibility

Now, you know what an ML life cycle would look like and how the platform assists you in every step of your journey. As an individual, you may be able to write every step of the data pipelines and model training and tuning in a single notebook. However, this may cause a problem in teams where different people are working on different parts of the life cycle. Let's say someone wants to run the model training part but the entire process is tied up with one another. Your team may not be able to scale with this approach.

A better and more scalable approach is to write different notebooks for various stages (such as data processing and model training) in your project life cycle and use a workflow engine to tie them up. Using the Kubernetes platform, all the stages will be executed using containers and provide a consistent environment for your project between different runs. The platform provides Airflow, an engine that could be used for creating and executing workflows...