Update 2-Regression/3-Linear/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
copilot/fix-zigzagged-regression-plot
Lee Stott 2 weeks ago committed by GitHub
parent 4426d9dca5
commit a06858e998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -263,8 +263,8 @@ Pipelines can be used in the same manner as the original `LinearRegression` obje
```python
pred = pipeline.predict(X_test)
mse = np.sqrt(mean_squared_error(y_test,pred))
print(f'Mean error: {mse:3.3} ({mse/np.mean(pred)*100:3.3}%)')
rmse = np.sqrt(mean_squared_error(y_test,pred))
print(f'RMSE: {rmse:3.3} ({rmse/np.mean(pred)*100:3.3}%)')
score = pipeline.score(X_train,y_train)
print('Model determination: ', score)

Loading…
Cancel
Save