Quick Retrieve on Google     Quick Retrieve on Bing

Combine Art and Sciences

Blogs transfered from: blog.csdn.net/sonictl

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年4月2日

摘要: python 处理标签常常需要将一组标签映射到一组数字,数字还要求连续。 比如 ['a', 'b', 'c', 'a', 'a', 'b', 'c'] ==(a 0, b 1, c 2)= [0, 1, 2, 0, 0, 1, 2]。 为了便于本文被搜索,加个关键词:重新编码 可以用 这个函数。 以 阅读全文
posted @ 2019-04-02 19:50 sonictl 阅读(442) 评论(0) 推荐(0) 编辑