-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Python-Machine-Learning-By-Example-Third-Edition/chapter2/movie_recommendation.py
Line 146 in 7bdc45d
| k_fold = StratifiedKFold(n_splits=k, random_state=42) |
Setting a random_state on StratifiedKFold will cause the following error:
ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True.
I had to remove the parameter to get the code to work.
Metadata
Metadata
Assignees
Labels
No labels