Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created August 16, 2018 21:10
Show Gist options
  • Save WillKoehrsen/3a10f1e28562f055fe05194afd89dc6a to your computer and use it in GitHub Desktop.
Save WillKoehrsen/3a10f1e28562f055fe05194afd89dc6a to your computer and use it in GitHub Desktop.
import umap as UMAP
n_components = 3
# Use default parameters
umap = UMAP(n_components=n_components)
# Fit and transform
train_reduced = umap.fit_transform(train)
test_reduced = umap.transform(test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment