Skip to content

Commit 62fe8a3

Browse files
leestottCopilot
andauthored
Update 2-Regression/3-Linear/README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1625831 commit 62fe8a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

2-Regression/3-Linear/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ To see how accurate our model is, we can predict prices on a test dataset, and t
213213
pred = lin_reg.predict(X_test)
214214

215215
rmse = np.sqrt(mean_squared_error(y_test,pred))
216-
print(f'Mean error: {rmse:3.3} ({rmse/np.mean(pred)*100:3.3}%)')
216+
print(f'RMSE: {rmse:3.3} ({rmse/np.mean(pred)*100:3.3}%)')
217217
```
218218

219219
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:

0 commit comments

Comments
 (0)