Capsule icon indicating copy to clipboard operation
Capsule copied to clipboard

当我用python3执行的时候遇到一个问题

Open dashujuzha opened this issue 5 years ago • 2 comments

执行这一句的时候 greater = np.sort(Y_pred, axis=1)[:,-2] > 0.5 #判断预测结果是否大于0.5

遇到一个问题 numpy.core._internal.AxisError: axis 1 is out of bounds for array of dimension 1

不知道怎么解决了。谢谢。

dashujuzha avatar Aug 08 '19 11:08 dashujuzha

我也不知道

bojone avatar Aug 09 '19 01:08 bojone

@dashujuzha Did you find the reason or solution of the error because even I am getting the same error by running the code with both python 2.7 and 3.5??

matak07 avatar Sep 19 '19 05:09 matak07