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
215 stars 47 forks source link

Make num_labels Optional in functional version of multilabel_precision_recall_curve #107

Closed williamhufb closed 1 year ago

williamhufb commented 1 year ago

Summary: I make the argument num_labels optional for the functional version of multilabel_precision_recall_curve

Reviewed By: bobakfb

Differential Revision: D41856014

facebook-github-bot commented 1 year ago

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

codecov[bot] commented 1 year ago

Codecov Report

Merging #107 (f4635fd) into main (4f78bb1) will increase coverage by 0.00%. The diff coverage is 92.85%.

@@           Coverage Diff           @@
##             main     #107   +/-   ##
=======================================
  Coverage   95.30%   95.31%           
=======================================
  Files         143      143           
  Lines        8100     8113   +13     
=======================================
+ Hits         7720     7733   +13     
  Misses        380      380           
Impacted Files Coverage Δ
...unctional/classification/precision_recall_curve.py 60.21% <80.00%> (+1.78%) :arrow_up:
...onal/classification/test_precision_recall_curve.py 100.00% <100.00%> (ø)

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