QuestionQ86

VerifiedDatabricks Machine Learning

A data scientist is building a predictive customer-churn model with a Random Forest algorithm from the scikit-learn library. They are tuning the algorithm’s hyperparameters with Hyperopt on a Databricks cluster. However, optimization is slow because it runs on the cluster’s driver node. They tried Optuna, a recommended alternative, but experienced the same problem. They want to distribute Hyperopt or Optuna trials across multiple machines in the Databricks cluster.

What action will accomplish this?

Explanation

For single-machine models such as scikit-learn Random Forest, Hyperopt SparkTrials distributes independent trials to Spark worker machines. Optuna can parallelize trials through Joblib, and the Joblib Apache Spark Backend sends that parallel work to a Spark cluster. MLflow provides experiment tracking rather than automatic trial distribution.

Learn more

Community Discussion

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