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.

  1. Block 1 — From research code to software
  2. Block 2 — Data: SQL, pandas, quality, features, baselines
  3. Block 3 — Evaluation you can defend
  4. Block 4 — Time-series models and choosing on evidence
  5. Block 5 — Inference, artifacts and a prediction API
  6. Block 6 — Containers, CI/CD and one cloud deployment
  7. Block 7 — Operating a model
  8. Block 8 — Finish, document, explain

Block 1 — From research code to software

# Notebook Read Run
01 Diagnostic A: Python, SQL, data cleaning read Colab
02 Diagnostic B: baselines, leakage, testing/API, explaining a decision read Colab
03 From script to installable package: project structure and environments read Colab
04 Configuration, logging and reproducible runs read Colab
05 Testing ML code with pytest: what a unit test can and cannot tell you read Colab
06 Independent refactor: a real exploratory notebook becomes the project skeleton read Colab

Block 2 — Data: SQL, pandas, quality, features, baselines

# Notebook Read Run
07 SQL I: grain, joins, aggregation and NULL semantics read Colab
08 SQL II: CTEs, window functions and time-series queries read Colab
09 pandas ingestion, schemas and data-quality checks (project data arrives) read Colab
10 Problem framing and versioned split definitions read Colab
11 Reproducible feature generation without look-ahead read Colab
12 Strong simple baselines and metrics that match the decision read Colab

Block 3 — Evaluation you can defend

# Notebook Read Run
13 Leakage: a taxonomy and prevention by construction read Colab
14 Group-aware and temporal validation read Colab
15 Hyperparameter and threshold selection without fooling yourself read Colab
16 Point-level versus event-level evaluation for detection read Colab
17 Uncertainty: cluster bootstrap, paired comparisons, small-n honesty read Colab
18 Error analysis and timed transfer exercise read Colab

Block 4 — Time-series models and choosing on evidence

# Notebook Read Run
19 Time-series fundamentals and forecast-residual detectors read Colab
20 Classical detectors: PCA/T2-Q, isolation forest, boosted trees on window features read Colab
21 A neural comparison, where it is justified read Colab
22 Experiment tracking and reproducibility at the experiment level read Colab
23 Choosing complexity on evidence read Colab
24 Project milestone 1: evaluation report read Colab

Block 5 — Inference, artifacts and a prediction API

# Notebook Read Run
25 Research experimentation versus production inference read Colab
26 Model artifacts, metadata and versioning read Colab
27 Online inference on streams: state, warm-up and parity read Colab
28 FastAPI I: endpoints, schemas and input validation read Colab
29 FastAPI II: API tests, integration tests and model lifecycle read Colab
30 Project milestone 2: packaged inference + API read Colab

Block 6 — Containers, CI/CD and one cloud deployment

# Notebook Read Run
31 Docker I: images, layers and a correct Dockerfile read Colab
32 Docker II: pinned dependencies, multi-stage builds, smoke tests read Colab
33 Continuous integration with GitHub Actions read Colab
34 Latency, throughput and resource use read Colab
35 One small cloud deployment on AWS (authorisation-gated) read Colab
36 Delivery and operational debugging; project milestone 3 read Colab

Block 7 — Operating a model

# Notebook Read Run
37 Structured logging and service metrics read Colab
38 Input monitoring and drift statistics read Colab
39 Drift is not degradation: delayed labels and measured performance read Colab
40 Model updates: retraining triggers, shadow and canary, rollback read Colab
41 Reliability and failure handling read Colab
42 Project milestone 4: monitoring demonstration and runbook read Colab

Block 8 — Finish, document, explain

# Notebook Read Run
43 Project completion audit: reproduce from a clean clone read Colab
44 Technical report and model limitations read Colab
45 ML system design read Colab
46 Coding and SQL interviews, timed read Colab
47 Explaining the project and defending tradeoffs read Colab
48 Final independent assessment read Colab

   
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


Back to top

Applied ML Engineering course materials. Code is MIT licensed; prose is CC BY 4.0. The SKAB dataset is GPL-3.0 and is downloaded from its source, not redistributed here.