This commit is contained in:
2026-04-06 18:41:16 +10:00
parent 3a7309b2cf
commit 1ef300d25e
6 changed files with 52 additions and 24 deletions
+10 -10
View File
@@ -90,7 +90,7 @@ All examples below assume a 4-hour horizon (`--horizon-hours 4`) and `model-name
```sh
export DATABASE_URL="postgres://postgres:postgres@localhost:5432/micrometeo?sslmode=disable"
python scripts/audit_rain_data.py \
scripts/rainml_py.sh scripts/audit_rain_data.py \
--site home \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -100,7 +100,7 @@ python scripts/audit_rain_data.py \
### 3) Train baseline model
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -117,7 +117,7 @@ python scripts/train_rain_model.py \
### 3b) Train expanded (P1) feature-set model
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -132,7 +132,7 @@ python scripts/train_rain_model.py \
### 3b.1) Train expanded + calendar (P2) feature-set model
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -146,7 +146,7 @@ python scripts/train_rain_model.py \
### 3c) Train tree-based baseline (P1)
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -161,7 +161,7 @@ python scripts/train_rain_model.py \
### 3d) Auto-compare logistic vs tree baseline
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -175,7 +175,7 @@ python scripts/train_rain_model.py \
### 3e) Full P1 evaluation (tuning + calibration + walk-forward)
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -194,7 +194,7 @@ python scripts/train_rain_model.py \
### 3f) Walk-forward threshold policy (more temporally robust alert threshold)
```sh
python scripts/train_rain_model.py \
scripts/rainml_py.sh scripts/train_rain_model.py \
--site "home" \
--start "2026-02-01T00:00:00Z" \
--end "2026-03-03T23:55:00Z" \
@@ -210,7 +210,7 @@ python scripts/train_rain_model.py \
### 4) Run inference and store prediction
```sh
python scripts/predict_rain_model.py \
scripts/rainml_py.sh scripts/predict_rain_model.py \
--site home \
--model-path "models/rain_model.pkl" \
--model-name "rain_next_4h" \
@@ -252,7 +252,7 @@ docker compose logs -f rainml
### 7) Recommend deploy candidate from saved reports
```sh
python scripts/recommend_rain_model.py \
scripts/rainml_py.sh scripts/recommend_rain_model.py \
--reports-glob "models/rain_model_report*.json" \
--require-walk-forward \
--top-k 5 \