This repository has been archived on 2020-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
ml/nn/visualizeDigits.py

14 lines
191 B
Python
Executable File

#!/usr/bin/env python3
# coding:utf-8
import sklearn.datasets as ds
import pylab as pl
digits = ds.load_digits()
print(digits.data.shape)
pl.gray()
pl.matshow(digits.images[0])
pl.show()