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

update load_dataset for examples/feature_extraction #2207

Conversation

sinchir0
Copy link
Contributor

@sinchir0 sinchir0 commented Nov 9, 2024

I fixed the error below.

Before

from datasets import load_dataset
load_dataset("smangrul/amazon_esci")

-> Error

datasets.exceptions.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=154877734, num_examples=839306, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=77438867, num_examples=419653, shard_lengths=None, dataset_name='amazon_esci')}, {'expected': SplitInfo(name='validation', num_bytes=66412102, num_examples=363402, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='validation', num_bytes=33206051, num_examples=181701, shard_lengths=None, dataset_name='amazon_esci')}]

After

from datasets import load_dataset
load_dataset("smangrul/amazon_esci", revision="main")

-> OK

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sinchir0 sinchir0 marked this pull request as ready for review November 9, 2024 06:21
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing.

@BenjaminBossan BenjaminBossan merged commit 162d7e5 into huggingface:main Nov 9, 2024
14 checks passed
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.

3 participants