You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
But currently most dice losses in niftynet are missing the epsilon in the numerator. This means that in a situation where classes are not present in the ground truth, the Dice cannot be 1 even if the prediction is perfect.
Dice losses should be evaluated as:
(dice_numerator + epsilon) / (dice_denominator + epsilon)
But currently most dice losses in niftynet are missing the epsilon in the numerator. This means that in a situation where classes are not present in the ground truth, the Dice cannot be 1 even if the prediction is perfect.
Concretely, for a two voxel problem,
The Dice score should be 1.0 (the Dice loss, 1-Score, should be 0.0).
The text was updated successfully, but these errors were encountered: