Lesson 1: Batch, online and streaming: three ways to score
26 min read·
Module 9 · Lesson 1 · About 55 minutes · Needs: Module 3 lesson 3 (the warning threshold), Module 8 lesson 3 (latency percentiles), and what an HTTP request is. The model is trained in one cell here, so the lesson runs on its own.
The situation
Week 9 at Kestrel. The model exists; nothing calls it yet. Morag needs every parcel due today scored before the 06:00 warnings. Rhys needs a score within his 50 ms p99 when a driver scans a parcel at collection. Tomasz asks whether the scan feed could be scored as it streams.
One parcel runs through the lesson: KP0104204 (simulated), collected from Dartford on Wednesday 2 September 2026 at 18:00, promised Thursday 3 September. Kestrel scores it online at collection and again in the 06:00 batch.