Replies: 1 comment 2 replies
-
|
Hi @an1lam, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We've been using torchmetrics internally and enjoying it, but two things we've had to work around are:
SpearmanCorrcoefdon't support multioutput mode (unlikeR2Scorefor example).NaNlabels for certain features is our use-case).As a simple solution to this, we've implemented a
MultioutputWrapperclass (similar toBootstrapAggregator) that takes abase_metricand copies itnum_outputstimes, updating each underlying on each metric call. While we've tried to make our internal version as generic as possible, we've admittedly only tested it with the metrics we currently use. Examples includeR2Score,SpearmanCorrcoef, andAccuracywith (N, C, O) (where O is number of outputs/tasks) dimensional predictions and (N, O) dimensional labels.Since we've found this wrapper quite helpful, we'd like to contribute it back to the base package so others can use it. However, we expect it'll take a little work/feedback from the maintainers to get it in a place where it's ready for merging. For that reason, before even creating an issue/PR, I wanted to feel out whether this sort of class seems worth having in the base package and makes sense conceptually.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions