Skip to content

Commit 50cbde9

Browse files
committed
MIN Use 5 folds
Other tests in the book are 5-fold
1 parent 95d2f95 commit 50cbde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch07/usermodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def learn_for(i):
4141
y = u.data
4242
err = 0
4343
eb = 0
44-
kf = KFold(len(y), n_folds=4)
44+
kf = KFold(len(y), n_folds=5)
4545
for train, test in kf:
4646
xc, xpos = movie_norm(x[train])
4747
reg.fit(xc, y[train] - xpos)

0 commit comments

Comments
 (0)