
Ultimate access to all questions.
A data scientist has developed a linear regression model using log(price) as the target variable. After making predictions, both the predicted and actual values are stored in a Spark DataFrame named preds_df. The data scientist evaluates the model using the following code: regression_evaluator.setMetricName("rmse").evaluate(preds_df). What modification is necessary to the RMSE evaluation approach to ensure it's comparable with the original price scale? Choose the single best answer._
A
Calculate the MSE of the log-transformed predictions to obtain the RMSE.
B
Apply the logarithm to the predictions prior to calculating the RMSE.
C
Apply the exponentiation function to the predictions before calculating the RMSE.
D
Take the exponent of the computed RMSE value.
E
Compute the logarithm of the derived RMSE value.