update for 4 hour rain forecast

This commit is contained in:
2026-04-06 18:32:33 +10:00
parent fb50c8ed71
commit 3a7309b2cf
20 changed files with 716 additions and 132 deletions
+7 -2
View File
@@ -4,7 +4,9 @@ set -euo pipefail
SITE="${SITE:-home}"
START="${START:-2026-02-01T00:00:00Z}"
END="${END:-2026-03-03T23:55:00Z}"
MODEL_VERSION="${MODEL_VERSION:-rain-logreg-v1}"
HORIZON_HOURS="${HORIZON_HOURS:-4}"
MODEL_NAME="${MODEL_NAME:-rain_next_${HORIZON_HOURS}h}"
MODEL_VERSION="${MODEL_VERSION:-rain-logreg-v2-${HORIZON_HOURS}h}"
MODEL_PATH="${MODEL_PATH:-models/rain_model.pkl}"
REPORT_PATH="${REPORT_PATH:-models/rain_model_report.json}"
AUDIT_PATH="${AUDIT_PATH:-models/rain_data_audit.json}"
@@ -24,6 +26,7 @@ python scripts/audit_rain_data.py \
--site "$SITE" \
--start "$START" \
--end "$END" \
--horizon-hours "$HORIZON_HOURS" \
--feature-set "$FEATURE_SET" \
--forecast-model "$FORECAST_MODEL" \
--out "$AUDIT_PATH"
@@ -33,6 +36,7 @@ python scripts/train_rain_model.py \
--site "$SITE" \
--start "$START" \
--end "$END" \
--horizon-hours "$HORIZON_HOURS" \
--train-ratio 0.7 \
--val-ratio 0.15 \
--min-precision 0.70 \
@@ -50,7 +54,8 @@ echo "Writing current prediction..."
python scripts/predict_rain_model.py \
--site "$SITE" \
--model-path "$MODEL_PATH" \
--model-name "rain_next_1h" \
--model-name "$MODEL_NAME" \
--horizon-hours "$HORIZON_HOURS" \
--forecast-model "$FORECAST_MODEL"
echo "P0 rain workflow complete."