mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
LossDice: Do 1 - thing instead of -thing
This commit is contained in:
parent
d0dbc50bb7
commit
bcd2f1251e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def dice_coef_loss(y_true, y_pred, **kwargs):
|
|||
Returns:
|
||||
Tensor: The Dice coefficient, but as a loss value that decreases instead fo increases as the model learns.
|
||||
"""
|
||||
return -dice_coef(y_true, y_pred, **kwargs)
|
||||
return 1 - dice_coef(y_true, y_pred, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue