mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
"One scorer, two harnesses" (ADR-0030): the committed gate, the local script, and the future battle-test must run the *same* scoring. Extract it: - domain/epc_prediction/validation.py — `iter_predictions` (the single leave-one-out orchestration: latest-per-address hold-out, SAP-10.2 target filter, all-vintage source) + `evaluate_component_accuracy` (calculator-free ComponentAccuracy aggregation, the primary signal). Unit-tested. - harness/epc_prediction_corpus.py — `load_corpus(dir)` IO: corpus dir -> Comparable cohorts (maps payloads, carries address + registration_date). validate_epc_prediction.py now just loads + calls the scorer for the component section and iterates iter_predictions for the calculator-floored end-to-end. Identical numbers (181 targets, SAP MAE 6.34) — behaviour-preserving. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| addresses | ||
| billing | ||
| epc_prediction | ||
| fuel_rates | ||
| magicplan | ||
| modelling | ||
| property | ||
| property_baseline | ||
| sap10_calculator | ||
| tasks | ||
| __init__.py | ||
| test_building_geometry.py | ||
| test_postcode.py | ||