pirple / Data-Mining-With-Python

43 stars 127 forks source link

Classification and Regression - Part A: cross_validation deprecated #3

Open enzedonline opened 2 years ago

enzedonline commented 2 years ago

The following will fail as the cross_validation module was deprecated some years ago (how old are these lectures?!)

from sklearn.cross_validation import train_test_split

Replace with:

from sklearn.model_selection import train_test_split