Skip to content

Commit 55bc25f

Browse files
committed
split ISL out of my mlsabattical repo
0 parents  commit 55bc25f

File tree

97 files changed

+217363
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+217363
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# ISL
2+
3+
[*An Introduction to Statistical Learning with applications in R*](http://www-bcf.usc.edu/~gareth/ISL/) [1] is a classic textbook written by Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani. This repository contains my solutions to the labs and exercises, I follow in Python rather than R, with heavy use of: `numpy`, `pandas`, `sklearn`, `matplotlib`, `seaborn`, `patsy` and `statsmodels`.
4+
5+
<img src='http://www-bcf.usc.edu/~gareth/ISL/Noah.jpg' width=30%, margin-left=auto, margin-right=auto, display=block>
6+
7+
## Quickstart
8+
9+
1. `git clone [email protected]:coxy1989/ISL.git`
10+
11+
2. `cd ISL`
12+
13+
3. `conda env create -f environment.yml`
14+
15+
4. `source activate isl`
16+
17+
5. `jupyter notebook`
18+
19+
### Run the notebooks
20+
21+
- [Chapter 2: Statistical Learning: Conceptual]()
22+
- [Bonus: The Curse of Dimensionality]()
23+
- [Chapter 3: Linear Regression: Conceptual]()
24+
- [Chapter 3: Linear Regression: Applied]()
25+
- [Chapter 4: Classification: Conceptual]()
26+
- [Chapter 4: Classification: Applied]()
27+
- [Chapter 4: Classification: Lab]()
28+
- [Chapter 5: Resampling Methods: Conceptual]()
29+
- [Chapter 5: Resampling Methods: Applied]()
30+
- [Chapter 5: Resampling Methods: Lab]()
31+
- [Bonus: The Mean of Correlated Quatities]()
32+
- [Chapter 6: Linear Model Selection & Regularization: Conceptual]()
33+
- [Chapter 6: Linear Model Selection & Regularization: Applied]()
34+
- [Chapter 6: Linear Model Selection & Regularization: Lab]()
35+
- [Chapter 7: Moving Beyond Linearity: Conceptual]()
36+
- [Chapter 7: Moving Beyond Linearity: Applied]()
37+
- [Chapter 7: Moving Beyond Linearity: Lab]()
38+
- [Chapter 8: Tree-Based Methods: Conceptual]()
39+
- [Chapter 8: Tree-Based Methods: Applied]()
40+
- [Chapter 8: Tree-Based Methods: Lab]()
41+
- [Chapter 9: Support Vector Machines: Conceptual]()
42+
- [Chapter 9: Support Vector Machines: Applied]()
43+
- [Chapter 9: Support Vector Machines: Lab]()
44+
- [Chapter 10: Unsupervised Learning: Conceptual]()
45+
- [Chapter 10: Unsupervised Learning: Applied]()
46+
- [Chapter 10: Unsupervised Learning: Lab]()
47+
48+
## References
49+
50+
[1] Gareth James, Daniela Witten, Trevor Hastie, Robert Tibshirani. An Introduction to Statistical Learning with Applications in R. New York Springer, 2013.
51+
52+
53+
54+
*This repository was split out from [mlsabattical]() on 09/01/2018*

chapter_10/.ipynb_checkpoints/applied-checkpoint.ipynb

+850
Large diffs are not rendered by default.

chapter_10/.ipynb_checkpoints/conceptual-checkpoint.ipynb

+480
Large diffs are not rendered by default.

chapter_10/.ipynb_checkpoints/lab-checkpoint.ipynb

+992
Large diffs are not rendered by default.

chapter_10/Ch10Ex11.csv

+1,000
Large diffs are not rendered by default.

chapter_10/applied.ipynb

+850
Large diffs are not rendered by default.

chapter_10/arrests.csv

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
"","Murder","Assault","UrbanPop","Rape"
2+
"Alabama",13.2,236,58,21.2
3+
"Alaska",10,263,48,44.5
4+
"Arizona",8.1,294,80,31
5+
"Arkansas",8.8,190,50,19.5
6+
"California",9,276,91,40.6
7+
"Colorado",7.9,204,78,38.7
8+
"Connecticut",3.3,110,77,11.1
9+
"Delaware",5.9,238,72,15.8
10+
"Florida",15.4,335,80,31.9
11+
"Georgia",17.4,211,60,25.8
12+
"Hawaii",5.3,46,83,20.2
13+
"Idaho",2.6,120,54,14.2
14+
"Illinois",10.4,249,83,24
15+
"Indiana",7.2,113,65,21
16+
"Iowa",2.2,56,57,11.3
17+
"Kansas",6,115,66,18
18+
"Kentucky",9.7,109,52,16.3
19+
"Louisiana",15.4,249,66,22.2
20+
"Maine",2.1,83,51,7.8
21+
"Maryland",11.3,300,67,27.8
22+
"Massachusetts",4.4,149,85,16.3
23+
"Michigan",12.1,255,74,35.1
24+
"Minnesota",2.7,72,66,14.9
25+
"Mississippi",16.1,259,44,17.1
26+
"Missouri",9,178,70,28.2
27+
"Montana",6,109,53,16.4
28+
"Nebraska",4.3,102,62,16.5
29+
"Nevada",12.2,252,81,46
30+
"New Hampshire",2.1,57,56,9.5
31+
"New Jersey",7.4,159,89,18.8
32+
"New Mexico",11.4,285,70,32.1
33+
"New York",11.1,254,86,26.1
34+
"North Carolina",13,337,45,16.1
35+
"North Dakota",0.8,45,44,7.3
36+
"Ohio",7.3,120,75,21.4
37+
"Oklahoma",6.6,151,68,20
38+
"Oregon",4.9,159,67,29.3
39+
"Pennsylvania",6.3,106,72,14.9
40+
"Rhode Island",3.4,174,87,8.3
41+
"South Carolina",14.4,279,48,22.5
42+
"South Dakota",3.8,86,45,12.8
43+
"Tennessee",13.2,188,59,26.9
44+
"Texas",12.7,201,80,25.5
45+
"Utah",3.2,120,80,22.9
46+
"Vermont",2.2,48,32,11.2
47+
"Virginia",8.5,156,63,20.7
48+
"Washington",4,145,73,26.2
49+
"West Virginia",5.7,81,39,9.3
50+
"Wisconsin",2.6,53,66,10.8
51+
"Wyoming",6.8,161,60,15.6

chapter_10/conceptual.ipynb

+480
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)