From data to deployment: the end-to-end ML workflow

Building a machine learning model is only one part of the job. A real AI solution goes through seven steps, from collecting data to monitoring the model after launch. Teams that skip the later steps often build models that work in testing but fail in the real world.

Everyday analogy

Opening a restaurant. Buying ingredients (data), prepping them, designing the menu (model), practising the dishes (training), a tasting session (evaluation), opening night (deployment), and then reading reviews and adjusting the menu every month (monitoring).

Example

A bank's fraud model works well at launch. Six months later, criminals change tactics and fraud slips through. Monitoring spots the drop, the team collects recent examples, retrains, and redeploys.

1Collect2Prepare3Build4Train5Evaluate6Deploy7Monitormonitoring feeds back: retrain when performance drifts
An ML project is a loop, not a straight line: monitoring tells you when to go back and retrain.
StepWhat happensWatch out for
1. Data collectionGather data from databases, sensors, forms and other sourcesPermission, relevance and compliance
2. Data preparationClean, handle missing values, scale and create useful featuresErrors and bias carried into the model
3. Model developmentChoose an approach: e.g. CNNs for images, RNNs or transformers for sequences, tree models for tablesPicking a complex model when a simple one works
4. TrainingFeed the data in and let an optimiser (such as gradient descent) adjust the weightsOverfitting to the training data
5. EvaluationTest on unseen data: accuracy, precision, recall and F1 for categories; MSE and R² for numbersUsing only one metric; testing on data the model has seen
6. DeploymentPut the model into an app, website or workflow, often on AWS, Azure or Google CloudSecurity, speed, cost and scaling
7. MonitoringTrack performance, spot data drift and model drift, retrain when neededSilent decline when the world changes

MLOps in one sentence

MLOps is the set of practices and tools that automate this loop: versioning data and models, testing, deploying safely and monitoring, much like DevOps does for ordinary software.

The goal isn't just to build a model, but to deliver a reliable, scalable and sustainable solution that keeps creating value after launch.

Try it yourself

About 15 min

Map a real ML project

  1. Pick an AI feature you know, e.g. Netflix recommendations or a bank's fraud alerts.
  2. Write one line for each of the 7 steps: what data, how it's prepared, what model, how it's tested, where it runs and what is monitored.
  3. Mark the step you think is most likely to go wrong.

What you should see: Most of the effort sits outside "training the model": data, deployment and monitoring.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectYour first machine learning model: predict house pricesAbout 75 min · Copy-paste code · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.