PCA_n_Cluster.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:msd-genrecl 作者: Phonicavi 项目源码 文件源码
def PCA_n_plot():
    all_feas = get_all_feas();


    print 'Start PCA ...'
    pca = PCA(n_components = 3,whiten = False)
    new_feas = pca.fit_transform(np.array(all_feas))
    Fig = plt.figure()
    ax = Axes3D(Fig)
    print 'Start Ploting'
    ax.scatter(new_feas[:,0],new_feas[:,1],new_feas[:,2])
    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号