Decisions¶
Evaluation reports end in claims: the model is ready to ship, the new version is better, the refusal rate is below 1 %. veracle turns these into tests with three possible outcomes.
One threshold¶
decision = vc.threshold_decision(result, threshold=0.80, alpha=0.05, name="model-v2")
| Verdict | Meaning | Error guarantee |
|---|---|---|
pass |
The true rate is above the threshold | Wrong at most 5 % of the time |
fail |
The true rate is below the threshold | Wrong at most 5 % of the time |
inconclusive |
The data cannot tell | Collect more evaluations or a larger audit |
The decision also reports naive_verdict, the answer one gets by
comparing the judge's raw rate with the threshold, and flipped, which is
true when the corrected analysis contradicts it.
Many claims¶
Testing ten models against the same bar at 5 % each makes at least one
false pass likely. decide_many adjusts for multiplicity:
decisions = vc.decide_many(results, threshold=0.80, method="holm")
method |
Controls |
|---|---|
"holm" (default) |
Probability of any wrong claim (family-wise error) |
"bonferroni" |
The same, more conservative |
"bh" |
Expected share of wrong claims among positive claims (false discovery rate) |
"none" |
Nothing; each claim separately |
Thresholds can differ per claim by passing a dictionary.
Reporting¶
str(decision) gives a one line summary, and decision.to_dict() a record
for tables and logs. Always report the threshold, the error level and the
multiplicity method together with the verdicts.