Data Science, Machine Learning, Regression, Evaluation Metric, Linear Regression.
2, 7, 3, 9]) y_pred = np.array([4.2, 2.2, 6.4, 3.9, 10.5]) # Computing R-Squared score r2 = r2_score(y_true, y_pred) # Printing result print(f'R² score = {r2}') R² score = 0.875 Adjusted R² Similar to the R², the Adjusted R² is also an indicator of how the variance of the target variable is