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