QuestionQ97
VerifiedModel DevelopmentA data scientist has created a linear regression model using Spark ML and generated predictions in a Spark DataFrame, preds_df, with the following schema:
prediction DOUBLE actual DOUBLE
Which of the following code blocks can compute the model’s root mean-squared error using the data in preds_df and assign it to the rmse variable?
Community Discussion