fix(estimator): robustness — ratio-tier по финалу, radius-floor, yandex area, expected_sold ≤ asking #1859
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#1859
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/estimator-robustness-medium3"
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?
Medium-находки аудита «Мера» + дефект, пойманный большим смоком. 4 покоммитных фикса, пороги в settings (флаги, дефолт ≈ безопасное поведение).
Коммиты
352dfc80asking_to_sold ratio tier по финальному headline — ratio выбирался по PRE-anchor median, применялся к POST-anchor headline → tier-mismatch. Теперь вызов_get_asking_sold_ratio(anchor_ppm2=финал)ПОСЛЕ corridor-clamp/radius-floor.b6ea9861radius-path нижний floor от DKP — anchor-путь имел floor, radius+quarter-index-вниз — нет (асимметричный undershoot). Floor =dkp_low_ppm2 × estimate_radius_floor_factor(0.8) только на radius-пути при наличии dkp_raw. Флагestimate_radius_floor_enabled(True).f2cfe66byandex history skip area≤0 — битые items (area=0/None) больше не сохраняются в house_placement_history (мусор в price_trend).b2cd2925expected_sold ≤ asking (ratio cap 1.0) — пойман смоком: 3к 27.0M → exp_sold 31.4M > asking (high-tier ratio>1, не клампился). Теперьmin(ratio,1.0)на все expected_sold-поля. Флагestimate_expected_sold_le_asking(True).Новые settings
estimate_radius_floor_enabled=True,estimate_radius_floor_factor=0.8,estimate_expected_sold_le_asking=True.Тесты
17 новых (3+4+6+4), ruff clean, полный suite 2121 passed, 0 регрессий (2 pre-existing fail вне затронутого).
Большой смок (на текущем проде, до этого PR)
4 сценария /estimate (anchor/студия/периферия/большая) + rehydrate + PDF(200) + admin (health/pacing/data-quality/runs 422/done) — всё зелёное; analog_tier наполняется по всем уровням. Смок и поймал exp_sold>asking (фикс 4). После мержа+деплоя перегоню дорогой сегмент → exp_sold должен сесть ≤ asking.
Деплой
Backend Python → recreate tradein-backend. Аддитивно, без миграций. NB: деплой-пауза/скрап + rapid-merge (#1839 cumulative-base уже защищает). Cross-ref аудит
audits/Mera_Tradein_Estimate_Audit_0620.md.