liveBook · Manning

Chapter 4: Designing reliable ML systems

What you will learn in chapter 4 of Machine Learning Platform Engineering

This introduction maps the tools in a small ML platform, focusing the chapter on MLflow experiment tracking and Feast feature storage while previewing deployment and monitoring.

After this chapter you will be able to

What it builds on

Section by section

Introduction

This introduction maps the tools in a small ML platform, focusing the chapter on MLflow experiment tracking and Feast feature storage while previewing deployment and monitoring.

Key terms: exploratory data analysis (EDA), MLflow experiment tracker, MLflow model registry, hyperparameters, feature engineering, feature store, Feast, registering features, Kubeflow Pipelines, batch

4.1 MLflow for experiment tracking

This section explains why ML experiments need tracking, why a shared MLflow tracking server is preferable to ad hoc records, and how the chapter will introduce it through an income-classification example.

Key terms: reproducibility, model selection, performance tracking, MLflow, tracking server, experiment parameters, hyperparameters, metrics, artifacts, Jupyter Notebook

4.1.1 Data exploration

The section explores an income dataset with Pandas summaries and plots showing how categorical variables relate to a binary income target.

Key terms: Pandas info, Pandas describe, categorical variables, top, frequency, target variable, <=50K, >50K, categorical_variable_plots, Workclass

4.1.2 MLflow tracking

This section shows how to track exploratory plots, datasets, models, parameters, and metrics in MLflow, using both manual logging and autologging.

Key terms: tracking server, experiment, run, run ID, artifacts, mlflow.log_artifacts, pd.get_dummies, one-hot encoding, train_test_split, MinIO

4.1.3 MLflow model registry

This section uses MLflow metrics to select and register the best model, then explains how the registry supports reuse and what must be addressed before production.

Key terms: MLflow UI, MLflow client, metrics.roc_auc_score_test, chart view, random forest model, get_experiment_by_name, search_runs, run ID, model URI, register_model

4.2 Feast as a feature store

The section uses an income-classifier example to show how Feast organizes reusable features, retrieves historically correct values, and serves features for training and real-time inference.

Key terms: demographic features, relationship features, occupation features, MinIO, feature generation, point-in-time correct feature sets, feature retrieval, Feast feature store, offline store, online store

4.2.1 Registering features

This section shows how to define user features and their storage in Feast, then register those definitions with Feast apply.

Key terms: entity, user_id, entity.py, MinIO, s3 path, s3 endpoint override, port-forward, FeatureView, ttl, timedelta

4.2.2 Retrieving features

This section shows how to retrieve historical features for training or batch inference and the latest online features for real-time inference using Feast.

Key terms: get_historical_features, feature_store.yaml, user_id, event_timestamp, demographic:Sex, training_df, feast materialize, START_TS, END_TS, offline store

4.2.3 Feature server

This section shows how Feast’s feature server exposes API endpoints for retrieving online features without using a Feast SDK.

Key terms: Feast, feature server, API endpoints, Feast SDK, feast serve, curl, user_id, online feature store

4.2.4 Using the Feast UI

The section shows how to inspect registered features in the Feast UI and explains why MLflow and Feast still need pipeline automation for a reliable production system.

Key terms: Feast UI, feature registry, feature views, entities, data sources, tags, MLflow experiment tracker, model registry, Feast, training and inference

4.3 Summary

This section summarizes how MLflow tracks and manages models and how Feast manages features for training and inference.

Where this is used later

Concepts explained in this chapter

← Chapter 3: Building applications on Kubernetes Chapter 5: Orchestrating ML pipelines →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.