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

cannot import name 'F1' from 'torchmetrics' #988

Closed
lighthouseai opened this issue Apr 26, 2022 · 2 comments
Closed

cannot import name 'F1' from 'torchmetrics' #988

lighthouseai opened this issue Apr 26, 2022 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@lighthouseai
Copy link

lighthouseai commented Apr 26, 2022

To Reproduce

Steps to reproduce the behavior...

Tried in python3.9 local machine and colab

used the below line to install torchmetrics
pip install torchmetrics

--> from torchmetrics import F1, MetricCollection

Triggers the following error:
ImportError: cannot import name 'F1' from 'torchmetrics' (/home/countai/miniconda3/envs/myenv/lib/python3.9/site-packages/torchmetrics/init.py)

@lighthouseai lighthouseai added bug / fix Something isn't working help wanted Extra attention is needed labels Apr 26, 2022
@github-actions
Copy link

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

@Borda
Copy link
Member

Borda commented Apr 26, 2022

It was deprecated/renamed to F1Score back in v0.7, see #731, #740

@Borda Borda closed this as completed Apr 26, 2022
@Borda Borda added question Further information is requested and removed bug / fix Something isn't working labels Apr 26, 2022
@Borda Borda added this to the v0.8 milestone May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants