QuestionQ126
VerifiedValidation TestingA Machine Learning Engineer trained a linear regression model with SparkML to predict loan-default amounts. After producing predictions on the test dataset, the engineer wants to assess the model with multiple regression metrics at the same time. The predictions DataFrame contains the columns prediction, label, and features. The engineer must calculate both RMSE and R-squared (R2) values to provide stakeholders with comprehensive model-performance results.
Which approach accomplishes this?
Community Discussion