Skip to the workspace
Pebellslearn by building
What is MLOps?  ›  Lesson

The Core MLOps Principles

MLOps Principles 14 minMLOps rests on a few principles: version code, data and models together, automate every repeatable step, test data and models as well as code, and monitor after release.

mlops / The Core MLOps Principles

Explore each scene at your own pace.

01 · The rule

The rule

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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.