mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
fixup
This commit is contained in:
parent
9b13e9ca5b
commit
6ffda40d48
1 changed files with 1 additions and 1 deletions
|
@ -23,8 +23,8 @@ 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, axis=-1)
|
||||||
y_true = tf.cast(y_true, dtype=tf.float32)
|
y_true = tf.cast(y_true, dtype=tf.float32)
|
||||||
y_pred = tf.cast(y_pred, dtype=tf.float32)
|
y_pred = tf.cast(y_pred, dtype=tf.float32)
|
||||||
|
|
||||||
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