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

Newmetric: Negative predictive value #2433

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Mar 6, 2024

What does this PR do?

Fixes #2415

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?
PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃


📚 Documentation preview 📚: https://torchmetrics--2433.org.readthedocs.build/en/2433/

@SkafteNicki SkafteNicki added enhancement New feature or request New metric labels Mar 6, 2024
@SkafteNicki SkafteNicki added this to the v1.4.0 milestone Mar 6, 2024
@github-actions github-actions bot added documentation Improvements or additions to documentation topic: Classif labels Mar 6, 2024
def compute(self) -> Tensor:
"""Compute metric."""
tp, fp, tn, fn = self._final_state()
return _specificity_reduce(tp, fp, tn, fn, average="binary", multidim_average=self.multidim_average)
Copy link

@codyhesse codyhesse May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this (and the following compute functions) return _negative_predictive_value_reduce?

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 enhancement New feature or request New metric topic: Classif
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A new metric NPV
3 participants