-
Notifications
You must be signed in to change notification settings - Fork 411
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
PearsonCorrcoef breaks when a single sample is passed at a time #274
Comments
Hi! thanks for your contribution!, great first issue! |
@raimis please try to update |
Thanks @edgarriba. Do you know when the next version will be released? |
I guess at some point soon since last release was a month ago. Any insights here @Borda @edenlightning ? |
do you need anything specific from master? |
Just the fix of this issue. |
@raimis it was released in 0.3.2, see https://github.com/PyTorchLightning/metrics/releases/tag/v0.3.2 |
I tried again:
So, the issues is not fixed in |
Fix included in v0.4.0 just released (https://github.com/PyTorchLightning/metrics/releases/tag/v0.4.0). Closing. |
Thanks! |
🐛 Bug
When passing a single sample to the PearsonCorrcoef metric, it will crash. Similar to #227 and partially fixed by #229. Originally reported in #227 (comment)
To Reproduce
Output:
Expected behavior
The metric is computed without throwing the
RuntimeError
.The text was updated successfully, but these errors were encountered: