Numpy Array - Advanced slicing using sum of a one hot encoded column

后端 未结 0 1859
感情败类
感情败类 2020-12-03 09:08

I\'m trying to slice an array based on a one-hot encoded column, so for an array like this:

import numpy as np
arr = np.array([[0.1,1,0,0],[0.2,1,0,0],[0.3,1,         


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