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 perplexity #1188

Closed
ananyahjha93 opened this issue Aug 17, 2022 · 5 comments
Closed

Cannot import perplexity #1188

ananyahjha93 opened this issue Aug 17, 2022 · 5 comments
Labels
question Further information is requested

Comments

@ananyahjha93
Copy link
Contributor

🐛 Bug

Cannot import perplexity or other metrics under torchmetrics.text

To Reproduce

import torchmetrics
from torchmetrics.text import Perplexity
from torchmetrics.text.perplexity import Perplexity

metric = torchmetrics.Perplexity()

None of the above imports work

Environment

  • TorchMetrics version (and how you installed TM, e.g. conda, pip, build from source): 0.9.3 installed using pip
  • Python & PyTorch Version (e.g., 1.0): 1.12.0+cu116
  • Any other relevant information such as OS (e.g., Linux): WSL
@ananyahjha93 ananyahjha93 added bug / fix Something isn't working help wanted Extra attention is needed labels Aug 17, 2022
@ananyahjha93
Copy link
Contributor Author

ananyahjha93 commented Aug 17, 2022

@SkafteNicki @Borda is metrics not actively maintained anymore? quite a few open issues

@github-actions
Copy link

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

@Borda
Copy link
Member

Borda commented Aug 17, 2022

@SkafteNicki @Borda is metrics not actively maintained anymore? quite a few open issues

you are more than hapu to help them resolved :)

@Borda
Copy link
Member

Borda commented Aug 17, 2022

@ananyahjha93 pls see the release notes and eventually changelog, the Perplexity was not released yet, so you need to install it from source... 🐰
https://github.com/Lightning-AI/metrics/blob/13f19e52bda180581b6aede493cf756ccd700cd8/CHANGELOG.md?plain=1#L17

@Borda Borda closed this as completed Aug 17, 2022
@Borda Borda added question Further information is requested and removed bug / fix Something isn't working help wanted Extra attention is needed labels Aug 17, 2022
@SkafteNicki
Copy link
Member

@ananyahjha93 just to add: basically all my time is dedicated to the classification refactor #1001.
This is the reason why many issues are basically just on hold onto that is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants