torchmetrics icon indicating copy to clipboard operation
torchmetrics copied to clipboard

Support basic plotting for some metrics

Open SkafteNicki opened this issue 3 years ago • 4 comments

🚀 Feature

Add plotting functionality for metrics where it makes sense.

Motivation

Some metrics like confusion matrix, roc, pr-curve are non-scalar metrics that are best inspected when plotted. It would be great if we could support some basic functionality for metrics where it makes sense to plot something (there are probably not that many).

Pitch

Either have a utility module:

from torchmetrics.utils.plotting import plot_confusion_matrix
metric = ConfusionMatrix()
output = metric(preds, target)
plot_confusion_matrix(output)

or incorporate directly into each modular metric

metric = ConfusionMatrix()
output = metric(preds, target)
metric.plot(output)

Alternatives

Keep as it is.

Additional context

SkafteNicki avatar Dec 02 '21 19:12 SkafteNicki

Hi! thanks for your contribution!, great first issue!

github-actions[bot] avatar Dec 02 '21 19:12 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 12 '22 07:07 stale[bot]

hi guys, any updates on this? it would be amazing to have a feature like that :)

andredantasrocha avatar Jul 26 '22 06:07 andredantasrocha

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 05:09 stale[bot]