We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Metric base class does not check for extra kwargs here. Users can currently do something like torchmetrics.MeanMetric(foo=True) without issue.
Metric
torchmetrics.MeanMetric(foo=True)
import torchmetrics torchmetrics.MeanMetric(your_favorite_word="lightning")
Raise an exception if invalid kwargs are passed
Latest TorchMetrics version. No other dependencies matter.
Slack thread
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
Raise exception for invalid kwargs in Metric base class (#1427)
4f3cab9
Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka <[email protected]> Co-authored-by: Nicki Skafte Detlefsen <[email protected]> Fixes #1426
Successfully merging a pull request may close this issue.
🐛 Bug
The
Metric
base class does not check for extra kwargs here.Users can currently do something like
torchmetrics.MeanMetric(foo=True)
without issue.To Reproduce
Expected behavior
Raise an exception if invalid kwargs are passed
Environment
Latest TorchMetrics version. No other dependencies matter.
Additional context
Slack thread
The text was updated successfully, but these errors were encountered: