def rmse_cv(model, X , y): rmse= np.sqrt(-cross_val_score(model, X, y, scoring="neg_mean_squared_error", cv = 5)) return(rmse) #%%