Skip to content

Instantly share code, notes, and snippets.

@mohcinemadkour
Created July 25, 2020 05:46
Show Gist options
  • Save mohcinemadkour/8bdff2b1ab6de88b1f363989c50a4e84 to your computer and use it in GitHub Desktop.
Save mohcinemadkour/8bdff2b1ab6de88b1f363989c50a4e84 to your computer and use it in GitHub Desktop.
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