This function is a loss function that can be used when training the segmentation model. This loss function can be used in place of binary crossentropy, which is the current loss function in the training stage.
nparray float) – The true mask of the image
nparray float) – The predicted mask of the data
The loss metric between prediction and ground truth