In [57]: dW = np.zeros((2,2), int)
In [58]: x = [[0,1,1,0,1, 0], [1, 1, 1, 1, 0, 0]]
In [59]: np.add.at(dW,x,1)
/home/infinity/anaconda3/bin/ipython:1: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
我试图使用 numpy 创建一个混淆矩阵,但我得到了前面的错误。我该如何解决?