Skip to content
Snippets Groups Projects
Commit 725996d8 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent f792eebe
No related branches found
No related tags found
No related merge requests found
...@@ -381,8 +381,10 @@ class IcingIntensityNN: ...@@ -381,8 +381,10 @@ class IcingIntensityNN:
fc = tf.keras.layers.BatchNormalization()(fc) fc = tf.keras.layers.BatchNormalization()(fc)
print(fc.shape) print(fc.shape)
# activation = tf.nn.softmax # For multi-class if NumClasses == 2:
activation = tf.nn.sigmoid # For binary activation = tf.nn.sigmoid # For binary
else:
activation = tf.nn.softmax # For multi-class
# Called logits, but these are actually probabilities see activation # Called logits, but these are actually probabilities see activation
logits = tf.keras.layers.Dense(NumLogits, activation=activation)(fc) logits = tf.keras.layers.Dense(NumLogits, activation=activation)(fc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment