In MONAI's focal loss implementation, why does the alpha parameter become invalid when softmax is used and include_background=False? #8116
Unanswered
dancingreindeer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @dancingreindeer, we only calculate it for background class and other classes, so If include_background is set to False, there will be no background class to calculate, then set it to None. You can set MONAI/monai/losses/focal_loss.py Line 218 in acfc508 Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the code piece. Not sure why when we don't include background and when using softmax, alpha became invalid? Does this assume there are no label imbalance? How to address this when there is significantly more negative samples than positive samples in the experiment then?
Beta Was this translation helpful? Give feedback.
All reactions