gendesign/backend/app/services
Light1YT f87c5cb0b8 feat(forecasting): §9.6 key-rate sensitivity module (#951d, advisory)
Add rate_sensitivity.py: regress Δln(sales) on lagged Δ(key_rate) per segment,
gate (n≥8, r2≥0.1, slope<0), shrink toward EKB-wide prior (w=n/(n+10); EKB prior
bootstrapped from all-None spec, gate-fail→0.0 neutral), emit §9.6 explainability
phrase (X=100·(exp(β)−1), Y=lag, Z=most-sensitive Source-B bucket area floor).
Pure numpy helpers (ols_slope_r2, best_lag, shrink) DB-free + unit-tested on
synthetic series (real slope/lag recovery); compute_rate_sensitivity tested with
mocked PR1/PR2. Wrong-sign guarded 3 layers; degrades to insufficient-data /
EKB-wide form on thin/wrong-sign. ADVISORY until PR6 backtest — not wired into
any endpoint. 28 tests (forecasting/ total 141), ruff clean.

Follow-ups for PR6 backtest: validate lag selection out-of-sample (spurious-lag
on short windows), confirm _SHRINK_K + confidence thresholds before prod wiring.
2026-06-03 11:05:55 +05:00
..
cadastre fix(#265 review): CRS 3857→4326 + stable zone_id hash + rename 102 + tx comment 2026-05-17 10:45:52 +03:00
etl feat(etl): fuzzy matcher v2 — pruned threshold 0.85→0.80 for objective mapping coverage 2026-05-17 16:28:20 +03:00
exporters feat(sf-b7): GET /parcels/{cad}/snapshot.pdf — 1-page WeasyPrint export (#334) 2026-05-17 21:11:03 +00:00
forecasting feat(forecasting): §9.6 key-rate sensitivity module (#951d, advisory) 2026-06-03 11:05:55 +05:00
generative deploy.yml: sync compose+Caddyfile from git, reload caddy after up 2026-04-26 13:31:26 +03:00
photos fix ui lag 2026-04-27 20:26:55 +03:00
scrapers feat(domrf): persist domrf_kn_objects.free_flats (#950 PR A) (#1002) 2026-06-02 20:06:29 +00:00
site_finder feat(site_finder): future-supply-pressure index (#950 Step 6) (#1006) 2026-06-03 05:10:08 +00:00
__init__.py init 2026-04-25 13:45:19 +03:00
analytics_queries.py fix(tradein): per-bucket velocity formula + realistic срок продажи (#574) (#631) 2026-05-28 15:35:16 +00:00
analytics_refresh.py fix(scrape): SQLAlchemy text() парсил ':00:' regex как named-param 2026-04-30 23:16:11 +03:00
job_settings.py fix(cadastre,nspd_sync): SQL syntax bugs surfaced by ekb_full v2 (#186) 2026-05-15 19:18:43 +03:00
objective_etl.py fix(worker): port objective_etl from psycopg2 → psycopg v3 2026-05-11 12:07:57 +03:00
objective_sync_config.py feat(objective): full sync pipeline + dynamic admin config 2026-05-10 19:54:15 +03:00