Data Science, Machine Learning, Regression, Evaluation Metric, Linear Regression.
values y_true = np.array([5, 2, 7, 3, 9]) y_pred = np.array([4.2, 2.2, 6.4, 3.9, 10.5]) # Computing the RMSE score rmse = mean_squared_error(y_true, y_pred, squared = False) # Squared = False, returns the RMSE # Printing results print(f'Root Mean Squared Error = {rmse}') Root Mean Squared Error =