Created
April 10, 2019 02:24
-
-
Save lockdef/95ef4e10c1ad453864da81da042fbfb1 to your computer and use it in GitHub Desktop.
MNISTをプロットする
This file contains hidden or 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
| from sklearn.datasets import load_digits | |
| import matplotlib.pyplot as plt | |
| data = load_digits() | |
| for num, image, label in zip(range(10), data.images[:10], data.target[:10]): | |
| plt.subplot(2, 5, num+1) | |
| plt.imshow(image) | |
| plt.title(label) | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment