Skip to content

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

Description

@dashujuzha

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions