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 retrieval recall to TorchEval #186

Closed hphong591992 closed 10 months ago

hphong591992 commented 10 months ago

Summary: This was missing in TorchEval. We need this metrics to calculate Recall@K.

Differential Revision: D50722948

facebook-github-bot commented 10 months ago

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

codecov[bot] commented 10 months ago

Codecov Report

Merging #186 (4935551) into main (a975ef6) will decrease coverage by 71.04%. The diff coverage is 26.86%.

@@             Coverage Diff             @@
##             main     #186       +/-   ##
===========================================
- Coverage   95.71%   24.68%   -71.04%     
===========================================
  Files         178      181        +3     
  Lines       10278    10412      +134     
===========================================
- Hits         9838     2570     -7268     
- Misses        440     7842     +7402     
Files Coverage Δ
torcheval/metrics/__init__.py 100.00% <ø> (ø)
torcheval/metrics/functional/__init__.py 100.00% <ø> (ø)
torcheval/metrics/functional/ranking/__init__.py 100.00% <100.00%> (ø)
torcheval/metrics/ranking/__init__.py 100.00% <100.00%> (ø)
...val/metrics/functional/ranking/retrieval_recall.py 30.00% <30.00%> (ø)
...etrics/functional/ranking/test_retrieval_recall.py 24.39% <24.39%> (ø)
torcheval/metrics/ranking/retrieval_recall.py 24.59% <24.59%> (ø)

... and 158 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 10 months ago

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

facebook-github-bot commented 10 months ago

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