ImportError: No module named model_selection
https://www.py4u.net/discuss/2368159I guess you have the wrong version of scikit-learn, a similar situation was described here on GitHub.Previously (before v0.18), train_test_split was located in the cross_validation module:. from sklearn.cross_validation import train_test_split . However, now it's in the model_selection module:. from sklearn.model_selection import train_test_split . so you'll need the newest version.