Skip to content

Instantly share code, notes, and snippets.

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