feat: complete ML pipeline, FastAPI service, small model, tests, image

- finish the global HistGB bundle, scenario forecasts and 28-day ablation
- export sensors/series/forecasts/metrics/context plus baked weather frames
- add FastAPI health/meta/predict/simulate and background /train jobs
- add the p75 busy classifier, retraining from CSV, and hot-swap persistence
- add pytest coverage, multi-stage non-root Dockerfile, README and model card

Holdout: weather 7d MAE 3.32 / WAPE 27.5% / R2 0.777 vs seasonal naive
MAE 4.23 / WAPE 35.0% / R2 0.656 (5,350 eval rows).
This commit is contained in:
Noel Sabia committed 2026-11-14 05:01:16 +01:00
1 parent 68402803b2
commit 939a8db482
43 files changed
+4090 -105

No files matched your search

+4 -2
View File
@@ -11,7 +11,7 @@ dependencies = [
"numpy>=2.5.4",
"pandas>=3.1.1",
"pyarrow>=26.0.1",
"pytest>=9.2.0",
"python-multipart>=0.0.20",
"scikit-learn>=1.9.1",
"uvicorn[standard]>=0.54.0",
]
@@ -28,4 +28,6 @@ testpaths = ["tests"]
addopts = "-q"
[dependency-groups]
dev = []
dev = [
"pytest>=9.2.0",
]