|
All checks were successful
Deploy / build-worker (push) Successful in 3m1s
CI / changes (push) Successful in 6s
CI / frontend-tests (push) Has been skipped
CI / changes (pull_request) Successful in 5s
CI / frontend-tests (pull_request) Has been skipped
CI / backend-tests (push) Successful in 6m32s
CI / backend-tests (pull_request) Successful in 6m24s
Deploy / changes (push) Successful in 7s
Deploy / build-frontend (push) Has been skipped
Deploy / build-backend (push) Successful in 2m1s
Deploy / deploy (push) Successful in 1m25s
Feed candidate_unit_mix into _build_cannibalization (mirrors how #1169 fed candidate_release_month from the launch window), completing §25.3 to all 4 axes: class + price + timing + unit-mix, plus geo weight. - candidate mix from recommend_mix "buckets[].share_pct" (same rule-based квартирография as §22 product_tz), extracted + normalized to {bucket: share}. - _canonical_room_bucket folds recommend_mix RU labels ("1-к 30-45", "80+ м²") and manual own_planned_project Latin keys ("1k") into one room-count space — without it the L1 similarity would silently be 0 (disjoint keys). - recommend_mix is HEAVY, so it's GATED: derived only when the own-portfolio has >=1 project with a non-empty unit_mix; get_own_portfolio fetched once in compute_special_indices and threaded into _build_cannibalization (no double fetch). With OWN_DEVELOPER_IDS unset (portfolio empty) → zero added cost on the hot §22 report path. - Graceful (recommend_mix None/empty/raises → axis excluded, None-not-0), deterministic. Unit-mix only fires for manual-future own-projects with a mix (domrf-current carry unit_mix=None) — expected narrowness, documented. 205 tests; ruff + mypy clean. Scope: special_indices.py + test only; no deps. Refs #1169 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_affordability.py | ||
| test_confidence_engine.py | ||
| test_demand_normalization.py | ||
| test_demand_supply_forecast.py | ||
| test_macro_coefficient.py | ||
| test_macro_series.py | ||
| test_normalize.py | ||
| test_orchestrator.py | ||
| test_product_scoring.py | ||
| test_rate_sensitivity.py | ||
| test_recommendation.py | ||
| test_regression.py | ||
| test_report.py | ||
| test_report_assembler.py | ||
| test_sales_series.py | ||
| test_scenarios.py | ||
| test_special_indices.py | ||
| test_what_to_build.py | ||