This example loads in some data from the scikit-learn digits dataset and plots it using UMAP.
[ ]:
# Code source: Andrew Heusser and Leland McInnes# License: MITfromsklearnimportdatasetsimporthypertoolsashypdigits=datasets.load_digits(n_class=6)data=digits.datahue=digits.target.astype('str')hyp.plot(data,'.',reduce='UMAP',hue=hue,ndims=2)