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

np.bool is deprecated #27

Open
hubgrim opened this issue Mar 8, 2023 · 1 comment
Open

np.bool is deprecated #27

hubgrim opened this issue Mar 8, 2023 · 1 comment

Comments

@hubgrim
Copy link

hubgrim commented Mar 8, 2023

np.bool should be bool in this line, according to an error it throws calling this code:

    # generate dataset
    X, y = mglearn.datasets.make_forge()
    # plot dataset
    mglearn.discrete_scatter(X[:, 0], X[:, 1], y)
    plt.legend(["Class 0", "Class 1"], loc=4)
    plt.xlabel("First feature")
    plt.ylabel("Second feature")
    print("X.shape: {}".format(X.shape))
    plt.show()
@amueller
Copy link
Owner

amueller commented Jun 1, 2023

Should be fixed in the newest release on pypi, can you try?

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

2 participants