Skip to content

Commit

Permalink
check ch06 on latest softw.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Dec 5, 2019
1 parent 76495d1 commit be77b92
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 266 deletions.
319 changes: 59 additions & 260 deletions ch06/ch06.ipynb

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions ch06/ch06.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@



kfold = StratifiedKFold(n_splits=10,
shuffle=True,
random_state=1).split(X_train, y_train)
kfold = StratifiedKFold(n_splits=10).split(X_train, y_train)

scores = []
for k, (train, test) in enumerate(kfold):
Expand Down Expand Up @@ -504,9 +502,7 @@
X_train2 = X_train[:, [4, 14]]


cv = list(StratifiedKFold(n_splits=3,
shuffle=True,
random_state=1).split(X_train, y_train))
cv = list(StratifiedKFold(n_splits=3).split(X_train, y_train))

fig = plt.figure(figsize=(7, 5))

Expand Down

0 comments on commit be77b92

Please sign in to comment.