mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A predicted EPC is seeded by deep-copying one representative neighbour's structure. _template chose the member whose floor area was closest to the cohort median, ignoring building-part labels. When that member's only part was lodged with a null identifier (mapped to OTHER), the prediction had no MAIN part and the modelling_e2e handler rejected it as "not predictable" — discarding an otherwise-rich same-type cohort. Restrict the template to MAIN-bearing members (median still over the whole cohort); fall back to closest-on-size only when none are MAIN-bearing, so an all-unlabelled cohort is left for the handler's MAIN-part guard to reject rather than silently relabelling real data. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_comparable_properties.py | ||
| test_component_accuracy_gate.py | ||
| test_epc_prediction.py | ||
| test_prediction_comparison.py | ||
| test_prediction_target.py | ||
| test_validation.py | ||