Chapter 8 of 10All chapters
Chapter 8 of 10
The pipeline
From raw data to a prediction.
Steps
Collect, clean, split, transform, train, evaluate, then deploy. Transformations must be fitted on training data only and applied to the rest, or leakage creeps in.
- Wrap the steps in a pipeline object so the same order runs everywhere.
- Version data as well as code; a model is a function of both.
Reproducibility
Fix random seeds, record library versions, and store the exact dataset. Without that, a result cannot be reproduced or debugged later.