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

Generated
+17 -3
View File
@@ -433,11 +433,16 @@ dependencies = [
{ name = "numpy" },
{ name = "pandas" },
{ name = "pyarrow" },
{ name = "pytest" },
{ name = "python-multipart" },
{ name = "scikit-learn" },
{ name = "uvicorn", extra = ["standard"] },
]
[package.dev-dependencies]
dev = [
{ name = "pytest" },
]
[package.metadata]
requires-dist = [
{ name = "fastapi", specifier = ">=0.162.7" },
@@ -446,13 +451,13 @@ requires-dist = [
{ name = "numpy", specifier = ">=2.5.4" },
{ name = "pandas", specifier = ">=3.1.1" },
{ name = "pyarrow", specifier = ">=26.0.1" },
{ name = "pytest", specifier = ">=9.2.0" },
{ name = "python-multipart", specifier = ">=0.0.20" },
{ name = "scikit-learn", specifier = ">=1.9.1" },
{ name = "uvicorn", extras = ["standard"], specifier = ">=0.54.0" },
]
[package.metadata.requires-dev]
dev = []
dev = [{ name = "pytest", specifier = ">=9.2.0" }]
[[package]]
name = "pyarrow"
@@ -674,6 +679,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/60/d1/38f3a3405989a89ac18390803e70c6ad7c7760da4f9b83cbeca0c44a0c72/python_dotenv-1.2.4-py3-none-any.whl", hash = "sha256:42269a8a5b3fd54ffa6f3d84b18abed50064717576b4ecf03dc4a55d8aa04fdc", size = 23266, upload-time = "2026-10-01T05:36:08.633Z" },
]
[[package]]
name = "python-multipart"
version = "0.0.33"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/9f/b7/15b905f6142a9a8a68f66900788da1a32e4d4254452783b37ad1eccb0506/python_multipart-0.0.33.tar.gz", hash = "sha256:b8112424a6abd162ec08d390565dd113ad699f2fe6fef3c987b8bbcbfe9e390d", size = 50499, upload-time = "2026-10-31T14:23:47.461Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/dd/1b/6b1b4164ec734cac911460ab599bfbe46afedd42c5c9627fe4235942c314/python_multipart-0.0.33-py3-none-any.whl", hash = "sha256:8f16c07b36add9da6b2ee87d3efcaf0a45a6de9c3d0a5dd94e9ccf7675a7bc45", size = 32253, upload-time = "2026-10-31T14:23:46.33Z" },
]
[[package]]
name = "pyyaml"
version = "6.0.3"