Closed zbw0329 closed 2 years ago
Hi, you may refer to the previous issue #14. And here is a simple example of t-SNE plot.
def tSNE(X, Y): from sklearn.manifold import TSNE X_embedded = TSNE(n_components=2).fit_transform(X) plt.figure() plt.scatter(X_embedded[:, 0], X_embedded[:, 1], c=Y) plt.savefig("./tSNE.png") plt.close()
For other color choices, you could take a look at matplotlib.colors
.
Thanks for your help!
Hi,thanks for your excellent CC. I want to visualize the clustering result,could you please release your code of t-SNE?