You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model.fit( x_train2, y_train2, # prepared data batch_size=BATCH_SIZE, epochs=EPOCHS, callbacks=[keras.callbacks.LearningRateScheduler(lr_scheduler), LrHistory(), keras_utils.TqdmProgressCallback(), keras_utils.ModelSaveCallback(model_filename)], validation_data=(x_test2, y_test2), shuffle=True, verbose=0, initial_epoch=last_finished_epoch or 0 )
But it returned me this error
~\Documents\kkbq\Coursera\Intro to Deep Learning\intro-to-dl\keras_utils.py in _set_prog_bar_desc(self, logs)
27
28 def _set_prog_bar_desc(self, logs):
---> 29 for k in self.params['metrics']:
30 if k in logs:
31 self.log_values_by_metric[k].append(logs[k])
KeyError: 'metrics'
Does anyone know why this happened? Thanks.
The text was updated successfully, but these errors were encountered:
I tried running on my local computer
model.fit( x_train2, y_train2, # prepared data batch_size=BATCH_SIZE, epochs=EPOCHS, callbacks=[keras.callbacks.LearningRateScheduler(lr_scheduler), LrHistory(), keras_utils.TqdmProgressCallback(), keras_utils.ModelSaveCallback(model_filename)], validation_data=(x_test2, y_test2), shuffle=True, verbose=0, initial_epoch=last_finished_epoch or 0 )
But it returned me this error
~\Documents\kkbq\Coursera\Intro to Deep Learning\intro-to-dl\keras_utils.py in _set_prog_bar_desc(self, logs)
27
28 def _set_prog_bar_desc(self, logs):
---> 29 for k in self.params['metrics']:
30 if k in logs:
31 self.log_values_by_metric[k].append(logs[k])
KeyError: 'metrics'
Does anyone know why this happened? Thanks.
The text was updated successfully, but these errors were encountered: