Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Data & MLOpsMixed 21 series

The model lifecycle

The lifecycle looks like a line and behaves like a loop. Five stages, and the last one sends you back to the first.

Quick reference

  1. Data and labels — A frozen snapshot, one label definition, a held-out slice.
  2. Train — Pinned versions, fixed seeds, the exact commit recorded.
  3. Evaluate — Offline metrics against a baseline, sliced by user group.
  4. Deploy — Shadow first, then a canary with an automatic rollback rule.
  5. Monitor — Input drift, output quality and cost, each with a threshold.

In one line: A model is a loop, not a launch. Deploy sits in the middle; monitoring is what sends you back to the data.

Pin the inputs:

git rev-parse HEAD && pip freeze > req.txt

Explained

Data and labels

Freeze a snapshot and write the label definition down. A label that changes meaning between training and serving is the most expensive bug in the pipeline, and it will not show up in a unit test.

Train

Pin the library versions, fix the seeds and record the commit. A model you cannot rebuild is an artefact you cannot debug.

Evaluate

Compare against the baseline on slices, not only on the mean. A model that improves the average and breaks one group is not an improvement.

Deploy

Shadow traffic first, then a canary with a rollback rule written before the launch. The rollback rule is a threshold, an owner and a check, not a meeting.

Monitor

Input drift, output quality and cost. Each needs a threshold and a person who acts when one fires.

The honest caveat: the loop is slower than the line. A team that retrains weekly will ship fewer features than one that ships and forgets, and it will also discover its failures earlier.

The lesson: a model is a loop, not a launch.

Your turn: Where does your lifecycle stop?

More notes: Data & MLOps

Open in the notes app: search, filters, copy This note on GitHub