feat: repeatable small-model, figures, and training e2e scripts
- make small trains from a CSV and prints metrics + confusion matrix - make figures renders dependency-free SVGs from metrics.json - scripts/e2e_train.py boots a real server and checks snapshot, robustness, auth, one-job-at-a-time, and both training jobs with hot-swap - CI/ruff/compileall now include scripts/
This commit is contained in:
1 parent
000aaed7a5
commit
2bcf66c550
5 files changed
+952
-6
No files matched your search
@@ -1,11 +1,13 @@
|
||||
UV ?= uv
|
||||
|
||||
.PHONY: help data train test lint check serve docker clean
|
||||
.PHONY: help data train small figures test lint check serve docker clean
|
||||
|
||||
help:
|
||||
@printf '%s\n' \
|
||||
'make data parse/clean the raw CSV, join weather + holidays, export JSON' \
|
||||
'make train fit the 28-day holdout model, export metrics/forecasts/model' \
|
||||
'make small train + print the busy-hour classifier metrics from the raw CSV' \
|
||||
'make figures regenerate docs/figures/*.svg from artifacts/metrics.json' \
|
||||
'make test run pytest' \
|
||||
'make lint run ruff static checks' \
|
||||
'make check CI gate: sync --frozen, ruff, compileall, pytest' \
|
||||
@@ -19,16 +21,22 @@ data:
|
||||
train:
|
||||
$(UV) run python -m pulsecast.train
|
||||
|
||||
small:
|
||||
$(UV) run python scripts/train_small.py
|
||||
|
||||
figures:
|
||||
$(UV) run python scripts/plot_metrics.py
|
||||
|
||||
test:
|
||||
$(UV) run pytest
|
||||
|
||||
lint:
|
||||
$(UV) run ruff check src tests main.py
|
||||
$(UV) run ruff check src tests scripts main.py
|
||||
|
||||
check:
|
||||
$(UV) sync --frozen
|
||||
$(UV) run ruff check src tests main.py
|
||||
$(UV) run python -m compileall src
|
||||
$(UV) run ruff check src tests scripts main.py
|
||||
$(UV) run python -m compileall src scripts
|
||||
$(UV) run pytest -q
|
||||
|
||||
serve:
|
||||
|
||||
Reference in new issue
Block a user