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

Refactorize Metric.compute signature to force keyword arguments only #2079

Merged
merged 2 commits into from Mar 23, 2021

Conversation

albertvillanova
Copy link
Member

Minor refactoring of Metric.compute signature to force the use of keyword arguments, by using the single star syntax.

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

Thanks ! this is consistent with add and add_batch now :)

@lhoestq lhoestq merged commit 99da4c9 into huggingface:master Mar 23, 2021
PhilipMay pushed a commit to PhilipMay/datasets that referenced this pull request Mar 24, 2021
…uggingface#2079)

* Fix Metric.compute signature using single star syntax

* Fix copyfunc to also copy defaults for keyword-only parameters
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.

None yet

2 participants