Cannot import the accuracy, f1 score and accuracy from the pytorch lightning metric library #10253
Replies: 3 comments 4 replies
-
seems to be torchmetrics related issue. can you open a discussion here: https://github.com/PyTorchLightning/metrics instead? |
Beta Was this translation helpful? Give feedback.
-
@shubheshswain91 Hi, the error happens when using If you're using: # don't use this
from pytorch_lightning.metrics import ... , it is deprecated and will be removed in v1.5. Instead, please use: # use this
from torchmetrics import ... or you could...downgrade it to from pytorch_lightning.metrics import ... but not recommended. |
Beta Was this translation helpful? Give feedback.
-
As @Fang-git0 suggested, I changed to torchmetrics version 0.5.1 and it works like a charm. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the following import error:
I have installed the pytorch lightning library as seen by the below installation log:
What is the alternate way to import the auroc, accuracy, and F1 score?
Beta Was this translation helpful? Give feedback.
All reactions