Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dashujuzha opened this issue Aug 8, 2019 · 2 comments
Open

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

dashujuzha opened this issue Aug 8, 2019 · 2 comments

Comments

@dashujuzha
Copy link

执行这一句的时候 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

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

@bojone
Copy link
Owner

bojone commented Aug 9, 2019

我也不知道

@matak07
Copy link

matak07 commented Sep 19, 2019

@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??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants