Skip to content
Snippets Groups Projects
Commit 383f473b authored by tomrink's avatar tomrink
Browse files

minor...

parent 2816315c
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,9 @@ PROC_BATCH_BUFFER_SIZE = 50000
NumClasses = 2
NumLogits = 1
BATCH_SIZE = 256
NUM_EPOCHS = 200
NUM_EPOCHS = 100
TRACK_MOVING_AVERAGE = True
TRACK_MOVING_AVERAGE = False
EARLY_STOP = True
TRIPLET = False
......@@ -464,7 +464,7 @@ class IcingIntensityNN:
optimizer = tf.keras.optimizers.Adam(learning_rate=self.learningRateSchedule)
if TRACK_MOVING_AVERAGE:
if TRACK_MOVING_AVERAGE: # Not really sure this works properly
optimizer = tfa.optimizers.MovingAverage(optimizer)
self.optimizer = optimizer
......@@ -663,6 +663,9 @@ class IcingIntensityNN:
print('loss, acc, recall, precision, auc, f1, mcc: ', self.test_loss.result().numpy(), self.test_accuracy.result().numpy(),
self.test_recall.result().numpy(), self.test_precision.result().numpy(), self.test_auc.result().numpy(), f1.numpy(), mcc.numpy())
print('------------------------------------------------------')
if TRACK_MOVING_AVERAGE: # This may not really work properly
self.optimizer.assign_average_vars(self.model.trainable_variables)
ckpt_manager.save()
if self.DISK_CACHE and epoch == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment