gendesign/tradein-mvp/backend
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
..
app feat(tradein-estimator): unique-address-based confidence threshold 2026-05-24 14:45:46 +03:00
data/sql fix(tradein-avito): strip Emotion CSS from listings.address (#502) 2026-05-24 10:52:50 +00:00
tests fix(tradein-estimator): atomic IMV link, batched yandex history, drop redundant CAST (#509) 2026-05-24 11:18:12 +00:00
.dockerignore feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
Dockerfile feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
pyproject.toml fix(tradein-photos): sanitize uploaded images via Pillow re-encode (#511) 2026-05-24 11:32:04 +00:00