Inconsistent argument names.
CONTRIBUTOR
Also for the `Accuracy` metric the `accuracy_score` method should have its args in the opposite order so `accuracy_score(predictions, references,,,)`.
2020-12-11T12:54:46Z
https://github.com/huggingface/datasets/issues/1478#issuecomment-743176870
https://api.github.com/repos/huggingface/datasets/issues/1478
MDEyOklzc3VlQ29tbWVudDc0MzE3Njg3MA==
https://api.github.com/repos/huggingface/datasets/issues/comments/743176870/reactions
2020-12-11T12:54:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/743176870
https://avatars.githubusercontent.com/u/8402500?v=4
https://api.github.com/users/Fraser-Greenlee/events{/privacy}
https://api.github.com/users/Fraser-Greenlee/followers
https://api.github.com/users/Fraser-Greenlee/following{/other_user}
https://api.github.com/users/Fraser-Greenlee/gists{/gist_id}
https://github.com/Fraser-Greenlee
Fraser-Greenlee
MDQ6VXNlcjg0MDI1MDA=
https://api.github.com/users/Fraser-Greenlee/orgs
https://api.github.com/users/Fraser-Greenlee/received_events
https://api.github.com/users/Fraser-Greenlee/repos
https://api.github.com/users/Fraser-Greenlee/starred{/owner}{/repo}
https://api.github.com/users/Fraser-Greenlee/subscriptions
User
https://api.github.com/users/Fraser-Greenlee
public
CONTRIBUTOR
Thanks for pointing this out ! 🕵🏻 
Predictions and references should indeed be swapped in the docstring.
However, the call to `accuracy_score` should not be changed, it [signature](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html#sklearn.metrics.accuracy_score) being:
```
sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None)
```

Feel free to open a PR if you want to fix this :)
2020-12-15T17:39:45Z
https://github.com/huggingface/datasets/issues/1478#issuecomment-745450638
https://api.github.com/repos/huggingface/datasets/issues/1478
MDEyOklzc3VlQ29tbWVudDc0NTQ1MDYzOA==
https://api.github.com/repos/huggingface/datasets/issues/comments/745450638/reactions
2020-12-15T17:39:45Z
https://api.github.com/repos/huggingface/datasets/issues/comments/745450638
https://avatars.githubusercontent.com/u/33657802?v=4
https://api.github.com/users/SBrandeis/events{/privacy}
https://api.github.com/users/SBrandeis/followers
https://api.github.com/users/SBrandeis/following{/other_user}
https://api.github.com/users/SBrandeis/gists{/gist_id}
https://github.com/SBrandeis
SBrandeis
MDQ6VXNlcjMzNjU3ODAy
https://api.github.com/users/SBrandeis/orgs
https://api.github.com/users/SBrandeis/received_events
https://api.github.com/users/SBrandeis/repos
https://api.github.com/users/SBrandeis/starred{/owner}{/repo}
https://api.github.com/users/SBrandeis/subscriptions
User
https://api.github.com/users/SBrandeis
public
Just find it a wee bit odd that in the transformers library `predictions` are those made by the model:
https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61

While in many datasets metrics they are the ground truth labels:
https://github.com/huggingface/datasets/blob/c3f53792a744ede18d748a1133b6597fdd2d8d18/metrics/accuracy/accuracy.py#L31-L40

Do you think predictions & references should be swapped? I'd be willing to do some refactoring here if you agree.