Created
July 25, 2020 05:37
-
-
Save mohcinemadkour/7938aebc9f1e766ac2cfc23e7154abec to your computer and use it in GitHub Desktop.
This file contains 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
labels = ['MLP no dropout', | |
'MLP 50% dropout in hidden layers', | |
'MLP 50% dropout in hidden layers + 20% in input layer'] | |
plt.figure(figsize=(8, 7)) | |
for i, r in enumerate(mlp1_test_errors): | |
plt.plot(range(1, len(r)+1), r, '.-', label=labels[i], alpha=0.6); | |
plt.ylim([50, 250]); | |
plt.legend(loc=1); | |
plt.xlabel('Epochs'); | |
plt.ylabel('Number of errors in test set'); | |
plt.title('Test error on MNIST dataset for Multilayer Perceptron') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment