Skip to content

Corrected formula for negative predictive value#3124

Merged
Borda merged 2 commits into
Lightning-AI:masterfrom
C00kieFact0ry:bug/typo-in-npv-docs
Jun 10, 2025
Merged

Corrected formula for negative predictive value#3124
Borda merged 2 commits into
Lightning-AI:masterfrom
C00kieFact0ry:bug/typo-in-npv-docs

Conversation

@C00kieFact0ry

@C00kieFact0ry C00kieFact0ry commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

Problem

The docs for NPV define it as TN / (TN + FP), which is the specificity. The NPV should be TN / (TN + FN)

Note: NPV is only misstated in the docs, the implementation itself is correct:

return _safe_divide(tn, tn + fn, zero_division)

Solution

Corrected the docs formula and text to reflect the correct formula for NPV.


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

@Borda Borda left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Borda Borda closed this Jun 10, 2025
@Borda Borda reopened this Jun 10, 2025
@Borda
Borda merged commit 2b27bd9 into Lightning-AI:master Jun 10, 2025
@codecov

codecov Bot commented Jun 10, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41%. Comparing base (8070441) to head (ea7c0b5).
⚠️ Report is 105 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (8070441) and HEAD (ea7c0b5). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (8070441) HEAD (ea7c0b5)
gpu 2 0
unittest 2 0
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #3124     +/-   ##
========================================
- Coverage      70%     41%    -30%     
========================================
  Files         359     345     -14     
  Lines       19891   19701    -190     
========================================
- Hits        13930    7981   -5949     
- Misses       5961   11720   +5759     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@C00kieFact0ry
C00kieFact0ry deleted the bug/typo-in-npv-docs branch June 10, 2025 10:38
@mergify mergify Bot added the ready label Jun 10, 2025
Borda added a commit that referenced this pull request Jun 12, 2025
Co-authored-by: Arman Naseri <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
(cherry picked from commit 2b27bd9)
Borda added a commit that referenced this pull request Jun 13, 2025
Co-authored-by: Arman Naseri <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
(cherry picked from commit 2b27bd9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants