Skip to content

Conversation

@l-uuz
Copy link

@l-uuz l-uuz commented Jun 25, 2025

This small change fixes the documentation to to be compliant with what happens in encode_example.

# Allowing -1 to mean no label.
if not -1 <= example_data < self.num_classes:
raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_classes}")
return example_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant