MCPcopy Create free account
hub / github.com/CandleLabAI/PCBSegClassNet / dice_loss

Function dice_loss

src/models/loss.py:19–20  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

17
18
19def dice_loss(y_true, y_pred):
20 return tf.reduce_mean(1.0 - dice_coef(y_true, y_pred))
21
22
23def jacard_coef(y_true, y_pred):

Callers 1

DISLossFunction · 0.85

Calls 1

dice_coefFunction · 0.85

Tested by

no test coverage detected