mds.py 文件源码

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

项目:RNNVis 作者: myaooo 项目源码 文件源码
def test():

    points = square_points(10)

    distance = np.zeros((100,100))
    for (i, pointi) in enumerate(points):
        for (j, pointj) in enumerate(points):
            distance[i, j] = norm(pointi - pointj)

    Y, eigs = mds(distance)

    pylab.figure(1)
    pylab.plot(Y[:, 0], Y[:, 1], '.')

    pylab.figure(2)
    pylab.plot(points[:, 0], points[:, 1], '.')

    pylab.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号