QuestionQ109

VerifiedModel Development

A data scientist wants to tune hyperparameters for an sklearn model with the Hyperopt library. They wrote the following code:

Question Image

Which statement identifies the issue with the Hyperopt code above?

Explanation

Hyperopt minimizes the loss, so negating F1 is appropriate when maximizing F1. Trials() does not distribute objective evaluations across Spark workers; SparkTrials() is the Hyperopt trials implementation that schedules single-machine workloads such as scikit-learn model training on Spark executors.

Learn more

Community Discussion

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