Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
def
dice_loss(y_true, y_pred):
20
return
tf.reduce_mean(1.0 - dice_coef(y_true, y_pred))
21
22
23
def
jacard_coef(y_true, y_pred):
Callers
1
DISLoss
Function · 0.85
Calls
1
dice_coef
Function · 0.85
Tested by
no test coverage detected