Handbook: applied machine learning as reliable software
An original text written alongside the labs. Each section is meant to be sufficient to start learning without another book; external sources are for verification and optional depth.
Every section has the same parts: overview, deeper explanation with examples, relevant equations,
practical decisions and tradeoffs, common failure modes, quick reference, sources and verification
status. Section ids (H2.1) are stable and are what lessons link to.
Reading alongside the 12-week course
The lessons teach the essentials; these chapters go deeper. Read them after the week, when a lesson’s “Going further” points there, or when something did not quite land.
| Course week | Handbook chapters |
|---|---|
| 1 · Your engineering workbench | 2. Maintainable Python (H2.1, H2.3) |
| 2 · SQL from zero | 3. SQL and data pipelines (H3.1) |
| 3 · Advanced SQL and pandas | 3. SQL and data pipelines (H3.2, H3.3); 4. Data quality |
| 4 · From data to features | 4. Data quality and EDA; 3. H3.4 feature pipelines |
| 5 · Framing, baselines, metrics | 1. Problem formulation; 5. Baselines (H5.1, H5.2); 6. H6.2 thresholds |
| 6 · Validation and leakage | 6. Evaluation, leakage and uncertainty (H6.1, H6.3, H6.4) |
| 7 · Models, uncertainty, error analysis | 5. H5.3, H5.4; 6. H6.5-H6.7; 7. Time series |
| 8 · Code you can trust | 2. H2.1, H2.2; 8. Reproducible experiments; 9. Testing (H9.1) |
| 9 · Serving models | 10. Inference; 11. FastAPI; 9. H9.2 |
| 10 · Containers and CI | 12. Docker; 14. CI/CD |
| 11 · Deploy and operate | 13. Cloud deployment; 15. Logging, monitoring, updates |
| 12 · Capstone and career | 16. System design and communication |
The handbook was first written for the advanced track, so some examples use its project
(flowguard) and session ids such as w3d4.
All 55 sections are written. Each ends with its sources and verification status; most were checked against official documentation sources, and anything written from memory is labelled there.
Bridges between domains
A recurring device in this handbook is to restate an idea from one field (here, biomedical signals such as EEG, where many of these problems were met first) in another domain, and to say where the analogy breaks. You do not need any EEG background: each row reads as “the same structure in two settings”.
| In biomedical-signal work | Same structure elsewhere | Where the analogy breaks |
|---|---|---|
| Subject-wise splits; cross-patient generalisation | Machine-, customer-, store- or site-wise splits | Business groups are often open-ended and changing; new groups appear daily |
| Line length, band power, RMS on signal windows (e.g. EEG) | Vibration and current features in equipment monitoring | Sampling rates, sensor bandwidth and physics-based fault frequencies differ |
| Seizure or other event detection scored by event overlap and latency | Fault-event detection scored by event recall and detection delay | Industrial events are rarer and labels come from maintenance logs with delays |
| Non-stationarity across sessions, electrode drift | Sensor recalibration, seasonal demand, product changes | Drift may be intentional (a price change) and documented outside the data |
| Artefact rejection | Data-quality rules and input validation at the API boundary | Rejection must be automatic, logged and reversible in production |
| Real-time brain-computer-interface loop latency | Online inference latency budgets (p95/p99) | Budgets are contractual; failures need fallbacks rather than a restarted session |
Table of contents
- 1. Practical ML problem formulation
- 2. Maintainable Python for ML
- 3. SQL and data pipelines
- 4. Data quality and exploratory analysis
- 5. Classical ML and strong baselines
- 6. Evaluation, leakage and uncertainty
- 7. Time-series and grouped-data modelling
- 8. Reproducible experiments
- 9. Testing ML systems
- 10. Batch and online inference
- 11. FastAPI and input validation
- 12. Docker and reproducible environments
- 13. One cloud deployment path
- 14. CI/CD fundamentals
- 15. Logging, monitoring and model updates
- 16. ML system design and technical communication