Skip to content

Instantly share code, notes, and snippets.

@rdisipio
Created November 6, 2022 13:57
Show Gist options
  • Save rdisipio/3412c56f2e8194d9b769a77a58ecf680 to your computer and use it in GitHub Desktop.
Save rdisipio/3412c56f2e8194d9b769a77a58ecf680 to your computer and use it in GitHub Desktop.
plt.plot(history1.history['binary_accuracy'], color='red')
plt.plot(history1.history['val_binary_accuracy'], color='red', linestyle='dashed')
plt.plot(history2.history['binary_accuracy'], color='blue')
plt.plot(history2.history['val_binary_accuracy'], color='blue', linestyle='dashed')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train 1', 'val 1', 'train 2', 'val 2'], loc='lower right')
plt.ylim([0.8, 1])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment