feat(tradein-estimator): unique-address-based confidence threshold #513

Merged
lekss361 merged 1 commit from feat/tradein-confidence-unique-addresses into main 2026-05-24 11:52:00 +00:00

1 commit

Author SHA1 Message Date
lekss361
0eac769db2 feat(tradein-estimator): unique-address-based confidence threshold
Previous confidence used raw n_analogs which inflated to 'high' when
MIN_ANALOGS_PER_SOURCE quota + same-building lots concentrated count on
few unique addresses.

New logic:
- high: unique_addr >= 7 AND iqr_pct < 15%
- medium: unique_addr >= 4 OR (unique_addr >= 2 AND iqr_pct < 25%)
- downgrade one step if avg_lots_per_addr > 2.5 (anti-concentration bias)

probe-confidence-distribution.py added for tuning p75 threshold on real data.
2026-05-24 14:45:46 +03:00