Model/tests/domain/epc_prediction
Khalim Conn-Kowlessar 6b4f883bc8 Re-baseline epc-prediction gates for the #1669 ground-truth change 🟩
The ADR-0030 component-accuracy and expired-pairs gates re-derive the *actual*
EpcPropertyData through the same mapper the leave-one-out scorer predicts against.
#1669 (measurement_type=2 external->internal conversion, RdSAP §3.4 + Table 2)
gives the fixture's external certs sharper internal dimensions, which tips the
geo-proximity-weighted donor mode on three components by single-target amounts:
total_window_area 3.7184 -> 3.7484, door_count 0.3333 -> 0.3737, has_pv floor
0.8929 -> 0.8571 (one pair 25/28 -> 24/28).

This is a ground-truth-method change, not a prediction-logic loosening: the fix
is spec-correct, corpus MAE improved (0.571 -> 0.570) and the real-cert accuracy
pin held. Per the gate convention the affected floors/ceilings are re-baselined
to the measured values with the attribution recorded; tighten-only resumes here.
Bisected: #1666/#1667 leave the gates green; #1669 introduces all three shifts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 15:34:12 +00:00
..
__init__.py feat(epc-prediction): Comparable Properties selection ladder (ADR-0029) 2026-06-13 23:44:57 +00:00
test_comparable_properties.py The historic roof description conditions the cohort by form family 🟥 2026-07-06 11:50:45 +00:00
test_component_accuracy_gate.py Re-baseline epc-prediction gates for the #1669 ground-truth change 🟩 2026-07-22 15:34:12 +00:00
test_epc_prediction.py Predict ventilation kind from the cohort mode 🟥 2026-06-26 10:49:37 +00:00
test_expired_pairs_gate.py Re-baseline epc-prediction gates for the #1669 ground-truth change 🟩 2026-07-22 15:34:12 +00:00
test_historic_conditioning.py The historic roof description conditions the cohort by form family 🟥 2026-07-06 11:50:45 +00:00
test_prediction_comparison.py feat(epc-prediction): roof-insulation +/-1-bucket reporting 2026-06-15 14:04:18 +00:00
test_prediction_target.py refactor(epc-prediction): PR review — rename ComparableProperty, relocate PredictionTarget 2026-06-16 13:34:44 +00:00
test_validation.py Set main_heating on the test_validation partial EPC builder 🟩 2026-06-26 12:35:01 +00:00