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

Unable to unpickle a MatthewsCorrCoef saved object #1260

Closed
okbalefthanded opened this issue Oct 10, 2022 · 3 comments
Closed

Unable to unpickle a MatthewsCorrCoef saved object #1260

okbalefthanded opened this issue Oct 10, 2022 · 3 comments
Labels
bug / fix Something isn't working help wanted Extra attention is needed

Comments

@okbalefthanded
Copy link

okbalefthanded commented Oct 10, 2022

🐛 Bug

Matthews Correlation coefficient requires a positional argument num_classes, so it raises a TypeError:
missing 1 required positional argument: 'num_classes'

To Reproduce

Steps to reproduce the behavior...

The error is reported in this colab notebook :
https://colab.research.google.com/drive/1UvhPyPbzpF61SY-51ti8R_O-Vc2FP-vO?usp=sharing

Expected behavior

We expect the same behaviour as in v 0.9.3.

Environment

  • TorchMetrics version : 0.10.0, installed using pip
  • Python & PyTorch Version: 3.7.14, 1.12.1+cu113
  • google Colab
@okbalefthanded okbalefthanded added bug / fix Something isn't working help wanted Extra attention is needed labels Oct 10, 2022
@github-actions
Copy link

Hi! thanks for your contribution!, great first issue!

@stancld
Copy link
Contributor

stancld commented Oct 10, 2022

@SkafteNicki

@SkafteNicki
Copy link
Member

Hi @okbalefthanded, thanks for raising this issue.
Happy to report that it has already been solve in PR #1250. To fix the issue you can upgrade to master for now:

pip install https://github.com/Lightning-AI/metrics/archive/master.zip

or wait until the next bugfix release.
Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants