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

AttributeError: module 'mglearn' has no attribute 'plot_helpers' #154

Closed
baqwas opened this issue Aug 23, 2021 · 6 comments
Closed

AttributeError: module 'mglearn' has no attribute 'plot_helpers' #154

baqwas opened this issue Aug 23, 2021 · 6 comments

Comments

@baqwas
Copy link

baqwas commented Aug 23, 2021

Hello!

After cloning the repository, I ran the first line in the notebook, 01-introduction.ipyng, and encountered the following error message:
AttributeError: module 'mglearn' has no attribute 'plot_helpers'

Is this an operator/user self-inflicted error?

Thanks.

My platform information (derived from the code in the notebook a few lines later) is:

Python version: 3.9.5 (default, May 11 2021, 08:20:37) 
[GCC 10.3.0]
pandas version: 1.2.4
matplotlib version: 3.4.1
NumPy version: 1.19.5
SciPy version: 1.6.3
IPython version: 7.23.1
scikit-learn version: 0.24.2
graphviz version: 0.17
@baqwas
Copy link
Author

baqwas commented Aug 23, 2021

Operator error presumably. I ran ./mglearn/plot_helpers.py autonomously and then re-ran the original notebook, 01-introduction.ipyng. Everything worked as documented. Sorry for the false alarm.

Kind regards.

@baqwas baqwas closed this as completed Aug 23, 2021
@amueller
Copy link
Owner

Glad it worked out in the end :)

@imkhali
Copy link

imkhali commented Mar 4, 2022

Hello!
I am having the same exact error, I don't know what is wrong. I did not get how @baqwas solved the problem.

@wanghedy
Copy link

wanghedy commented Mar 4, 2022 via email

@baqwas
Copy link
Author

baqwas commented Mar 7, 2022

@imkhali

I ran ./mglearn/plot_helpers.py.
I have not visited this topic recently but will be willing to assist to help you further if you wish. Thanks.

Kind regards.

@BlackLutos
Copy link

I add from mglearn import plot_helpers.
And I revised cycler('color', mglearn.plot_helpers.cm_cycle.colors) to cycler('color', plot_helpers.cm_cycle.colors).

Kind regards.

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

5 participants