Study interactive :: Progress tools open in the Study Hub reader.

Eval traps: CS and software backgrounds

Software habits can hide ML failure modes. This chapter names the traps that show up when you treat models like ordinary services. Methods still live in Modules 00–25.

Trap 1. Offline green, online wrong

You unit-test the handler. The model returns JSON. Latency looks fine. Users still get worse outcomes.

Trap 2. Random split on time-ordered or user-linked rows

Shuffling rows is normal for many coding datasets. It is often wrong for product logs.

Trap 3. Leakage through future joins

You join “conversion” or “churn” tables that already include outcomes known only after the prediction time.

Trap 4. Accuracy theater on rare events

Fraud, abuse, and rare defects look like ordinary classification until positives are 0.1%.

Trap 5. Wrapping a foundation model without an eval harness

Calling an API is easy. Knowing whether the product improved is not.

Trap 6. System design without a measurement plan

A clean architecture diagram does not prove the model helps.

Quick checklist before you claim a win

Try next: Open Module 05, then skim ML System Design Guide with one concrete service in mind.