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 function retrieval_precision and unit tests #151

Closed DamienAllonsius closed 1 year ago

DamienAllonsius commented 1 year ago

Summary: Implement retrieval_precision function

Reviewed By: bobakfb

Differential Revision: D44752024

facebook-github-bot commented 1 year ago

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

codecov[bot] commented 1 year ago

Codecov Report

Merging #151 (a1000e7) into main (6b48317) will increase coverage by 70.61%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main     #151       +/-   ##
===========================================
+ Coverage   24.99%   95.60%   +70.61%     
===========================================
  Files         172      174        +2     
  Lines        9814     9899       +85     
===========================================
+ Hits         2453     9464     +7011     
+ Misses       7361      435     -6926     
Impacted Files Coverage Δ
torcheval/metrics/functional/__init__.py 100.00% <ø> (ø)
...ics/functional/ranking/test_retrieval_precision.py 100.00% <100.00%> (ø)
torcheval/metrics/functional/ranking/__init__.py 100.00% <100.00%> (ø)
.../metrics/functional/ranking/retrieval_precision.py 100.00% <100.00%> (ø)

... and 152 files with indirect coverage changes

: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: D44752024

facebook-github-bot commented 1 year ago

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

facebook-github-bot commented 1 year ago

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

facebook-github-bot commented 1 year ago

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

facebook-github-bot commented 1 year ago

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