Skip to content

Туториал: основной сценарий первым, сверка с истиной таблицей, чистые выводы - #46

Merged
Yurashku merged 2 commits into
mainfrom
tutorial-polish
Oct 28, 2026
Merged

Yurashku merged 2 commits into
mainfrom
tutorial-polish

Conversation

@Yurashku

Copy link
Copy Markdown
Owner

Что изменилось

Туториал examples/tutorial.ipynb переписан, чтобы он был лаконичным, управляемым и понятным.

  • Основной сценарий — первым. Логи без пропенсити, сравнение кандидата с прод-версией A. Отчёт показывает V(A), V(B) и Δ с интервалами, доверие и согласие оценщиков. Каждый результат сверяется с истиной в одной таблице.
  • A — softmax-политика. Её модель пропенсити воспроизводит корректно, поэтому основной путь показан на работающем примере. Случай с ε-жадной A перенесён в «Когда оценке верить нельзя»: там отчёт сам сообщает, что оценщики расходятся.
  • Управляемость. Параметры (зерно, размер, число bootstrap-реплик) вынесены в первую ячейку, сверка с истиной сделана одной функцией.
  • Чистые выводы.
    • Находки показываются заголовками, а не кодами.
    • Нет обрезанного JSON и предупреждений с путями /tmp/ipykernel_….
    • Числа отформатированы: доходы выводятся как «39 100», а не «3.9e+04».
  • Объём. 28 ячеек вместо 32, исполнение — около 2.5 минуты.

Попутно исправлены две мелочи в тексте отчёта: двойная точка после «п.п.» и формулировка подписи подобранного C модели пропенсити.

Проверено

  • flake8 и быстрые тесты.
  • Туториал исполняется без ошибок и без вывода в stderr.

🤖 Generated with Claude Code

Yurashku and others added 2 commits October 28, 2026 18:22
Values in percentage points end with "п.п.", so lines ending with such a
value got "п.п.." (floor sensitivity, estimator spread without an
interval). A small helper adds the period only when it is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Starts from the main scenario: logs without propensities, candidate
  versus the production version of A, intervals for V(A), V(B) and delta,
  trust and estimator agreement, each result checked against the truth.
- A is now a softmax policy that the propensity model can represent; the
  epsilon-greedy case moved to "when not to trust", where the report
  flags disagreeing estimators.
- Parameters (seed, size, bootstrap replicates) in the first cell; truth
  checks via one helper rendered as a table; findings shown by title
  instead of codes; no raw JSON or bootstrap ETA noise; relative links.
- 28 cells instead of 32, runs in about 2.5 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Yurashku
Yurashku merged commit 3d9c30b into main Oct 28, 2026
8 checks passed
@Yurashku
Yurashku deleted the tutorial-polish branch October 28, 2026 15:29
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