ageron / handson-ml

⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 instead.
Apache License 2.0
25.14k stars 12.91k forks source link

Chapter 3 Warning #618

Closed DimitrisTrakos closed 3 years ago

DimitrisTrakos commented 3 years ago

image

**skfolds = StratifiedKFold(n_splits=3, random_state=42)

It raised a warning and so to avoid it this it should be :

skfolds = StratifiedKFold(n_splits=3, random_state=42 ,shuffle=True)**

ageron commented 3 years ago

Thanks for your feedback, @DimitrisTrakos, you're right. I fixed this error last year (in commit e8ee783f), so please update this project to the latest version (run git pull). Hope this helps