Lesson 2: A scoring service that bends instead of breaking
28 min read·
Module 9 · Lesson 2 · About 60 minutes · Needs: lesson 1 (the scoring API), Module 5 lesson 4 (training-serving skew), Module 3 lesson 3 (the logistic baseline). The models are trained in one cell here.
The situation
Week 9, Thursday. Lesson 1's service works on a quiet laptop. Rhys asks what happens at 18:00, when every depot scans its collections at once, when a model file is corrupt, or when a GPU model needs more machines than are running. Tomasz asks whether the service builds its inputs exactly as training did.
The running example is KP0104204 (simulated), collected from Dartford at 18:00 on 2 September 2026, in the evening peak. This lesson's model gives it 0.588.