gendesign/tradein-mvp/backend/app
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
..
api fix(tradein-photos): sanitize uploaded images via Pillow re-encode (#511) 2026-05-24 11:32:04 +00:00
core feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00
schemas feat(tradein): in-app scheduler — UI-managed schedule (replaces SSH crontab) (#482) 2026-05-23 14:54:25 +00:00
services feat(tradein-estimator): unique-address-based confidence threshold 2026-05-24 14:45:46 +03:00
tasks fix(tradein): geocode backfill + remove Avito exclusion from estimator (#490) 2026-05-23 20:03:48 +00:00
__init__.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
main.py feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00