Skip to content

Instantly share code, notes, and snippets.

@MortisHuang
Created November 10, 2019 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MortisHuang/664be3a65b0498cd01105624b327cfcf to your computer and use it in GitHub Desktop.
Save MortisHuang/664be3a65b0498cd01105624b327cfcf to your computer and use it in GitHub Desktop.
tSNE_example_2
from sklearn import manifold, datasets
digits = datasets.load_digits(n_class=6)
X, y = digits.data, digits.target
X_tsne = manifold.TSNE(n_components=2, init='random', random_state=5, verbose=1).fit_transform(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment