mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Adds PredictionConfidence (cohort size + per-component agreement = the modal value's share among neighbours that lodge one) and EpcPrediction.confidence(), a compute-only signal so downstream can flag low-confidence components (ADR-0029 open item: 'confidence signal'). Sanity check on the 40-postcode corpus (1068 component predictions): agreement is strongly predictive of correctness — pooled hit-rate 21.9% (<0.5) / 46.7% (0.5-0.7) / 73.6% (0.7-0.9) / 95.5% (>=0.9); point-biserial corr(agreement, correct) = 0.582. Cohort size tracks too (<6 -> 68.4%, >=20 -> 96.0%). Surfacing / persistence is a separate HITL follow-up. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| applications | ||
| datatypes | ||
| domain | ||
| fixtures/epc_prediction | ||
| harness | ||
| infrastructure | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||