# The Digit Dataset¶

This dataset is made up of 1797 8x8 images. Each image, like the one shown below, is of a hand-written digit. In order to utilize an 8x8 figure like this, we’d have to first transform it into a feature vector with length 64.

print(__doc__)

# Code source: Gaël Varoquaux
# Modified for documentation by Jaques Grobler

from sklearn import datasets

import matplotlib.pyplot as plt

#Display the first digit
plt.figure(1, figsize=(3, 3))
plt.imshow(digits.images[-1], cmap=plt.cm.gray_r, interpolation='nearest')
plt.show()


Total running time of the script: ( 0 minutes 0.093 seconds)

Gallery generated by Sphinx-Gallery