feat(sleep): paired A/B evalkit with McNemar and bootstrap CIs - #242
feat(sleep): paired A/B evalkit with McNemar and bootstrap CIs#242Bogdan (Dan) Baciu (bogdanbaciu21) wants to merge 4 commits into
Conversation
Add a stdlib evalkit so Sleep comparisons share one instrument: one fixed task manifest, McNemar on paired binary outcomes, percentile bootstrap CIs on the success-rate delta, and multi-seed variance bands. Cross-manifest id mismatches are refused. The nightly gate is unchanged. Related: microsoft#108
|
Working and running the test suite comprehensively across Linux and Mac and Windows. Will try to finish today. |
|
Sorry it took me so long to get the full test suite out. |
|
Thanks for adding the paired-evaluation workflow and for running the cross-platform suite. I merged this head with current
Please add regressions for more than 1,000 discordant pairs, empty seeds, NaN/Infinity and out-of-range scores, invalid alpha/bootstrap values, strict JSON serialization, and a multi-seed fixture showing that duplicating seeds within one task does not spuriously increase significance. The current A/A test compares an array with itself, so it should also be replaced by a calibration test capable of catching type-I-error regressions. The feature is useful, but these issues need to be fixed before merge. |
|
Yifan Yang (@Yif-Yang) Thanks for the detailed review. I fixed each requested blocker at head
I reran the focused and entire repository suites against that exact head on native Linux, macOS, and Windows. The full suite passed with 1,469 tests on Linux, 1,469 on macOS, and 1,424 on Windows; no tests failed or were deselected. Ready for re-review. |
Related: #108
Summary
This adds a stdlib paired A/B evalkit for claims that condition B beats condition A on one fixed task manifest:
Binary single-observation outcomes receive a two-sided exact McNemar result and paired bootstrap confidence interval. Graded scores are bootstrap-only and require
--allow-graded. The nightly gate is unchanged.Review fixes
alpha/bootstrap values, duplicate JSON keys, and ambiguous CLI inputs withEvalkitError. JSON serialization is strict and never emits NaN/Infinity.Validation
Exact head:
7c97a9915d0f614a5c016fec20db29bd3af71f42Six-job native validation run
No tests failed or were deselected. Ruff, compileall,
git diff --check, and strict MkDocs also pass.