From 62fe8a3ca8c53cd4192da1b95b045a2105211d9d Mon Sep 17 00:00:00 2001 From: Lee Stott Date: Sat, 11 Apr 2026 22:40:39 +0100 Subject: [PATCH] Update 2-Regression/3-Linear/README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- 2-Regression/3-Linear/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-Regression/3-Linear/README.md b/2-Regression/3-Linear/README.md index 10fe8b670..8978b79ee 100644 --- a/2-Regression/3-Linear/README.md +++ b/2-Regression/3-Linear/README.md @@ -213,7 +213,7 @@ To see how accurate our model is, we can predict prices on a test dataset, and t pred = lin_reg.predict(X_test) rmse = np.sqrt(mean_squared_error(y_test,pred)) -print(f'Mean error: {rmse:3.3} ({rmse/np.mean(pred)*100:3.3}%)') +print(f'RMSE: {rmse:3.3} ({rmse/np.mean(pred)*100:3.3}%)') ``` Our error seems to be around 2 points, which is ~17%. Not too good. Another indicator of model quality is the **coefficient of determination**, which can be obtained like this: