01The end-to-end system
The capstone joins every module into one service for a high-volume Ugandan Regional Referral Hospital:
- Data β the stroke dataset with leakage-free preprocessing in an sklearn Pipeline (module 1).
- Artifact β the whole pipeline saved with joblib, versioned and checksummed (module 2).
- API β FastAPI + Pydantic
/predict, model loaded once per worker (module 3). - Infrastructure β CPU instances in a nearby region, Spot only for retraining (module 4).
- Container β multi-stage, non-root Docker image (module 5).
- Release β canary with automatic rollback (module 6).
- Performance β ONNX/INT8 if latency demands it (module 7).
- Monitoring β PSI drift detection and delayed-label evaluation (module 8).
What the capstone adds: choosing the decision threshold for clinical use, and explaining each prediction to the physician.