Simulate the passage of time. Watch how a perfectly trained model degrades in production as the underlying data distribution slowly drifts away from the training baseline.
A machine learning model is a snapshot of the world at the moment it was trained. But the world is not static. Customer preferences change, economic conditions shift, and new patterns emerge. Model Drift is the degradation of a model's predictive power over time because the real-world environment has changed since the model was deployed.
This visualization shows a model trained at "Month 0". As you simulate the passage of time, you'll see the relationship between the model's predictions and the live data diverge, causing the error to increase. There are two primary types of drift to explore.
This occurs when the fundamental relationship between the input variables and the target variable changes. The "rules of the game" have changed. In the visualization, the green dashed line (the true underlying pattern) will slowly change its shape over time, while the data points continue to follow it. The deployed model (red line), which learned the original pattern, becomes increasingly wrong.
This occurs when the distribution of the input data changes, even if the underlying concept remains the same. The model starts seeing data it has never encountered before. In the visualization, the green dashed line will remain static, but the blue data points will drift horizontally into a new region. The model, which was only trained on data from the initial region, has no idea how to make accurate predictions for these new inputs.
A third type, Sudden Shock, is an extreme form of drift where a major event instantly changes the data or concept, like the effect of a global pandemic on shopping behavior.
Use the interactive panel to see how drift destroys a model's performance and how retraining can fix it.
Drift is not a sign of a bad model; it is an inevitability for any model deployed in a dynamic environment. The solution is not to build a "perfect" model but to have a robust MLOps (Machine Learning Operations) strategy. This involves: