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

















































