Skip to content

Commit 9a54bce

Browse files
committed
wrap up ch8
1 parent e250ac5 commit 9a54bce

File tree

3 files changed

+181
-34
lines changed

3 files changed

+181
-34
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ ch12/t10k-labels-idx1-ubyte.gz
1818
ch12/train-images-idx3-ubyte.gz
1919
ch12/train-labels-idx1-ubyte.gz
2020

21+
# Ch18 data files
22+
ch08/aclImdb/
23+
ch08/aclImdb_v1.tar.gz
24+
ch08/movie_data.csv
25+
26+
# Other
2127
*checkpoint
2228
*tfevents*
2329
*.data-00000-of-00001

ch08/ch08.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
"y = [np.random.randint(3) for i in range(25)]\n",
12431243
"X = (y + np.random.randn(25)).reshape(-1, 1)\n",
12441244
"\n",
1245-
"cv5_idx = list(StratifiedKFold(n_splits=5, shuffle=False, random_state=0).split(X, y))\n",
1245+
"cv5_idx = list(StratifiedKFold(n_splits=5, shuffle=False).split(X, y))\n",
12461246
" \n",
12471247
"lr = LogisticRegression(random_state=123, multi_class='ovr', solver='lbfgs')\n",
12481248
"cross_val_score(lr, X, y, cv=cv5_idx)"

0 commit comments

Comments
 (0)