Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in keras_utils.py #35

Open
samtjong23 opened this issue May 24, 2021 · 0 comments
Open

KeyError in keras_utils.py #35

samtjong23 opened this issue May 24, 2021 · 0 comments

Comments

@samtjong23
Copy link

samtjong23 commented May 24, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant