tsne.py 文件源码

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

项目:confusion 作者: abhimanyudubey 项目源码 文件源码
def get_cmap(N):
    color_norm  = colors.Normalize(vmin=0, vmax=N-1)
    scalar_map = cmx.ScalarMappable(norm=color_norm, cmap='hsv')
    def map_index_to_rgb_color(index):
        return scalar_map.to_rgba(index)
    return map_index_to_rgb_color
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号