About ConfusionMatrixMetric #6954
kevinkevin556
started this conversation in
General
Replies: 1 comment
-
Hi, @kevinkevin556, thanks for your interest here.
Hope it helps, feel free to ask if you still have confusion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, I faced some problem when I tried to calculate metrics using
ConfusionMatrixMetric
for my multi-organ segmentation task. Although I have found solutions to those problem, it took me a lot of time to figure them out, so I wonder whether the they are issues need to be reported or simply some designs not meeting my personal needs.1. Unexpected value of accuracy
I finally realized that the result 0.6667 came from calculating (TP+TN) / (TP+FP+TN+FN). However, since only half of the both images are predicted correctly, shouldn't we get 0.5 when we evaluate accuracy in this case?
2. Micro averaging the metrics in ConfusionMatrixMetric as default
We get identical precision, recall, and f1-score if we simply call
.aggregate()
, which equal pixel accuracy. To obtain the exact result which we possibly want to get,are the macro-averaged metrics from confusion matrix. So is there any reason to return micro-averaged metrics as default when we call this function?
This is my first time to post a discussion in MONAI community. Hope this can help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions