Evaluate the SGB regressor
You have prepared the ground to determine the test set RMSE of sgbr which you shall evaluate in this exercise.
y_pred and y_test are available in your workspace.
Questo esercizio fa parte del corso
Machine Learning with Tree-Based Models in Python
Istruzioni dell'esercizio
Import
mean_squared_errorasMSEfromsklearn.metrics.Compute test set MSE and assign the result to
mse_test.Compute test set RMSE and assign the result to
rmse_test.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Import mean_squared_error as MSE
____
# Compute test set MSE
mse_test = ____
# Compute test set RMSE
rmse_test = ____
# Print rmse_test
print('Test set RMSE of sgbr: {:.3f}'.format(rmse_test))