soccerstan.py 文件源码

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

项目:soccerstan 作者: Torvaney 项目源码 文件源码
def stan_map(vector):
    """ Create a map of vector items : id. """
    unique_items = np.unique(vector)
    return {item: id_ for id_, item in enumerate(unique_items, start=1)}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号