We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
num_classes
ClassLabel
In the documentation for ClassLabel, there is an example of usage with the following code:
from datasets import Features features = Features({'label': ClassLabel(num_classes=3, names=['bad', 'ok', 'good'])}) features
which expects to output (as stated in the documentation):
{'label': ClassLabel(num_classes=3, names=['bad', 'ok', 'good'], id=None)}
but it generates the following
{'label': ClassLabel(names=['bad', 'ok', 'good'], id=None)}
If my understanding is correct, this happens because although num_classes is used during the init of the object, it is afterward ignored:
datasets/src/datasets/features/features.py
Line 975 in be5cff0
I would like to work on this issue if this is something needed 😄
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
In the documentation for ClassLabel, there is an example of usage with the following code:
which expects to output (as stated in the documentation):
but it generates the following
If my understanding is correct, this happens because although num_classes is used during the init of the object, it is afterward ignored:
datasets/src/datasets/features/features.py
Line 975 in be5cff0
I would like to work on this issue if this is something needed 😄
The text was updated successfully, but these errors were encountered: