Fast way to create incidence matrix from list of label python?

前端 未结 0 1629
一向
一向 2020-12-19 11:27

I have an array y, len(y) = M that contains values from 0 -> N. For example, with N = 3:

y = [0, 2, 0, 1, 2, 1, 0, 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题