转自:https://blog.csdn.net/u012162613/article/details/45920827

1.思想

t-SNE(t-distributed stochastic neighbor embedding)是用于降维的一种机器学习算法,是由 Laurens van der Maaten 和 Geoffrey Hinton在08年提出来。
此外,t-SNE 是一种非线性降维算法,非常适用于高维数据降维到2维或者3维,进行可视化。
print("Computing t-SNE embedding")
tsne = manifold.TSNE(n_components=3, init='pca', random_state=0)
t0 = time()
X_tsne = tsne.fit_transform(X)
plot_embedding_2d(X_tsne[:,0:2],"t-SNE 2D")
plot_embedding_3d(X_tsne,"t-SNE 3D (time %.2fs)" %(time() - t0))

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-06-12
  • 2021-07-28
  • 2021-08-09
  • 2021-12-20
  • 2021-09-02
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2021-09-13
  • 2021-08-24
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案