liveBook · Manning

Machine learning system

As explained in Distributed Machine Learning Patterns

A software system that collects data, trains or serves machine learning models, and supports the surrounding operational workflow.

A machine learning system combines data ingestion, model training, model serving, monitoring, and workflow coordination into an operational pipeline. It replaces laptop-scale experiments when datasets, incoming batches, model architectures, serving traffic, or end-to-end workflows exceed a single machine’s capacity. section 1.1.1 section 1.5

Design the system around the flow of data and computation:

  • Ingest historical and frequently arriving data for downstream processing. section 1.1.1
  • Train and evaluate models using distributed infrastructure when computation outgrows local resources. section 7.1.1
  • Serve trained models under potentially heavy prediction traffic, using replicated servers when necessary. section 1.1.1 section 9.0
  • Connect components with workflows that support parallel fan-out and fan-in, or asynchronous long-running steps. section 6.0
  • Operate the pipeline through scheduling, metadata, observability, monitoring, deployment, and failure-handling practices. section 6.0

End-to-end image-classification system

Download Fashion-MNIST, process it with TensorFlow and Python, train and optimize an image-classification model with Kubeflow on Kubernetes, serve the final model, and compose the components with Argo Workflows. section 7.1.1 section 9.0

Figure 7.14 The architecture diagram of the end-to-end machine learning system we will build
07-14

Use the architecture diagram to trace how ingestion, training, serving, and workflow components compose into one scalable end-to-end system. section 7.5

How Distributed Machine Learning Patterns covers it

How deep it goes
Builds from component roles through complete implementation of ingestion, training, serving, and workflow composition.
Examples
Uses Fashion-MNIST, TensorFlow, Python, Kubernetes, Kubeflow, Docker, Argo Workflows, replicated servers, and an end-to-end architecture.
What you can do after
Build an end-to-end distributed pipeline that ingests data, trains models, serves predictions, and coordinates operational steps.
How it connects
Connects data ingestion, model training, model serving, monitoring, workflow orchestration, scheduling, metadata, and distributed infrastructure.

Also explained in

Compare how 4 books explain machine learning system →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.