mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
dlr: fixup
This commit is contained in:
parent
3d051a8874
commit
8470aec996
1 changed files with 1 additions and 1 deletions
|
@ -26,5 +26,5 @@ def dice_coefficient(y_true, y_pred):
|
||||||
|
|
||||||
|
|
||||||
def metric_dice_coefficient(y_true, y_pred):
|
def metric_dice_coefficient(y_true, y_pred):
|
||||||
y_pred = tf.math.argmax(y_pred)
|
y_pred = tf.math.argmax(y_pred, axis=-1)
|
||||||
return dice_coefficient(y_true, y_pred)
|
return dice_coefficient(y_true, y_pred)
|
Loading…
Reference in a new issue