mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
loss cel + dice: fixup
This commit is contained in:
parent
be77f035c8
commit
0f0b691b5d
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class LossCrossEntropyDice(tf.keras.losses.Loss):
|
|||
"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LossDice, self).__init__(**kwargs)
|
||||
super(LossCrossEntropyDice, self).__init__(**kwargs)
|
||||
|
||||
def call(self, y_true, y_pred):
|
||||
y_true = tf.cast(y_true, tf.float32)
|
||||
|
@ -34,7 +34,7 @@ class LossCrossEntropyDice(tf.keras.losses.Loss):
|
|||
return tf.reduce_mean(o)
|
||||
|
||||
def get_config(self):
|
||||
config = super(LossDice, self).get_config()
|
||||
config = super(LossCrossEntropyDice, self).get_config()
|
||||
config.update({
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue