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.
| Step | What happens | Watch out for |
|---|---|---|
| 1. Data collection | Gather data from databases, sensors, forms and other sources | Permission, relevance and compliance |
| 2. Data preparation | Clean, handle missing values, scale and create useful features | Errors and bias carried into the model |
| 3. Model development | Choose an approach: e.g. CNNs for images, RNNs or transformers for sequences, tree models for tables | Picking a complex model when a simple one works |
| 4. Training | Feed the data in and let an optimiser (such as gradient descent) adjust the weights | Overfitting to the training data |
| 5. Evaluation | Test on unseen data: accuracy, precision, recall and F1 for categories; MSE and R² for numbers | Using only one metric; testing on data the model has seen |
| 6. Deployment | Put the model into an app, website or workflow, often on AWS, Azure or Google Cloud | Security, speed, cost and scaling |
| 7. Monitoring | Track performance, spot data drift and model drift, retrain when needed | Silent 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 minMap a real ML project
- Pick an AI feature you know, e.g. Netflix recommendations or a bank's fraud alerts.
- 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.
- 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.