Skip to content

Instantly share code, notes, and snippets.

@zabop
Created July 17, 2021 21:20
Show Gist options
  • Save zabop/276fddeaa34510b66c2862eacbfd723e to your computer and use it in GitHub Desktop.
Save zabop/276fddeaa34510b66c2862eacbfd723e to your computer and use it in GitHub Desktop.
plt.figure(figsize=(8,6))
plt.plot(epochs, history_dict1['val_acc'], 'b', linewidth=5, label='Accuracy, ReLU, 16 neurons')
plt.plot(epochs, history_dict2['val_acc'], 'r', linewidth=5, label='Accuracy, Sigmoid, 16 neurons')
plt.plot(epochs, history_dict3['val_acc'], 'c', linewidth=5, label='Accuracy, ReLU, 64 neurons')
plt.plot(epochs, history_dict4['val_acc'], 'k', linewidth=5, label='Accuracy, Sigmoid, 64 neurons')
plt.title('Accuracy vs epochs',fontsize=22)
plt.xlabel('Epochs',fontsize=18)
plt.ylabel('Accuracy',fontsize=18)
plt.tick_params(axis='both', which='major', direction='inout', length=20, labelsize=16)
plt.legend(fontsize=16,frameon=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment