gendesign/tradein-mvp/backend/app/core
lekss361 6939bd11f7 feat(tradein): refine same-building anchor for within-building heterogeneity
Anchor over-priced cheaper/smaller units in flagship buildings (Хохрякова 48
3к/153: real 61M, est 100M). Two conservative levers: (1) tighten premium p70
uplift gate to area>=p66 AND rooms>=building-median (a 3-room in a 4-room-flagship
building no longer inherits the flagship ppm2); (2) floor-similarity Gaussian on
relative position floor/total_floors (estimate_sb_floor_sigma=0.25, 0 disables).
Offline-validated on 55 golden cases: zero coverage flips, elite medAPE 16.6->5.4,
3к/153 overshoot 64%->1.5%; flagships (Хохрякова 4к, Олимп пентхаус) stay covered.
ruff clean; 34 anchor tests + 259 broader green.

Refs #651 #677
2026-05-30 03:02:37 +03:00
..
__init__.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
auth.py feat(rbac): role-based access control via X-Authenticated-User middleware (#585) 2026-05-26 06:18:40 +00:00
config.py feat(tradein): refine same-building anchor for within-building heterogeneity 2026-05-30 03:02:37 +03:00
db.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
fdw.py feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00
ratelimit.py fix(tradein): bypass rate-limit for authenticated pilots + configurable limit (#655) (#669) 2026-05-29 15:56:30 +00:00