An end-to-end ML service that forecasts regional electricity demand from PJM interconnection load data. I scoped it so the model stayed interpretable and the engineering around it was production quality.
What's in the box
- Leakage-safe features. One time-series feature pipeline is shared by training and inference, so they can't drift apart.
- Baseline gating. A model has to beat a naive 24-hour-lag forecast before it gets packaged.
- A real API. FastAPI with strict schemas and
/health,/v1/predict, and/metricsendpoints. - Observability. Structured JSON logs and Prometheus-compatible request, error, and latency metrics.
- CI that proves it runs. Lint, pytest, a Docker build, and a container smoke test that calls the live endpoint.