The Core MLOps Principles
Today the Tunebox churn model is retrained once a month by one person on their laptop, and the resulting file is emailed to the ops team. It works — until that person is on holiday, or their laptop has a newer library, or someone asks "which data made the model we shipped in March?" MLOps principles exist to make those questions boring.
The rule
Version everything, automate the repeats, test the data, watch the result.
Each part of the rule is one principle:
- Version everything. Code, data, parameters, environment and the model file itself all get a version, and they are linked. Given any model, you can say exactly what produced it — and rebuild it. This is reproducibility.
- Automate the repeats. Anything done more than twice — fetching data, training, evaluating, deploying — becomes a script or pipeline that a machine runs. Humans make decisions; machines do rituals.
- Test the data (and the model), not just the code. A test can check that the training table has no negative
skips_per_week, or that a new model's recall is not worse than the current one's. - Watch the result. After release, monitor inputs, predictions and outcomes, because a model can decay while its code stays perfect.
Teams usually adopt these in stages. At the start everything is manual. The next step is an automated training pipeline, so retraining is one command or a schedule — often called continuous training. After that, changes to the pipeline itself go through CI/CD, so improving the training code is as safe as improving any other software.
The shortcut
For any ML process, ask four questions in order. Every "no" is a principle you are missing.
- Could I rebuild it? (versioning)
- Does a machine do the repeats? (automation)
- Would a bad input or a worse model be caught? (testing)
- Would we notice it getting worse live? (monitoring)
Could I rebuild it?
No. Nobody recorded the data snapshot, commit or library versions behind each emailed file.
Notice the order: without versioning you cannot automate reliably, and without automation, testing each retrain is a chore nobody keeps doing.
Drills
Answer fast — trust the rule.
Which principle lets you answer "which data trained the model we shipped in March"?
What is "continuous training"?
Which is a data test rather than a code test?
A team versions everything and automates retraining, but never looks at live predictions. Which question from the shortcut fails?
Remember
- Version everything, automate the repeats, test the data, watch the result.
- Audit any process with four questions: rebuild, automate, catch, notice.
- Trap: treating a working model as finished; data changes even when code does not.
