1. Learn
  2. /
  3. Courses
  4. /
  5. Machine Learning with Tree-Based Models in Python

Connected

Exercise

Evaluate the GB regressor

Now that the test set predictions are available, you can use them to evaluate the test set Root Mean Squared Error (RMSE) of gb.

y_test and predictions y_pred are available in your workspace.

Instructions

100 XP
  • Import mean_squared_error from sklearn.metrics as MSE.

  • Compute the test set MSE and assign it to mse_test.

  • Compute the test set RMSE and assign it to rmse_test.