top of page

How Should an Evaluation Score Two Empty Label Sets?

Oct 26
2 min read

An AI tagger correctly leaves a request untagged, yet the evaluation reports a zero similarity score. Another implementation reports a perfect score for the same case. The disagreement may concern an undefined mathematical ratio rather than the tagger's behavior.


Make the empty-set convention part of the evaluation contract.


Understand the denominator


Scikit-learn's Jaccard documentation defines the score as intersection size divided by union size and notes that it is undefined when there are no true or predicted labels.


If both sets are empty, the ordinary formula becomes zero divided by zero. Software must apply a convention, warning or other handling rule.


Record that choice explicitly. A default is still a choice that affects interpretation.


Work through ordinary and empty cases


Illustrative example: overlapping tags


The expected tags are Billing and Access; the predicted tags are Access and Setup. The intersection has one label and the union has three, giving a Jaccard score of one third.


Adding unrelated predicted labels enlarges the union without increasing the intersection. The score therefore reflects both missing and extra labels through the set comparison.


This calculation applies to the stated example, not to a claim about a deployed classifier.


Separate two empty outcomes


An empty prediction with a nonempty expected set is a missed tagging outcome. Both sets being empty is a different case.


Check whether empty expected sets are legitimate in the task or indicate missing annotation. Do not reward missing ground truth as though it were a confirmed “no label needed” decision.


Choose the convention before comparison


Define the handling of both-empty cases before comparing model versions. Apply the same policy to every version and record the evaluation library's settings.


If a policy excludes empty cases from a summary, report their count and the changed denominator. If it assigns a score, explain the assigned meaning.


Do not switch conventions to improve a headline score.


Keep the task definition visible


Read one label versus several labels per request when defining the expected output.


A tagging workflow may need separate measures for selecting the right tags and recognizing that no tag applies. A single average can obscure those behaviors.


Include examples of extra labels, missing labels and legitimate empty responses in the review set.


Report the score with enough context


Name the averaging mode, label universe, empty-set policy and number of empty cases. Preserve the per-case results needed to reproduce the summary.


The useful outcome is agreement about what a successful empty response means. Once that is defined, the score can support a comparison instead of turning a library convention into an unexplained judgment about model quality.


Editorial note


Prepared with AI assistance. Primary sources and the FutureOS article inventory were checked on October 26, 2026. Examples are illustrative, not customer results. FutureOS is described as being in prelaunch in its current introduction. This guide does not claim an available product feature, integration or service, and no independent expert review is claimed.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page