eval_sample_size
Calculate how many test cases are needed to trust that one model’s accuracy differs from another’s, including paired or unpaired comparisons and desired significance and power.
Instructions
How many test cases are needed to trust that model A's accuracy really differs from model B's.
acc_a, acc_b: expected accuracies as proportions (e.g. 0.82, 0.78).
paired: True if both models run on the same test cases (usual case).
discordance: paired only -- fraction of cases where exactly one model is
right. Measure it from a pilot run if you can; default assumes
independent errors, which overestimates n for similar models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acc_a | Yes | ||
| acc_b | Yes | ||
| alpha | No | ||
| power | No | ||
| paired | No | ||
| discordance | No |