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

AAS2019_NNexample.ipynb plot_model_history(vgg_model.history) - KeyError: 'loss' #5

Open
JosephKarpinski opened this issue Jul 4, 2021 · 0 comments

Comments

@JosephKarpinski
Copy link

See attached screen print
NNexample_error
below

Running sample code got:

KeyError: 'loss'

KeyError Traceback (most recent call last)
/var/folders/39/hmv9hpy10cg6cx015773lbtw0000gn/T/ipykernel_2037/1962927886.py in
1 # plot the training history
----> 2 plot_model_history(vgg_model.history)

/var/folders/39/hmv9hpy10cg6cx015773lbtw0000gn/T/ipykernel_2037/664928204.py in plot_model_history(history)
92
93 # Extract loss and accuracy
---> 94 loss = history.history['loss']
95 val_loss = history.history['val_loss']
96 acc = history.history['accuracy']

KeyError: 'loss'

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