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 `