feat(generative): calibrate finmodel sale price from Objective market (epic #1881 PR-2) #1883
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1883
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/finmodel-price-calibration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Эпик #1881 PR-2 — заменяет хардкод-цену продажи жилья на реальную рыночную медиану из Objective по локации участка.
compute_financialостаётся ЧИСТЫМ (без БД) — DB-lookup в API-слое, цена прокидывается параметром.Логика
_lookup_market_price(db, lon, lat): центроид → ближайшийekb_district(ST_DWithin 5км) → медианаobjective_lots.price_per_m2_rub(n≥10, 30k-600k) → fallbackekb_districts.median_price_per_m2→ None. try/except → graceful(None, class_norm)при любой ошибке без краха генерации.compute_financial+optionalmarket_price_per_sqm/price_source; калибруем только жильё (паркинг/СМР — норма).FinancialModel+price_per_sqm_used/price_is_calibrated/price_source(additive).generate→placement→compute_financial(optional kwargs, backward-compat).Prod-verified покрытие
Калибруется 4 главных ЕКБ-района по name-match: Академический (204k лотов), Ленинский (38k), Кировский, Орджоникидзевский. Остальные 5 admin-районов честно →
district_reference(ekb median). Гео-радиус matching (objective→complex→coords для полного покрытия) — noted follow-up.Test plan
:x::typeпусто); read-only lookup, нет утечки сессииFollow-up
геo-радиус matching для 5 non-name-match районов; ROI display-cap (из PR-1 nit).
Refs #1881
🤖 Generated with Claude Code