QuestionQ139

VerifiedValidation Testing

A Data Scientist trained a regression model with Spark’s MLlib to predict housing prices. The model must be evaluated to establish how accurately it predicts on a testing dataset. The Data Scientist wants to use a standard regression metric for this evaluation and also minimize the required processing overhead.

Which approach meets these needs?

Explanation

Spark MLlib’s RegressionEvaluator evaluates regression output from Spark datasets and supports rmse as the root mean squared error metric. Using this built-in distributed evaluator avoids the data transfer and driver-memory overhead of converting to pandas, as well as the extra computation and serialization overhead of a custom UDF.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!