# ML Pipeline

> A chain of steps that turns raw data into a model. Code runs it.

**Field:** Artificial Intelligence  
**Category:** MLOps & Deployment  
**Also known as:** Machine Learning Pipeline, Training Pipeline

## Think of it like

Think of it like a car wash line. Each station does one job, and the car moves to the next.

## Definition

An ML pipeline is a chain of steps that turns raw data into a trained, tested model. Code runs it, not a person. The usual steps are: get the data, clean it, build features, train, test and save the model. What each step makes is passed to the next. The whole chain can run again with one command or at set times. Since it is code, each run is done the same way, and it can be checked later.

## Example

Jack's pipeline pulls last month's sales, cleans them, trains a forecast model and tests it. If the score is good, it saves the model, all from one command.

## Why it matters

It makes training repeatable. Anyone can rebuild the model and get the same result.

## Common mistake

Keeping key steps in a notebook run by hand. Sooner or later someone skips a cell, and the model can't be rebuilt.

## Three principles

- **Steps in a chain.** Each feeds the next.
- **Run by code.** Not by hand.
- **Run again any time.** Same result.

## Related terms

- [MLOps](https://learn.benibix.com/term/ai/mlops)
- [Experiment Tracking](https://learn.benibix.com/term/ai/experiment-tracking)
- [Model Registry](https://learn.benibix.com/term/ai/model-registry)
- [CI/CD Pipeline](https://learn.benibix.com/term/development/ci-cd-pipeline)
- [Kubeflow](https://learn.benibix.com/term/ai/kubeflow)

![Five boxes in a row joined by arrows: get data, clean it, train, test and register the model. The whole row runs again with one command.](https://learn.benibix.com/diagrams/mo-ml-pipeline.svg)

---

Source: https://learn.benibix.com/term/ai/ml-pipeline
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
