If you are dealing with slightly older code, you may encounter this error. The fix is simple: from sklearn.model_selection import cross_val_score
If you do not want the FutureWarning errors:
import warnings
warnings.filterwarnings("ignore", category=FutureWarning)
#sklearn #cross_validation #python