Set values in row to zero before index value of row [Numpy or Tensorflow]

后端 未结 0 1189
遇见更好的自我
遇见更好的自我 2020-11-28 07:25

I have an array A with shape (N,). I am taking N=5 for illustration:

A = np.array([0,1,1,0,1])

And I want to transform it to one of the follo

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