test.py 文件源码

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

项目:polo 作者: adrianveres 项目源码 文件源码
def get_cell_data(n=50, seed=0):
    np.random.seed(seed)
    cells_data = np.load('./data/cells_data.npy')

    sample_cells = np.random.choice(cells_data.shape[0], n, replace=False)

    D = pdist(cells_data[sample_cells, :], 'euclidean')
    Z = linkage(D, 'ward')

    return cells_data, Z, D
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号