Machine Learning, Deep Learning, Image Segmentation, Keras, Biomedical Imaging.
the loss function. To make the dice coefficient differentiable, instead of using the predicted mask with the image array of value 0 or 1, we use the predicted probabilities (continuous parameter). By doing this, the function becomes continuous and hence differentiable. So finally the dice loss is