Skip to content

Instantly share code, notes, and snippets.

@danyashorokh
Created November 13, 2019 09:02
Show Gist options
  • Save danyashorokh/165a2f165f70b9566da42c293b67a6bd to your computer and use it in GitHub Desktop.
Save danyashorokh/165a2f165f70b9566da42c293b67a6bd to your computer and use it in GitHub Desktop.
[Keras] Training visualization
# Plot training & validation accuracy values
plt.plot(results.history['iou_coef'])
plt.plot(results.history['val_iou_coef'])
plt.title('Model accuracy')
plt.ylabel('IOU')
plt.xlabel('Epoch')
plt.legend(['Train', 'Test'], loc='upper left')
plt.show()
# Plot training & validation loss values
plt.plot(results.history['loss'])
plt.plot(results.history['val_loss'])
plt.title('Model loss [binary_crossentropy]')
plt.ylabel('Loss')
plt.xlabel('Epoch')
plt.legend(['Train', 'Test'], loc='upper left')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment