In this article
A matching label name or integer does not establish matching class meaning; taxonomy mappings need a versioned semantic decision.
A label has more than one identity
A class can have a persistent identifier, a human-readable name and an integer used by a model. These play different roles. Renaming a display label need not change the concept, while retaining its name can hide a revised definition or annotation policy.
Keep the taxonomy revision with the dataset and model output. A classifier’s numeric prediction is meaningful only through the class mapping used for that artifact. Comparing arrays from different revisions without resolving that mapping can manufacture apparent agreement or disagreement.
Numeric encoding is a fitted mapping
Scikit-learn’s LabelEncoder records classes and transforms target labels into integer values. Its documentation explicitly concerns target values rather than input features. The fitted class list is therefore part of the artifact needed to decode predictions.
Do not independently fit an encoder on each split and assume matching integers refer to matching classes. Preserve the intended mapping and define behavior for new labels. Adding or removing a class can change a newly fitted mapping even when many display names are unchanged.
Semantic mappings need a stated relationship
SKOS distinguishes exact, close, broader, narrower and related mapping relationships. These distinctions are useful when documenting how concepts from different schemes correspond. A broader category cannot automatically be substituted for a narrower one without changing the question answered by the annotation.
The reference treats close matches differently from transitive exact matches. Chaining approximate correspondences can compound uncertainty. Record the relation actually justified by the definitions instead of converting every linked pair into unconditional equality.
Merging classes changes evaluation populations
A proposed migration may combine several old classes or divide one class into several new ones. Combining can permit an explicit aggregate mapping. Splitting often requires information that the original label did not preserve and may require new annotation.
Report unmapped and ambiguous cases. A complete-looking lookup table can conceal guesses that alter benchmark difficulty. Compare results under the same resolved taxonomy, or explain precisely how the label-space change is part of the experiment.
Keep the migration independently inspectable
Store source and destination taxonomy revisions, mapping rationale, review evidence and affected record identities. Human-readable multilingual names can help interpretation, but translation alone does not establish that annotation guidelines define equivalent classes.
A proposed validation checks decoded labels and representative examples before and after migration. This article does not assert that a new mapping has been validated. Its purpose is to preserve the semantic decision connecting dataset versions, so a stable filename or integer never substitutes for an explanation of class meaning.
Primary references
Related explanations: Class targets and logits; Annotation provenance.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.