Hi You should update sklearn.cross_validation by from sklearn.model_selection in 05.02-Introducing-Scikit-Learn notebook Best regards,
Activity
darienjournye26 commentedon Sep 12, 2026
I can open a PR to swap
sklearn.cross_validationforsklearn.model_selectionin `jasminritik26 commentedon Oct 12, 2026
cross_val_score` imports in cells 24 and 31 as well, since both were moved
jakevdp commentedon Oct 12, 2026
It's been updated – see https://github.com/jakevdp/PythonDataScienceHandbook/blob/master/notebooks/05.02-Introducing-Scikit-Learn.ipynb