pairing notebooks
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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 2
|
# Chapter 2
|
||||||
|
|
||||||
@@ -65,7 +78,7 @@ print('fit a model with', 11, 'variables')
|
|||||||
The following command will provide information about the `print()` function.
|
The following command will provide information about the `print()` function.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
print?
|
# print?
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -215,7 +228,7 @@ documentation associated with the function `fun`, if it exists.
|
|||||||
We can try this for `np.array()`.
|
We can try this for `np.array()`.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
np.array?
|
# np.array?
|
||||||
|
|
||||||
```
|
```
|
||||||
This documentation indicates that we could create a floating point array by passing a `dtype` argument into `np.array()`.
|
This documentation indicates that we could create a floating point array by passing a `dtype` argument into `np.array()`.
|
||||||
|
|||||||
@@ -8278,8 +8278,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 3
|
# Chapter 3
|
||||||
|
|
||||||
|
|||||||
@@ -2967,8 +2967,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 4
|
# Chapter 4
|
||||||
|
|
||||||
|
|||||||
@@ -5031,8 +5031,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 5
|
# Chapter 5
|
||||||
|
|
||||||
|
|||||||
@@ -1279,8 +1279,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 6
|
# Chapter 6
|
||||||
|
|
||||||
@@ -32,7 +45,7 @@ from ISLP.models import \
|
|||||||
(Stepwise,
|
(Stepwise,
|
||||||
sklearn_selected,
|
sklearn_selected,
|
||||||
sklearn_selection_path)
|
sklearn_selection_path)
|
||||||
!pip install l0bnb
|
# !pip install l0bnb
|
||||||
from l0bnb import fit_path
|
from l0bnb import fit_path
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -9815,8 +9815,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 7
|
# Chapter 7
|
||||||
|
|
||||||
|
|||||||
@@ -3222,8 +3222,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 8
|
# Chapter 8
|
||||||
|
|
||||||
|
|||||||
@@ -1759,8 +1759,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 9
|
# Chapter 9
|
||||||
|
|
||||||
|
|||||||
@@ -1900,8 +1900,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 11
|
# Chapter 11
|
||||||
|
|
||||||
|
|||||||
@@ -2703,8 +2703,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 12
|
# Chapter 12
|
||||||
|
|
||||||
@@ -207,7 +220,7 @@ We can plot the PVE explained by each component, as well as the cumulative PVE.
|
|||||||
plot the proportion of variance explained.
|
plot the proportion of variance explained.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
%%capture
|
# %%capture
|
||||||
fig, axes = plt.subplots(1, 2, figsize=(15, 6))
|
fig, axes = plt.subplots(1, 2, figsize=(15, 6))
|
||||||
ticks = np.arange(pcaUS.n_components_)+1
|
ticks = np.arange(pcaUS.n_components_)+1
|
||||||
ax = axes[0]
|
ax = axes[0]
|
||||||
|
|||||||
@@ -3392,8 +3392,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
@@ -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.14.7
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
# Chapter 13
|
# Chapter 13
|
||||||
|
|
||||||
|
|||||||
@@ -1578,8 +1578,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"jupytext": {
|
"jupytext": {
|
||||||
"cell_metadata_filter": "-all",
|
"cell_metadata_filter": "-all",
|
||||||
"main_language": "python",
|
"formats": "ipynb,Rmd",
|
||||||
"notebook_metadata_filter": "-all"
|
"main_language": "python"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
|
|||||||
Reference in New Issue
Block a user