Fixed: "TypeError: got an unexpected keyword argument 'squared'" in scikit-learn mean_squared_error
· 5 min read
mean_squared_error(y_true, y_pred, squared=False) is how many tutorials calculate RMSE. In scikit-learn 1.9.1 it fails with TypeError: got an unexpected keyword argument 'squared': the argument was deprecated in scikit-learn 1.4 and has since been removed. root_mean_squared_error() does the same calculation.
