mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 18:33:01 +00:00
loss: comment l2 norm
This commit is contained in:
parent
5e60319024
commit
dbe35ee943
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ class LossContrastive(tf.keras.losses.Loss):
|
||||||
# water = tf.reshape(water, [self.batch_size, water.shape[1]])
|
# water = tf.reshape(water, [self.batch_size, water.shape[1]])
|
||||||
|
|
||||||
# normalise features
|
# normalise features
|
||||||
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)
|
# water = water / tf.math.l2_normalize(water, axis=1)
|
||||||
|
|
||||||
print("AFTER_L2 rainfall", rainfall)
|
print("AFTER_L2 rainfall", rainfall)
|
||||||
print("AFTER_L2 water", water)
|
print("AFTER_L2 water", water)
|
||||||
|
|
Loading…
Reference in a new issue