Created
July 25, 2020 05:46
-
-
Save mohcinemadkour/8bdff2b1ab6de88b1f363989c50a4e84 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', | |
'LeNet no dropout', | |
'LeNet 50% dropout'] | |
plt.figure(figsize=(8, 7)) | |
for i, r in enumerate(mlp1_test_errors.tolist() + lenet1_test_errors.tolist()): | |
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 All Networks') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment