Skip to content

Labs and exercises of the “An Introduction to Statistical Learning: with Applications in R” book, in Python.

License

Notifications You must be signed in to change notification settings

AliD101v/ISLR-labs-exercises-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Introduction to Statistical Learning: with Applications in R Labs and Exercises in Python

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

Installation

Code is in Python 3.7. No other requirements are needed.

Usage

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.

Contributing

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.

License

  • 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

About

Labs and exercises of the “An Introduction to Statistical Learning: with Applications in R” book, in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published