verify_model_gap
Determine if the accuracy gap between two models is statistically significant, using sample size and two accuracies, and receive the significance and minimum detectable effect.
Instructions
Is the accuracy gap between two models real, or below what the test set can resolve? Pass items-per-
model n and the two accuracies. Returns the gap, its significance, and the minimum detectable effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Number of test items per model. | |
| p1 | Yes | Accuracy of the first model (0-1). | |
| p2 | Yes | Accuracy of the second model (0-1). | |
| api_key | Yes | Your metering key — any stable string identifying you; it tracks your free-tier calls and prepaid credit balance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | ||
| mde | No | Minimum detectable effect at this sample size. | |
| p_value | No | ||
| verdict | No | ||
| survives | No |