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
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'
The text was updated successfully, but these errors were encountered:
See attached screen print

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'
The text was updated successfully, but these errors were encountered: