Evaluation infrastructure & experiment tracking
P13.ml-lifecycle.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: LLM & Generation Evaluation
Where next?
Later in ML Lifecycle
This module unlocks
Go up a level
P13.ml-lifecycle.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: LLM & Generation Evaluation
Later in ML Lifecycle
This module unlocks
Go up a level
A quality score computed once, in a notebook, on whatever data was handy, proves nothing a week later — you cannot tell whether the model improved or the evaluation itself drifted. That is why production teams treat evaluation as infrastructure rather than a notebook cell, and this module, which opens the Production ML and MLOps pillar, shows what the shift means in practice. The P5 evaluation track taught which metric to compute; here the metric becomes a system, with eval datasets frozen and versioned, every run tracked in a tool such as Weights and Biases, MLflow, or Braintrust, an automated gate that stops a model or prompt from shipping when its scores regress, and a model-graded harness whose judge is itself calibrated against human raters. The same signals then carry forward into production monitoring, where offline evaluation and online observation turn out to be two views of one thing.
P5.evaluation.01–03 give you the numbers — precision/recall/F1, BLEU/ROUGE, BERTScore, nDCG, LLM-as-judge scores. In production none of that is trustworthy unless it is reproducible and comparable across runs. That is what eval infrastructure buys you.
Three pillars turn a one-off metric into an eval system:
The Doctolib System-Design interview (Q9) asks for exactly this stack: offline eval + online A/B + LLM-specific evaluation, tracked in W&B / MLflow / Braintrust. The next steps build each piece.
Practise this lesson's 3 self-checks
One per screen: you reveal each answer and mark it yourself. Nothing is recorded.
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Build the experiment-tracking loop yourself — a file-based run tracker, a
primary-metric-with-guardrail selector, and an offline-eval regression gate —
then do it with the real tool: a fourth rung runs in the
mlops kernel and logs to a genuine MLflow store.
Local-first — the kernel has no network, so MLflow uses a local
sqlite: store, no server (ADR-011).
Loading exercise…
Loading exercise…
Loading exercise…
Loading exercise…
eval_set version so a metric jump is unambiguous.Where the pieces of this module lead.
| Type | Resource |
|---|---|
| In-app | P5.evaluation.01–03 — the metrics this infrastructure runs (precision/recall/F1, BERTScore, LLM-as-judge, Cohen's κ) |
| In-app | P13.llmops.01 — Applied LLMOps: cost/latency routing, eval-in-the-loop, incident playbooks |
| In-app | P13.operations.02 — Monitoring & drift (reserved) — the online half of the loop |
| Docs | MLflow tracking & model registry; Weights & Biases experiments; Braintrust eval |
A scratch console for this page's ideas — ungraded, nothing you run here is recorded.
Scratch console
A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.
Output appears here.
Loading your notes...