I am working through the examples in the book, but can't access the mglearn module, or rather some of the attributes to be more precise (e.g. 'datasets')
I am running Python 3 and have installed sci-kit learn version 0.18. I also did a $ pip install of mglearn
I researched the GitHub site, but don't understand much of what is written there.
A few examples:
"You don't need this repo, all the code is there!"
Where is "there" ?
"This here is a stand-alone package in case you really feel like you want to install mglearn, for some reason or another."
what does "some reason or another" mean ? Mglearn is integral to the examples in the book and I thought installing mglearn using pip install was standard practice
Or you can just check out the notebooks from the repository above, and add the path to the mglearn subfolder to your PYTHONPATH environment variable (or set it in your IDE).
"check out" which notebooks ? where is the mglearn subfolder to be found ? and what is a PYTHONPATH environment variable ?
Thanks for any clarification and advice.
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
Sorry the instructions are unclear.
I'm not sure of if your read the full readme, but it says:
"This is the mglearn package used in the book, which you can also find in the accompanying repository. You don't need this repo, all the code is there!"
and links to that repository: https://github.com/amueller/introduct...
That repository is where "There" is, and also "which notebooks".
That repository, which is also mentioned in the book, contains all the notebooks containing the code in the book. You can download (or in version control speak "check out") that repository, and get all the code in the book and mglearn and all the datasets.
That way you can run the code without installing mglearn (because it is contained in the notebook repository).
If you want to run mglearn outside of that folder, you can "pip install mglearn".
Currently "pip install mglearn" doesn't download the datasets, as you observed. I'll fix that.
Dawn, Thank you for your prompt response and assistance.
Andreas, thank you for this helpful information and additional insights. Actually, the first error I ran into was that something called 'Cycler' hadn't installed, but I subsequently installed this. The error message I received after this just referred to 'datsets' in general with no additional precision. I am sure that thanks to your suggestions I will be able to get back on track. I appreciate the support.