|
|
1
0
这与前面的问题类似,我认为答案在[这个][1] https://stackoverflow.com/questions/5469286/how-to-get-the-index-of-a-maximum-element-in-a-numpy-array-along-one-axis 使用Numpy[argmax][1]有一个优雅的解决方案 1.https://numpy.org/doc/stable/reference/generated/numpy.argmax.html argmax解决方案:
|