Visualizing the digits datasetΒΆ

This example loads in some data from the scikit-learn digits dataset and plots it.

[ ]:
# Code source: Andrew Heusser
# License: MIT

# import
from sklearn import datasets
import hypertools as hyp

# load example data
digits = datasets.load_digits(n_class=6)
data = digits.data
hue = digits.target

# plot
hyp.plot(data, '.', hue=hue)