liveBook · Manning

Pipeline

As explained in Delivering Machine Learning Projects: From design to deployment

A production data flow is the operational movement and transformation of data through a deployed machine learning system.

A data pipeline moves and transforms data through a sequence of tasks managed by a workflow engine and scheduler. The tasks form a directed acyclic graph (DAG): data flows along directed paths without loops. section 4.3.3

For machine learning, pipelines combine and prepare data for exploration, training, testing, and inference. A production pipeline gathers operational data, creates the features and formats the model expects, and passes them to a running model. Its processing should replicate the transformations used for training and testing. section 5.4 section 9.4.1

Figure 9.4 An abstract view of the production ML implementation. Data is pulled into and collected in a feature creation process, and then it’s submitted to a running instance of the model(s) that are used to generate an inference and an output.

Trace production data from its sources through feature creation to model inference. section 9.4.1

Shopping basket inference

A production pipeline can combine data from a user’s click, previous basket selections, the user data store, and the commercial context. It processes these inputs into the features and format expected by the model. section 9.4.1

Build and carry pipelines through the delivery lifecycle:

  • Aggregate and fuse relevant data in the development environment. Implement data tests so exploration and subsequent modeling use reliable, reproducible data. section 5.0 section 5.4
  • Replicate the data delivery pipeline for testing, then build the production flow on the available infrastructure. Account for differences between production and development systems. section 9.4.1
  • Document and version pipelines as code. Keep special cases discoverable by wrapping specialist tools in the standard pipeline infrastructure rather than relying on one-time processes. section 5.4.2
  • Instrument and test each step: report invocation and success or failure, and use timers or timeouts to detect operations that take too long. section 5.4.2

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Defines workflow-managed DAGs and outlines lifecycle tasks, instrumentation, and production integration without a complete implementation.
Examples
Illustrates an ELT workflow that joins and cleans two tables, and a shopping basket flow combining click, basket, and user data.
What you can do after
Evaluate and understand how to plan, instrument, and carry data pipelines from development into production.
How it connects
Connects pipelines to feature engineering, model serving, data testing, version control, and reproducibility.

Also explained in

Compare how 50 books explain pipeline →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.