CallbackNBatchCsv: bugfix .sort() → sorted()

This commit is contained in:
Starbeamrainbowlabs 2022-11-04 16:40:21 +00:00
parent 4dddcfcb42
commit 44ad51f483
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -17,7 +17,7 @@ class CallbackNBatchCsv(tf.keras.callbacks.Callback):
def write_header(self, logs): # logs = metrics
self.keys = logs.keys()
self.keys.sort()
self.keys = sorted(self.keys)
self.handle.write("\t".join(self.keys)+"\n")
def on_batch_end(self, batch, logs=None): # logs = metrics