Labs
Every lab script and notebook in the course, by language
The chapter pages point you to the lab that belongs with each topic. This page is the flat index, for when you know the file name and just want it.
Files are served as plain source. Right-click and save, or open them straight in Positron.
R labs R
Python labs Python
| File | Type | Size |
|---|---|---|
ch4-lab-py.qmd |
QMD | 13 KB |
knn.py |
PY | 8 KB |
lab-ridge.qmd |
QMD | 2 KB |
model-selection-code.py |
PY | 20 KB |
psx.py |
PY | 4 KB |
psx.qmd |
QMD | 13 KB |
Jupyter notebooks
| File | Type | Size |
|---|---|---|
ch04-classification-lab.ipynb |
IPYNB | 508 KB |
chapter-2.ipynb |
IPYNB | 1.9 MB |
Pre-rendered output
Some labs were rendered earlier with output and figures intact. They are kept here so you can read the results without running anything.
| File | Type | Size |
|---|---|---|
bootstrapping.html |
HTML | 33 KB |
cart-models.html |
HTML | 47 KB |
cart.html |
HTML | 20 KB |
ch02-10.html |
HTML | 57 KB |
ch03.html |
HTML | 210 KB |
ch04-classification-lab.html |
HTML | 234 KB |
ch1.html |
HTML | 21 KB |
ch2-stat-learning.html |
HTML | 27 KB |
ch4-lab-py.html |
HTML | 89 KB |
ch6.html |
HTML | 60 KB |
chapter-2.html |
HTML | 126 KB |
final-exam26-answer.html |
HTML | 23 KB |
final-exam26.html |
HTML | 36 KB |
ml-economics-ai-lecture.html |
HTML | 83 KB |
psx-bootstrapping.html |
HTML | 58 KB |
psx.html |
HTML | 73 KB |
pxs-cv.html |
HTML | 57 KB |