Skip to main content
⚑
← Coursesβ€ΊData Science AppliedModule 6 Β· Deep Learning + MLOpsβ€ΊπŸ† Final capstone: ML production blueprintmission100 / 100
πŸ’¬ DiscussπŸ§ͺ Playground+250 XP
Task
πŸ“ **Task:** Implement two functions: 1. `register_model(model_id, metric)` β†’ returns the new version number (1, 2, 3, ...). Stores each registration in a module-level `REGISTRY` dict keyed by `model_id`. 2. `detect_drift(train_mean, train_std, live_values)` β†’ returns `True` if the mean of `live_values` is more than 2Οƒ away from `train_mean`. Then run the checks shown below. Expected output (5 lines): ``` 1 2 {'version': 2, 'metric': 0.87} False True ``` πŸ“‹ Implement the function above. Tests run automatically. πŸ’‘ **Hint:** Re-read the theory if you get stuck.

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only β€” ~5-10s. Stays cached afterward.
πŸ“Š Result
Press Run to see result...
πŸ“£ Help someone learn PythonShare this lesson with a friend β€” the first 15 are free, no signup.Tweet

πŸ’¬ Discussion

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