Skip to content

feat(backtest): ML backtest - #9

Merged
UsatovPavel merged 4 commits into
mainfrom
feat/HACK-174-backtest
Sep 27, 2026
Merged

UsatovPavel merged 4 commits into
mainfrom
feat/HACK-174-backtest

Conversation

@UsatovPavel

@UsatovPavel UsatovPavel commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Jira: HACK-174

Зачем: ответить экспертам, можно ли верить прогнозу, если прийти на смену и через сутки проверить, сбылся ли он.

Итог (подробно в tests/backtest/backtest.md):

  • при HIGH сбывается 18 алертов из 100, ловим 10 событий из 100 (цель ТЗ: 70 и 50) — не достигнута;
  • модель почти не лучше правила «вчера была тревога — будет снова» (13 и 12);
  • 83% сбывшегося — поломки датчиков, а не тревоги;
  • процент в карточке врёт: при 90–100% событие случается в 10% случаев.

Запуск: HACK174_DATASET_DIR=<Sources/dataset> python -m tests.backtest.run

🤖 Generated with Claude Code

UsatovPavel and others added 4 commits September 27, 2026 10:02
Offline backtest of the deployed CatBoost-AFT model (HACK-174): test
channels reproduced from the training split (seed 69), Apr-Jun 2026,
channel x 12h shift, new episode within 24h; two baselines, two slices,
HIGH/MEDIUM thresholds, calibration, bootstrap CI. Independently reviewed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Report rewritten to one screen: why, what, one table, what follows.
isAlarm cross-check dropped from the PR; its conclusion is one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge 11 modules into 6, remove dead args, duplicated helpers and
defensive branches; README folded into backtest.md. Numbers unchanged
(checked on synthetic data against previous functions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@UsatovPavel
UsatovPavel merged commit a00eaa8 into main Sep 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant