Skip to content
New issue

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

Inconsistent output in raw_train_dataset.features example: num_classes not displayed in ClassLabel output #730

Open
sergiopaniego opened this issue Aug 28, 2024 · 0 comments · May be fixed by #731

Comments

@sergiopaniego
Copy link

In 3. Fine-tuning a pretrained model - Processing the data - Loading a dataset from the Hub, there is an example of the output provided when doing:

raw_train_dataset.features

It should expect (as per the document):

{'sentence1': Value(dtype='string', id=None),
 'sentence2': Value(dtype='string', id=None),
 'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None),
 'idx': Value(dtype='int32', id=None)}

but it actually outputs:

{'sentence1': Value(dtype='string', id=None),
 'sentence2': Value(dtype='string', id=None),
 'label': ClassLabel(names=['not_equivalent', 'equivalent'], id=None),
 'idx': Value(dtype='int32', id=None)}

The ClassLabel output doesn't include num_classes and name_file.

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 a pull request may close this issue.

1 participant