mglearn icon indicating copy to clipboard operation
mglearn copied to clipboard

np.bool is deprecated

Open hubgrim opened this issue 1 year ago • 1 comments

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()

hubgrim avatar Mar 08 '23 13:03 hubgrim

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

amueller avatar Jun 01 '23 02:06 amueller