Practice in Lab: Require complete evaluation coverage before reporting category rates →
Require complete evaluation coverage before reporting category rates
A candidate can appear better when difficult cases disappear from its evaluation output. Before comparing averages, require a complete one-to-one match with the versioned test inventory. Category identities belong to that inventory, so a result cannot move a failing safety case into another bucket. This exercise reports explicit missing evidence as an error rather than silently shrinking the denominator. Per-category rates make failures inspectable but do not account for correlated examples or measurement uncertainty; the release-evaluation project adds paired grouped analysis.
expected = {'easy','hard'}
reported = {'easy'}
missing = sorted(expected-reported)
print({'missing':missing, 'complete':not missing})Review the design
Review inventory versioning, category balance and the definition of a passing case. Missing observations are not successful evaluations.
Your task
expected is a nonempty versioned inventory of unique id,category rows. results contains unique id and explicit boolean passed. Require exactly the same identity set; missing, unknown and repeated cases raise ValueError. Return a category-sorted mapping with total,passed,rate and sorted failed IDs. Aggregate by inventory category, not a category supplied by the candidate. These are descriptive rates, not confidence estimates.
The explanation opens here once every check passes.