Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created July 28, 2019 18:36
Show Gist options
  • Save prateekjoshi565/c873aea2424308ac856b666c8ea12923 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/c873aea2424308ac856b666c8ea12923 to your computer and use it in GitHub Desktop.
import umap
cluster_embedding = umap.UMAP(n_neighbors=30, min_dist=0.0,
n_components=2, random_state=42).fit_transform(X)
plt.figure(figsize=(10,9))
plt.scatter(cluster_embedding[:, 0], cluster_embedding[:, 1], s=3, cmap='Spectral')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment