Created
November 13, 2019 09:02
-
-
Save danyashorokh/165a2f165f70b9566da42c293b67a6bd to your computer and use it in GitHub Desktop.
[Keras] Training visualization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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