AI Academy

Structured tracks from the basics to generative AI and agents, with sequential lessons and quizzes.

201lessons

MLOps: Deploying and Operating ML Models Beginner 11 minutes

The ML Model Lifecycle

Why many models fail after succeeding in the notebook, and what is meant by technical debt in machine learning.

Your progress in the track0%

The life cycle

  1. Defining the problem: what is the decision? What is the business or clinical success metric?
  2. Data: Collection, labelling, validation and documentation.
  3. Experimentation: models, features and parameters.
  4. Evaluation: metrics, error analysis and subgroups.
  5. Deployment: a service, batches, or on the device.
  6. Monitoring: Performance, drift and cost.
  7. Retraining and improvement.

Technical debt specific to machine learning

SourceExample
Entangled inputsChanging one feature changes everything
Dependence on unstable dataA table that another team changes without notice
Feedback loopsPredictions influence future data
Glue codeMany untested transformation scripts
Configuration debtHuge configuration files without validation

Maturity levels (according to Google's classification)

LevelDescription
0Manual training and deployment
1An automated training pipeline and continuous training
2Continuous integration and deployment pipelines for the pipelines themselves

Do not start with the most complex platform; start with reproducibility and tracking, then add automation when it becomes a real need.

Lesson terms

Technical debt
The accumulated future cost of quick choices today that make the system harder to maintain and change.
MLOps
Practices and tools for reliably automating the development, deployment, monitoring and retraining of machine learning models.

Abstract

A model's life cycle includes defining the problem, collecting and preparing the data, experimentation and training, evaluation, deployment, monitoring and retraining. Machine learning systems accumulate their own kind of technical debt: entangled features, dependence on unstable data, feedback loops, and glue code. MLOps is a set of practices that apply DevOps principles to data and models, and it is described in maturity levels from manual processes to full automation.

Review questions

  1. Name two sources of technical debt specific to machine learning.

    Dependence on data that changes outside your control, and feedback loops in which the model's predictions influence its future data.

  2. What is the difference between DevOps and MLOps?

    MLOps adds the management of data, experiments and models and the statistical monitoring of performance to DevOps practices.

Sources and references

  1. Sculley et al. (2015) — Hidden Technical Debt in Machine Learning Systems
  2. Google Cloud — MLOps: Continuous delivery and automation pipelines in ML
  3. Kreuzberger et al. (2023) — MLOps: Overview, Definition, and Architecture

Complete the lesson