The labs and exercises in the ISLR book are originally presented using R. This repository is intended to provide the equivalent code in Python for the labs and exercises (my way of writing them).
Code is in Python 3.7. No other requirements are needed.
Just run the scripts using your favorite IDE, or, on the command line, browse to the directory for a chapter, and run
python SCRIPT_NAME
The scripts actually contain Jupyter-like code cells, which can be interactively run inside Visual Studio Code with the appropriate setup. Refer to this guide for more information on how to do so. After setting up the environment, you can also export a Jupyter notebook. I export a Jupyter notebook file every time I update an accompanying script, but they may get a commit or two behind.
Pull requests in in the form of improvements, alternate solutions, or error fixes are welcome. For major changes, please open an issue first to discuss what you would like to change.
- The textbook and figures (not included in this repository) are © Springer, 2013.
- The datasets are provided under GPL-2.
- If this work is considered a derivative of the original lab codes, and as such is a violation of the authors' and/or the publisher's rights, please contact me so that I can take proper action.
- The codes in this repository: MIT