Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save techwithshadab/ed5b1dcfe63e25ed2d5acd98121245d2 to your computer and use it in GitHub Desktop.

Select an option

Save techwithshadab/ed5b1dcfe63e25ed2d5acd98121245d2 to your computer and use it in GitHub Desktop.
loss = history.losses
val_loss = history.val_losses
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.title('VGG-16 Loss Trend')
plt.plot(loss, 'blue', label='Training Loss')
plt.plot(val_loss, 'green', label='Validation Loss')
plt.xticks(range(0,nb_epoch)[0::2])
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment