Advanced notebooks
Deeper, research-grade material: the full engineering of the flowguard project with
auto-checked labs in labs/. Take these after the 12-week course, or alongside it when a
topic interests you.
Block 1 — From research code to software
Block 2 — Data: SQL, pandas, quality, features, baselines
Block 3 — Evaluation you can defend
Block 4 — Time-series models and choosing on evidence
Block 5 — Inference, artifacts and a prediction API
Block 6 — Containers, CI/CD and one cloud deployment
Block 7 — Operating a model
Block 8 — Finish, document, explain
Block 1 — From research code to software
#
Notebook
Read
Run
01
Diagnostic A: Python, SQL, data cleaning
read
02
Diagnostic B: baselines, leakage, testing/API, explaining a decision
read
03
From script to installable package: project structure and environments
read
04
Configuration, logging and reproducible runs
read
05
Testing ML code with pytest: what a unit test can and cannot tell you
read
06
Independent refactor: a real exploratory notebook becomes the project skeleton
read
Block 2 — Data: SQL, pandas, quality, features, baselines
#
Notebook
Read
Run
07
SQL I: grain, joins, aggregation and NULL semantics
read
08
SQL II: CTEs, window functions and time-series queries
read
09
pandas ingestion, schemas and data-quality checks (project data arrives)
read
10
Problem framing and versioned split definitions
read
11
Reproducible feature generation without look-ahead
read
12
Strong simple baselines and metrics that match the decision
read
Block 3 — Evaluation you can defend
#
Notebook
Read
Run
13
Leakage: a taxonomy and prevention by construction
read
14
Group-aware and temporal validation
read
15
Hyperparameter and threshold selection without fooling yourself
read
16
Point-level versus event-level evaluation for detection
read
17
Uncertainty: cluster bootstrap, paired comparisons, small-n honesty
read
18
Error analysis and timed transfer exercise
read
Block 4 — Time-series models and choosing on evidence
#
Notebook
Read
Run
19
Time-series fundamentals and forecast-residual detectors
read
20
Classical detectors: PCA/T2-Q, isolation forest, boosted trees on window features
read
21
A neural comparison, where it is justified
read
22
Experiment tracking and reproducibility at the experiment level
read
23
Choosing complexity on evidence
read
24
Project milestone 1: evaluation report
read
Block 5 — Inference, artifacts and a prediction API
#
Notebook
Read
Run
25
Research experimentation versus production inference
read
26
Model artifacts, metadata and versioning
read
27
Online inference on streams: state, warm-up and parity
read
28
FastAPI I: endpoints, schemas and input validation
read
29
FastAPI II: API tests, integration tests and model lifecycle
read
30
Project milestone 2: packaged inference + API
read
Block 6 — Containers, CI/CD and one cloud deployment
#
Notebook
Read
Run
31
Docker I: images, layers and a correct Dockerfile
read
32
Docker II: pinned dependencies, multi-stage builds, smoke tests
read
33
Continuous integration with GitHub Actions
read
34
Latency, throughput and resource use
read
35
One small cloud deployment on AWS (authorisation-gated)
read
36
Delivery and operational debugging; project milestone 3
read
Block 7 — Operating a model
#
Notebook
Read
Run
37
Structured logging and service metrics
read
38
Input monitoring and drift statistics
read
39
Drift is not degradation: delayed labels and measured performance
read
40
Model updates: retraining triggers, shadow and canary, rollback
read
41
Reliability and failure handling
read
42
Project milestone 4: monitoring demonstration and runbook
read
Block 8 — Finish, document, explain
#
Notebook
Read
Run
43
Project completion audit: reproduce from a clean clone
read
44
Technical report and model limitations
read
45
ML system design
read
46
Coding and SQL interviews, timed
read
47
Explaining the project and defending tradeoffs
read
48
Final independent assessment
read
The SKAB download (python project/get_skab.py)
06, 09-28, 30, 31, 34, 37-43
PyTorch, CPU is enough (requirements-neural.txt)
21
Docker Engine
31, 32, 36; optional steps in 33 and 35
Table of contents
01 · Diagnostic A: Python, SQL, data cleaning
02 · Diagnostic B: baselines, leakage, testing/API, explaining a decision
03 · From script to installable package: project structure and environments
04 · Configuration, logging and reproducible runs
05 · Testing ML code with pytest: what a unit test can and cannot tell you
06 · Independent refactor: a real exploratory notebook becomes the project skeleton
07 · SQL I: grain, joins, aggregation and NULL semantics
08 · SQL II: CTEs, window functions and time-series queries
09 · pandas ingestion, schemas and data-quality checks (project data arrives)
10 · Problem framing and versioned split definitions
11 · Reproducible feature generation without look-ahead
12 · Strong simple baselines and metrics that match the decision
13 · Leakage: a taxonomy and prevention by construction
14 · Group-aware and temporal validation
15 · Hyperparameter and threshold selection without fooling yourself
16 · Point-level versus event-level evaluation for detection
17 · Uncertainty: cluster bootstrap, paired comparisons, small-n honesty
18 · Error analysis and timed transfer exercise
19 · Time-series fundamentals and forecast-residual detectors
20 · Classical detectors: PCA/T2-Q, isolation forest, boosted trees on window features
21 · A neural comparison, where it is justified
22 · Experiment tracking and reproducibility at the experiment level
23 · Choosing complexity on evidence
24 · Project milestone 1: evaluation report
25 · Research experimentation versus production inference
26 · Model artifacts, metadata and versioning
27 · Online inference on streams: state, warm-up and parity
28 · FastAPI I: endpoints, schemas and input validation
29 · FastAPI II: API tests, integration tests and model lifecycle
30 · Project milestone 2: packaged inference + API
31 · Docker I: images, layers and a correct Dockerfile
32 · Docker II: pinned dependencies, multi-stage builds, smoke tests
33 · Continuous integration with GitHub Actions
34 · Latency, throughput and resource use
35 · One small cloud deployment on AWS (authorisation-gated)
36 · Delivery and operational debugging; project milestone 3
37 · Structured logging and service metrics
38 · Input monitoring and drift statistics
39 · Drift is not degradation: delayed labels and measured performance
40 · Model updates: retraining triggers, shadow and canary, rollback
41 · Reliability and failure handling
42 · Project milestone 4: monitoring demonstration and runbook
43 · Project completion audit: reproduce from a clean clone
44 · Technical report and model limitations
45 · ML system design
46 · Coding and SQL interviews, timed
47 · Explaining the project and defending tradeoffs
48 · Final independent assessment