Skip to main content
πŸ”’ Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial β†’
⚑
← Coursesβ€ΊData Science AppliedModule 5 Β· Production ML Pipelines Β· Recapβ€ΊπŸŽ― Review: Data Science module 5 recapscenario84 / 104
+80 XP
Task
Build `drift_detector(baseline_mean, current_mean, std, threshold)` β€” returns `True` if the current feature mean has drifted significantly from baseline: - Compute z-score: `|current_mean - baseline_mean| / std`. - Return `True` if z-score `>= threshold` (drift), else `False` (stable). - `std == 0` β†’ return `False` (no spread β†’ can't compute meaningful drift; flagging would be alert noise). - This is the simplest production drift signal β€” runs nightly per feature.
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
πŸ“Š Result
Press Run to see result...

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…