|
All checks were successful
CI / changes (push) Successful in 6s
CI / frontend-tests (push) Has been skipped
CI / changes (pull_request) Successful in 6s
CI / backend-tests (push) Successful in 6m26s
CI / backend-tests (pull_request) Successful in 6m21s
Deploy / changes (push) Successful in 6s
Deploy / build-worker (push) Successful in 3m10s
Deploy / deploy (push) Successful in 1m41s
CI / frontend-tests (pull_request) Has been skipped
Deploy / build-frontend (push) Has been skipped
Deploy / build-backend (push) Successful in 1m47s
Upgrade the §25.3 cannibalization index from a same-class-competitor proxy to true own-portfolio overlap: score the recommended candidate segment against the developer's own portfolio (get_own_portfolio, #1169 PR1) across axes — audience/class (ordinal distance), price ₽/м² (interval overlap), unit-mix (L1 similarity), timing (half-life decay) — geo-weighted by haversine proximity to the parcel, aggregated by geo-weighted soft-max (the strongest nearby cannibalizer dominates, not a diluting mean). Empty portfolio -> labelled proxy fallback, confidence forced low, never presented as the true index. Pure scoring fns unit-tested without DB; None-not-0 on missing axes; thin/ only-current portfolio -> low confidence + §26 note; deterministic (sorted tie-breaks, no RNG). class+price+geo active now; unit-mix+timing plumbed via optional params for a follow-up that wires them from the orchestrator horizon. ruff + mypy clean; 151 special-index tests pass (964 forecasting dir, no regr). Refs #1169 |
||
|---|---|---|
| .. | ||
| api | ||
| core | ||
| models | ||
| observability | ||
| schemas | ||
| scrapers | ||
| services | ||
| templates | ||
| workers | ||
| __init__.py | ||
| main.py | ||