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

should accept MutableMapping instead of Dict for module_kwargs #114

Closed JKSenthil closed 1 year ago

JKSenthil commented 1 year ago

Summary: accept MutableMapping instead of Dict for module_kwargs

Differential Revision: D42159188

facebook-github-bot commented 1 year ago

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

codecov[bot] commented 1 year ago

Codecov Report

Merging #114 (8e4c5dd) into main (4518e74) will decrease coverage by 70.54%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main     #114       +/-   ##
===========================================
- Coverage   95.47%   24.92%   -70.55%     
===========================================
  Files         143      143               
  Lines        8390     8390               
===========================================
- Hits         8010     2091     -5919     
- Misses        380     6299     +5919     
Impacted Files Coverage Δ
torcheval/tools/module_summary.py 23.10% <100.00%> (-69.31%) :arrow_down:
tests/tools/test_module_summary.py 8.75% <0.00%> (-91.25%) :arrow_down:
tests/metrics/window/test_normalized_entropy.py 10.44% <0.00%> (-89.56%) :arrow_down:
tests/metrics/window/test_mean_squared_error.py 11.57% <0.00%> (-88.43%) :arrow_down:
tests/tools/test_flops.py 12.12% <0.00%> (-87.88%) :arrow_down:
tests/metrics/classification/test_auprc.py 12.03% <0.00%> (-87.22%) :arrow_down:
...ts/metrics/classification/test_confusion_matrix.py 14.65% <0.00%> (-85.35%) :arrow_down:
...ts/metrics/functional/classification/test_auprc.py 13.94% <0.00%> (-85.26%) :arrow_down:
...assification/test_binned_precision_recall_curve.py 15.62% <0.00%> (-84.38%) :arrow_down:
torcheval/metrics/window/auroc.py 15.85% <0.00%> (-84.15%) :arrow_down:
... and 117 more

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