Daten- und Modelldrift erkennen
Erkennen Sie, wenn sich die Welt unter Ihrem Modell verändert.
Daten- und Modelldrift erkennen ist eine kostenlose Deep Learning Academy-Lektion auf CoddyKit. Dies ist Lektion 3 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Deep Learning Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Deep Learning Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
The World Keeps Moving
Your model learned yesterday's patterns, but real data keeps changing. When it shifts, predictions quietly get worse. We call this problem drift. 🌊
Two Flavors of Drift
There are two kinds to watch. Data drift means the inputs change shape, while concept drift means the relationship between inputs and labels changes.
A Concrete Example
A spam filter trained on old emails sees new tricks it never met. The inputs drifted, so its once-sharp accuracy slowly decays in production.
Watch the Input Distribution
The first signal of drift is in the features. Compare the distribution of recent inputs to your training data and look for a shift in the shape.
ref_mean = X_train.mean(axis=0)
live_mean = X_live.mean(axis=0)Measure the Gap
To quantify how far two distributions diverge, use a statistic like KS, the Kolmogorov-Smirnov test, which returns a number plus a p-value.
from scipy.stats import ks_2samp
stat, p = ks_2samp(X_train[:,0], X_live[:,0])Set a Threshold
A small p-value means the live data no longer matches training. Pick a threshold and trigger an alert whenever the gap crosses it.
if p < 0.05:
print("drift detected")Watch Predictions Too
Even without labels, the spread of your model's outputs is a clue. A sudden shift in predicted probabilities often signals incoming drift.
The Best Signal Is Truth
When real labels eventually arrive, compare them to past predictions. Falling live accuracy is the clearest, most direct proof that drift is hurting you.
Tools That Watch for You
You need not build everything by hand. Libraries like Evidently compute drift reports across all features and flag the columns that moved.
from evidently.report import ReportMonitor Continuously
Drift is not a one-time check. Run these comparisons on a schedule so your monitoring catches slow shifts long before users complain.
Detection Is Half the Battle
Spotting drift early lets you act before damage spreads. The natural next move is to retrain on fresh data and restore the model's edge.
Quick Check
What does concept drift specifically describe?
Recap
You learned to spot drift: compare live inputs to training, measure the gap with tests, watch predictions, and monitor on a schedule. 🎉
Häufig gestellte Fragen
Ist die Lektion „Daten- und Modelldrift erkennen“ kostenlos?
Ja — der vollständige Text von „Daten- und Modelldrift erkennen“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Deep Learning Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Deep Learning Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Daten- und Modelldrift erkennen“?
Erkennen Sie, wenn sich die Welt unter Ihrem Modell verändert. Du übst Deep Learning Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Deep Learning Academy zu starten?
Keine Vorkenntnisse erforderlich. Deep Learning Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 3 von 4.
Wie lange dauert die Lektion „Daten- und Modelldrift erkennen“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Deep Learning Academy-Lektion Code schreiben und ausführen?
Ja. Jede Deep Learning Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Experimente mit Weights & Biases verfolgen
- Daten und Modelle versionieren
- Daten- und Modelldrift erkennen
- Retraining-Pipelines automatisieren