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

Classification metrics section: examples of input types #1318

Closed
hieuchi911 opened this issue Nov 7, 2022 · 2 comments
Closed

Classification metrics section: examples of input types #1318

hieuchi911 opened this issue Nov 7, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@hieuchi911
Copy link

hieuchi911 commented Nov 7, 2022

Documentation file: https://github.com/Lightning-AI/metrics/blob/v0.10.2/docs/source/pages/classification.rst
For binary inputs target, the example used was: binary_target = torch.tensor([1, 0, 2]), while for binary I believe there should be no more than 2 different integers. So it should be binary_target = torch.tensor([1, 0, 1])

@hieuchi911 hieuchi911 added the documentation Improvements or additions to documentation label Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Nov 7, 2022

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

@SkafteNicki
Copy link
Member

Page was completly removed in this PR #1251 since the information was somewhat outdated. Instead the specifics of the expected shape are stated in the docs for each classification metric.
See for example:
https://torchmetrics.readthedocs.io/en/latest/classification/accuracy.html#binaryaccuracy
Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants