COURSE 17L2100% FREE
Verified 2026-08-14

Training-serving skew lab

A practice lab to detect when **features differ** between training and live serving—silent accuracy death. Google Cloud’s MLOps level-0 challenges call out handoffs where engineers rebuild features for production APIs, creating skew. Lev...

What it is

A practice lab to detect when features differ between training and live serving—silent accuracy death. Google Cloud’s MLOps level-0 challenges call out handoffs where engineers rebuild features for production APIs, creating skew. Level-1 feature stores exist largely to prevent that.

<!-- IMAGE: same event → two feature paths → diff checker -->

MEDIUM PRIORITYINFOGRAPHIC
◷ IN PRODUCTION

Visual Spec & Architecture Diagram

Skew sources checklist visual: different libraries, missing features online, timezone bugs, training on future labels. Red X / green check examples.

Educational Focus: Lab-oriented failure catalog.

Why it matters

Many “model went bad” stories are skew, not concept drift. Fixing the model while two codepaths disagree wastes weeks.

How it works (plain)

  1. Pick a sample of real events.
  2. Compute features two ways (batch/train path vs live/serve path).
  3. Diff values within tolerance.
  4. Fail the pipeline if mismatches exceed budget.
  5. Fix shared code/store—not a one-off notebook patch.

Everyday example

Two cashiers ringing up the same cart with different tax rules. The receipt “looks fine” until audit day.

Try it

Intentionally change timezone handling in one path only; watch diffs light up. Then unify the helper.

Myths

⚠️ Myth: Same SQL file guarantees same results everywhere.
✓ Reality: Clocks, locales, late data, and caching break parity.
⚠️ Myth: Skew only happens at Big Tech scale.
✓ Reality: Any train/serve split can diverge.

Sources