mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 17:23:01 +00:00
loss: fixup
This commit is contained in:
parent
55dc05e8ce
commit
458faa96d2
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class LossContrastive(tf.keras.losses.Loss):
|
||||||
|
|
||||||
# normalise features
|
# normalise features
|
||||||
rainfall = rainfall / tf.math.l2_normalize(rainfall, axis=1)
|
rainfall = rainfall / tf.math.l2_normalize(rainfall, axis=1)
|
||||||
rainfall = rainfall / tf.math.l2_normalize(rainfall, axis=1)
|
water = water / tf.math.l2_normalize(water, axis=1)
|
||||||
|
|
||||||
# logits = tf.linalg.matmul(rainfall, tf.transpose(water)) * tf.clip_by_value(tf.math.exp(self.weight_temperature), 0, 100)
|
# logits = tf.linalg.matmul(rainfall, tf.transpose(water)) * tf.clip_by_value(tf.math.exp(self.weight_temperature), 0, 100)
|
||||||
logits = tf.linalg.matmul(rainfall, tf.transpose(water)) * tf.math.exp(self.weight_temperature)
|
logits = tf.linalg.matmul(rainfall, tf.transpose(water)) * tf.math.exp(self.weight_temperature)
|
||||||
|
|
Loading…
Reference in a new issue