Skip to content

test(kuhn): guard sampling-distribution normalization#58

Merged
krukah merged 1 commit into
mainfrom
test/sampling-distribution-normalized
Jul 13, 2026
Merged

test(kuhn): guard sampling-distribution normalization#58
krukah merged 1 commit into
mainfrom
test/sampling-distribution-normalized

Conversation

@krukah

@krukah krukah commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Regression test locking in the #53 fix (PR #57): asserts sampling_distribution sums to ~1 across all Kuhn infosets.

Verified it has teeth — against the pre-#57 code it fails with sampling_distribution(J, Bet) sums to 1.03786, not 1 (the unnormalized Z ≈ 1.04); passes with the normalized sampling.

Co-authored with @andyafter, who reported and diagnosed #53.

Asserts sampling_distribution sums to ~1 across Kuhn infosets. Fails on
the pre-#57 code (Z ≈ 1.04 for J|Bet), where the per-edge smoothing
pseudocount and curiosity floor left the distribution unnormalized;
passes with the normalized sampling. Locks in the #53 fix.

Co-authored-by: andyafter <3354145+andyafter@users.noreply.github.com>
@krukah
krukah merged commit c096872 into main Jul 13, 2026
6 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