Dice Cofficient Loss

\[-2\frac{|\mathcal{M} \otimes \hat{\mathcal{M}}|}{|\mathcal{M}| - |\hat{\mathcal{M}}|}\]
class image_segmentation.losses.dice.DiceCoefficient(*args: Any, **kwargs: Any)[source]
call(y_true, y_pred)[source]
get_config()[source]
class image_segmentation.losses.dice.SparseCategoricalDiceCoefficient(*args: Any, **kwargs: Any)[source]
call(y_true, y_pred)[source]