Python: Generating one hot matrices of all possible combinations of two lists?

后端 未结 0 909
-上瘾入骨i
-上瘾入骨i 2021-01-14 02:39

Say I have a matrix (array) where elements are in the set {0,1} subject to the constraint that all rows and columns each sum to 1.



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