Custom Metric logging - Log the returned elements of tuple separately from inside MetricCollection #828
Unanswered
rahulvigneswaran
asked this question in
Classification
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have implemented a custom metric based on the existing
torchmetrics.ConfusionMatrix
which will take tuple of list of classes as input and returns a tuple of 3 duringself.compute
.Currently am logging the existing metrics like below inside the
__init__
of theLightningModule
,I am not sure how to add the custom metric defined above -
ShotAcc
to themetric_dict
above and log the value of the tuple (many, mid, low
) that it returns separately like,train/AccuracyMany
,train/AccuracyMid
,train/AccuracyLow
,val/AccuracyMany
, etc.Beta Was this translation helpful? Give feedback.
All reactions