Dice Cofficient Metric
\[-2\frac{|\mathcal{M} \otimes \hat{\mathcal{M}}|}{|\mathcal{M}| - |\hat{\mathcal{M}}|}\]
-
class image_segmentation.metrics.dice.DiceCoefficientMetric(*args: Any, **kwargs: Any)[source]
-
compute(y_true, y_pred)[source]
-
get_config()[source]
-
result()[source]
-
update_state(y_true, y_pred, sample_weight=None)[source]
-
class image_segmentation.metrics.dice.SparseCategoricalDiceCoefficientMetric(*args: Any, **kwargs: Any)[source]
-
update_state(y_true, y_pred, sample_weight=None)[source]