Visualizing the digits dataset using UMAPΒΆ

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

../_images/sphx_glr_plot_UMAP_001.png
# Code source: Andrew Heusser and Leland McInnes
# License: MIT

from sklearn import datasets
import hypertools as hyp

digits = datasets.load_digits(n_class=6)
data = digits.data
hue = digits.target.astype('str')

hyp.plot(data, '.', reduce='UMAP', hue=hue, ndims=2)

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

Gallery generated by Sphinx-Gallery