QuestionQ30

VerifiedScaling and Tuning

A Data Scientist uses Spark ML to train a model that detects fraudulent transactions (1: fraudulent, 0: non-fraudulent). To maximize the model’s overall AUC (ROC) score, the Data Scientist wants to tune hyperparameters for a Random Forest classifier. Because of budget limitations, the tuning must be completed efficiently to prevent excessive compute costs.

Which approach meets these requirements?

Explanation

BinaryClassificationEvaluator is the evaluator for binary classification and uses areaUnderROC as its default metric, so it optimizes the intended ROC AUC. TrainValidationSplit selects hyperparameters from a single train/validation split, making it less computationally expensive than five-fold cross-validation. RegressionEvaluator is not appropriate for binary ROC AUC.

Learn more

Community Discussion

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