Fix bug in `ImageClassifcation` task template
COLLABORATOR
The CI failures are unrelated to the changes in this PR.
2022-01-10T14:11:21Z
https://github.com/huggingface/datasets/pull/3557#issuecomment-1008909629
https://api.github.com/repos/huggingface/datasets/issues/3557
IC_kwDODunzps48Ir09
https://api.github.com/repos/huggingface/datasets/issues/comments/1008909629/reactions
2022-01-10T14:11:21Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1008909629
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
> The CI failures are unrelated to the changes in this PR.

It seems that some of the failures are due to the tests on the dataset cards (e.g. CIFAR, MNIST, FASHION_MNIST). Perhaps it's worth addressing those in this PR to avoid confusing downstream developers who branch off `master` and suddenly have a failing CI?
2022-01-10T15:33:54Z
https://github.com/huggingface/datasets/pull/3557#issuecomment-1008999615
https://api.github.com/repos/huggingface/datasets/issues/3557
IC_kwDODunzps48JBy_
https://api.github.com/repos/huggingface/datasets/issues/comments/1008999615/reactions
2022-01-10T15:33:54Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1008999615
https://avatars.githubusercontent.com/u/26859204?v=4
https://api.github.com/users/lewtun/events{/privacy}
https://api.github.com/users/lewtun/followers
https://api.github.com/users/lewtun/following{/other_user}
https://api.github.com/users/lewtun/gists{/gist_id}
https://github.com/lewtun
lewtun
MDQ6VXNlcjI2ODU5MjA0
https://api.github.com/users/lewtun/orgs
https://api.github.com/users/lewtun/received_events
https://api.github.com/users/lewtun/repos
https://api.github.com/users/lewtun/starred{/owner}{/repo}
https://api.github.com/users/lewtun/subscriptions
User
https://api.github.com/users/lewtun
public
COLLABORATOR
@lewtun We only run these tests against the modified datasets on the PR branch, so this will not lead to errors after merging.
2022-01-11T15:46:58Z
https://github.com/huggingface/datasets/pull/3557#issuecomment-1010093208
https://api.github.com/repos/huggingface/datasets/issues/3557
IC_kwDODunzps48NMyY
https://api.github.com/repos/huggingface/datasets/issues/comments/1010093208/reactions
2022-01-11T15:46:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1010093208
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
Fixes a bug in the `ImageClassification` task template which requires specifying class labels twice in dataset scripts. Additionally, this PR refactors the API around the classification task templates for cleaner `labels` handling.

CC: @lewtun @nateraw