Jupytext sync (#49)
* fixes to Rmd from Daniela's errata * synced the notebooks * syncing notebooks * all but Chapter10 * chapter 10
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Introduction to Python
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch02-statlearn-lab.ipynb">
|
||||
@@ -70,7 +83,7 @@ print('fit a model with', 11, 'variables')
|
||||
The following command will provide information about the `print()` function.
|
||||
|
||||
```{python}
|
||||
print?
|
||||
# print?
|
||||
|
||||
```
|
||||
|
||||
@@ -220,7 +233,7 @@ documentation associated with the function `fun`, if it exists.
|
||||
We can try this for `np.array()`.
|
||||
|
||||
```{python}
|
||||
np.array?
|
||||
# np.array?
|
||||
|
||||
```
|
||||
This documentation indicates that we could create a floating point array by passing a `dtype` argument into `np.array()`.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Linear Regression
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch03-linreg-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Logistic Regression, LDA, QDA, and KNN
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch04-classification-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Cross-Validation and the Bootstrap
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch05-resample-lab.ipynb">
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "dc2d635a",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "6dde3cef",
|
||||
@@ -38,10 +32,10 @@
|
||||
"id": "f1deb5cc",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:13.493284Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:13.492950Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.143174Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.142882Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.204499Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.204390Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.819021Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.818655Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -70,10 +64,10 @@
|
||||
"id": "268c41b3",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.144884Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.144773Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.146541Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.146330Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.820788Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.820641Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.822663Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.822416Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -114,10 +108,10 @@
|
||||
"id": "22f44ae0",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.147809Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.147730Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.152606Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.152414Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.823864Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.823764Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.829383Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.829160Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -142,10 +136,10 @@
|
||||
"id": "0c32e917",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.153847Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.153757Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.157537Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.157339Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.830793Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.830713Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.834993Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.834789Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -172,10 +166,10 @@
|
||||
"id": "86ce4f85",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.158717Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.158637Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.162177Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.161910Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.836150Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.836082Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.839814Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.839608Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -207,7 +201,7 @@
|
||||
"\n",
|
||||
"We can also estimate the validation error for\n",
|
||||
"higher-degree polynomial regressions. We first provide a function `evalMSE()` that takes a model string as well\n",
|
||||
"as a training and test set and returns the MSE on the test set."
|
||||
"as training and test sets and returns the MSE on the test set."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -216,10 +210,10 @@
|
||||
"id": "50a66a97",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.163466Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.163397Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.165323Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.165076Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.841088Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.841015Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.843031Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.842838Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -259,10 +253,10 @@
|
||||
"id": "d49b6999",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.166563Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.166497Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.177198Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.176975Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.844166Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.844091Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.855875Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.855640Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -303,10 +297,10 @@
|
||||
"id": "dac8bd54",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.178405Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.178321Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.188650Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.188432Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.857092Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.857011Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:23.868361Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:23.868136Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -386,10 +380,10 @@
|
||||
"id": "601ae443",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.189993Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.189906Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:14.876368Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:14.876129Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:23.869578Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:23.869501Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:24.584127Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:24.583898Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -427,7 +421,7 @@
|
||||
"and `score()` methods, an\n",
|
||||
"array of features `X` and a response `Y`. \n",
|
||||
"We also included an additional argument `cv` to `cross_validate()`; specifying an integer\n",
|
||||
"$K$ results in $K$-fold cross-validation. We have provided a value \n",
|
||||
"$k$ results in $k$-fold cross-validation. We have provided a value \n",
|
||||
"corresponding to the total number of observations, which results in\n",
|
||||
"leave-one-out cross-validation (LOOCV). The `cross_validate()` function produces a dictionary with several components;\n",
|
||||
"we simply want the cross-validated test score here (MSE), which is estimated to be 24.23."
|
||||
@@ -454,10 +448,10 @@
|
||||
"id": "11226c85",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:14.877800Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:14.877726Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.384419Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.384193Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:24.585528Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:24.585450Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.124201Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.123913Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -511,10 +505,10 @@
|
||||
"id": "64b64d97",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.385768Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.385690Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.387686Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.387484Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.125598Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.125513Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.127886Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.127667Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -542,8 +536,8 @@
|
||||
"id": "71385c1b",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"In the CV example above, we used $K=n$, but of course we can also use $K<n$. The code is very similar\n",
|
||||
"to the above (and is significantly faster). Here we use `KFold()` to partition the data into $K=10$ random groups. We use `random_state` to set a random seed and initialize a vector `cv_error` in which we will store the CV errors corresponding to the\n",
|
||||
"In the CV example above, we used $k=n$, but of course we can also use $k<n$. The code is very similar\n",
|
||||
"to the above (and is significantly faster). Here we use `KFold()` to partition the data into $k=10$ random groups. We use `random_state` to set a random seed and initialize a vector `cv_error` in which we will store the CV errors corresponding to the\n",
|
||||
"polynomial fits of degrees one to five."
|
||||
]
|
||||
},
|
||||
@@ -553,10 +547,10 @@
|
||||
"id": "ca0f972f",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.389014Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.388934Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.407438Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.407194Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.129127Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.129050Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.149889Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.149644Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -594,7 +588,7 @@
|
||||
"source": [
|
||||
"Notice that the computation time is much shorter than that of LOOCV.\n",
|
||||
"(In principle, the computation time for LOOCV for a least squares\n",
|
||||
"linear model should be faster than for $K$-fold CV, due to the\n",
|
||||
"linear model should be faster than for $k$-fold CV, due to the\n",
|
||||
"availability of the formula~(\\ref{Ch5:eq:LOOCVform}) for LOOCV;\n",
|
||||
"however, the generic `cross_validate()` function does not make\n",
|
||||
"use of this formula.) We still see little evidence that using cubic\n",
|
||||
@@ -608,8 +602,9 @@
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"The `cross_validate()` function is flexible and can take\n",
|
||||
"different splitting mechanisms as an argument. For instance, one can use the `ShuffleSplit()` funtion to implement\n",
|
||||
"the validation set approach just as easily as K-fold cross-validation."
|
||||
"different splitting mechanisms as an argument. For instance, one can use the `ShuffleSplit()`\n",
|
||||
"function to implement\n",
|
||||
"the validation set approach just as easily as $k$-fold cross-validation."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -618,10 +613,10 @@
|
||||
"id": "080cdb29",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.408750Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.408677Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.413979Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.413762Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.151147Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.151072Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.156751Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.156501Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -662,10 +657,10 @@
|
||||
"id": "7c46de2b",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.415225Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.415158Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.437526Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.437302Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.158025Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.157939Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.182100Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.181888Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -736,10 +731,10 @@
|
||||
"id": "a4b6d9b3",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.438786Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.438714Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.441484Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.441268Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.183403Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.183320Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.186088Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.185890Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -770,10 +765,10 @@
|
||||
"id": "81498a11",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.442843Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.442765Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.445171Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.444944Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.187384Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.187299Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.189610Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.189413Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -809,10 +804,10 @@
|
||||
"id": "64fe1cb6",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.446422Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.446354Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.448793Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.448579Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.190738Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.190670Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.193250Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.193037Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -852,10 +847,10 @@
|
||||
"id": "dd16bbae",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.450062Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.449992Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.451958Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.451742Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.194520Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.194445Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.196804Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.196574Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -897,10 +892,10 @@
|
||||
"id": "b42b4585",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.453190Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.453118Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.631597Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.631370Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.198086Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.198011Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.394494Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.394181Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -963,10 +958,10 @@
|
||||
"id": "6bc11784",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.632802Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.632725Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.634450Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.634222Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.396011Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.395917Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.397893Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.397676Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -998,10 +993,10 @@
|
||||
"id": "740cd50c",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.635644Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.635575Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.637097Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.636867Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.399076Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.398999Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.400599Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.400346Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -1031,10 +1026,10 @@
|
||||
"id": "ffb3ec50",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.638287Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.638220Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:15.656475Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:15.656261Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.401753Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.401682Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:25.422622Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:25.422385Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -1082,10 +1077,10 @@
|
||||
"id": "7d561f70",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:15.657733Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:15.657659Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:17.204871Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:17.204614Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:25.423860Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:25.423786Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:27.089093Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:27.088869Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -1132,10 +1127,10 @@
|
||||
"id": "3888aa0a",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:17.206302Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:17.206223Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:17.221631Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:17.221444Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:27.090386Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:27.090313Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:27.106785Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:27.106554Z"
|
||||
},
|
||||
"lines_to_next_cell": 2
|
||||
},
|
||||
@@ -1177,7 +1172,7 @@
|
||||
"rely on certain assumptions. For example,\n",
|
||||
"they depend on the unknown parameter $\\sigma^2$, the noise\n",
|
||||
"variance. We then estimate $\\sigma^2$ using the RSS. Now although the\n",
|
||||
"formula for the standard errors do not rely on the linear model being\n",
|
||||
"formulas for the standard errors do not rely on the linear model being\n",
|
||||
"correct, the estimate for $\\sigma^2$ does. We see\n",
|
||||
" {in Figure~\\ref{Ch3:polyplot} on page~\\pageref{Ch3:polyplot}} that there is\n",
|
||||
"a non-linear relationship in the data, and so the residuals from a\n",
|
||||
@@ -1204,10 +1199,10 @@
|
||||
"id": "acc3e32c",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:17.222887Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:17.222785Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:19.351574Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:19.351317Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:27.108124Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:27.108030Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:29.434320Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:29.434045Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
@@ -1247,10 +1242,10 @@
|
||||
"id": "dca5340c",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-06-04T23:19:19.352904Z",
|
||||
"iopub.status.busy": "2024-06-04T23:19:19.352827Z",
|
||||
"iopub.status.idle": "2024-06-04T23:19:19.360147Z",
|
||||
"shell.execute_reply": "2024-06-04T23:19:19.359948Z"
|
||||
"iopub.execute_input": "2025-04-03T19:33:29.435689Z",
|
||||
"iopub.status.busy": "2025-04-03T19:33:29.435602Z",
|
||||
"iopub.status.idle": "2025-04-03T19:33:29.444726Z",
|
||||
"shell.execute_reply": "2025-04-03T19:33:29.444464Z"
|
||||
},
|
||||
"lines_to_next_cell": 0
|
||||
},
|
||||
@@ -1288,13 +1283,8 @@
|
||||
"metadata": {
|
||||
"jupytext": {
|
||||
"cell_metadata_filter": "-all",
|
||||
"main_language": "python",
|
||||
"notebook_metadata_filter": "-all"
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
"formats": "ipynb,Rmd",
|
||||
"main_language": "python"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
@@ -1306,7 +1296,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.3"
|
||||
"version": "3.11.11"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Linear Models and Regularization Methods
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch06-varselect-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Non-Linear Modeling
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch07-nonlin-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Tree-Based Methods
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch08-baggboost-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Support Vector Machines
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch09-svm-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Deep Learning
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch10-deeplearning-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Survival Analysis
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch11-surv-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Unsupervised Learning
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch12-unsup-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,16 @@
|
||||
---
|
||||
jupyter:
|
||||
jupytext:
|
||||
cell_metadata_filter: -all
|
||||
formats: ipynb,Rmd
|
||||
main_language: python
|
||||
text_representation:
|
||||
extension: .Rmd
|
||||
format_name: rmarkdown
|
||||
format_version: '1.2'
|
||||
jupytext_version: 1.16.7
|
||||
---
|
||||
|
||||
# Multiple Testing
|
||||
|
||||
<a target="_blank" href="https://colab.research.google.com/github/intro-stat-learning/ISLP_labs/blob/v2.2/Ch13-multiple-lab.ipynb">
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user