pytorch / torcheval

A library that contains a rich collection of performant PyTorch model metrics, a simple interface to create new metrics, a toolkit to facilitate metric computation in distributed training and tools for PyTorch model evaluations.
https://pytorch.org/torcheval
Other
211 stars 46 forks source link

add RetrievalPrecision class metric #155

Closed DamienAllonsius closed 1 year ago

DamienAllonsius commented 1 year ago

Summary: add class metric RetrievalPrecision

Reviewed By: bobakfb

Differential Revision: D45427004

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004

codecov[bot] commented 1 year ago

Codecov Report

Merging #155 (b28bd74) into main (fd13cfa) will decrease coverage by 0.21%. The diff coverage is 15.01%.

@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
- Coverage   24.50%   24.29%   -0.21%     
==========================================
  Files         174      176       +2     
  Lines       10263    10498     +235     
==========================================
+ Hits         2515     2551      +36     
- Misses       7748     7947     +199     
Impacted Files Coverage Δ
...ics/functional/ranking/test_retrieval_precision.py 21.81% <0.00%> (+0.76%) :arrow_up:
torcheval/metrics/__init__.py 100.00% <ø> (ø)
tests/metrics/ranking/test_retrieval_precision.py 10.36% <10.36%> (ø)
.../metrics/functional/ranking/retrieval_precision.py 26.31% <20.00%> (+0.38%) :arrow_up:
torcheval/metrics/ranking/retrieval_precision.py 24.59% <24.59%> (ø)
torcheval/metrics/ranking/__init__.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D45427004