Resources

ISL with R, 2nd Edition

A Note About the Chapter 10 Lab

The original Chapter 10 lab made use of keras, an R package for deep learning that relies on Python. Getting keras to work on your computer can be a bit of a challenge. Installation instructions are available here.

RStudio has recently released a new R package for deep learning, called torch, that does not require a Python installation. Daniel Falbel and Sigrid Keydana, two of the torch developers, translated our keras version of the Chapter 10 lab to torch. Many thanks to Daniel and Sigrid for this contribution. Please note that the torch version is a fair bit slower than the keras version.

Both the keras and torch versions of the Chapter 10 lab can be found below.

.R Files

Chapter 2 .R File

Chapter 3 .R File

Chapter 4 .R File

Chapter 5 .R File

Chapter 6 .R File

Chapter 7 .R File

Chapter 8 .R File

Chapter 9 .R File

Chapter 10 .R File (Keras Version)

Chapter 10 .R File (Torch Version)

Chapter 11 .R File

Chapter 12 .R File

Chapter 13 .R File

All .R Files as a single .zip file

Rmarkdown Files

Chapter 2 .Rmd File .html File

Chapter 3 .Rmd File .html File

Chapter 4 .Rmd File .html File

Chapter 5 .Rmd File .html File

Chapter 6 .Rmd File .html File

Chapter 7 .Rmd File .html File

Chapter 8 .Rmd File .html File

Chapter 9 .Rmd File .html File

Chapter 10 .Rmd File .html File (Keras Version)

Chapter 10 .Rmd File .html File (Torch Version)

Chapter 11 .Rmd File .html File

Chapter 12 .Rmd File .html File

Chapter 13 .Rmd File .html File

All Rmarkdown Files as a single .zip file

All html files as a single .zip file

Jupyter Notebook Files

Chapter 2 .ipynb File

Chapter 3 .ipynb File

Chapter 4 .ipynb File

Chapter 5 .ipynb File

Chapter 6 .ipynb File

Chapter 7 .ipynb File

Chapter 8 .ipynb File

Chapter 9 .ipynb File

Chapter 10 .ipynb File (Keras Version)

Chapter 10 .ipynb File (Torch Version)

Chapter 11 .ipynb File

Chapter 12 .ipynb File

Chapter 13 .ipynb File

All Jupyter Notebook Files as a single .zip file

Slides

Slides were prepared by the authors. Source code for the slides is not currently available. All rights reserved. The materials provided here can be used (and modified) for non-profit educational purposes.

Chapter 1 Slides

Chapter 2 Slides

Chapter 3 Slides

Chapter 4 Slides

Chapter 5 Slides

Chapter 6 Slides

Chapter 7 Slides

Chapter 8 Slides

Chapter 9 Slides

Chapter 10 Slides

Chapter 11 Slides

Chapter 12 Slides

Chapter 13 Slides

All slides as a single .zip file

Data Sets

Advertising.csv

Auto.data

Auto.csv

book_images.zip

College.csv

Ch12Ex13.csv

Credit.csv

Heart.csv

Income1.csv (Figure 2.2)

Income2.csv (Figure 2.3)

All .csv files, as .zip

Figures

Download zip files containing the figures for Chapters 1-6 and Chapters 7-13 . You are welcome to use these figures in your teaching or presentations, provided that you cite the textbook.

Get the R package.