Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Machine-Learning-Associate Topic 2 Question 19 Discussion

Actual exam question for Databricks's Databricks-Machine-Learning-Associate exam
Question #: 19
Topic #: 2
[All Databricks-Machine-Learning-Associate Questions]

A data scientist wants to tune a set of hyperparameters for a machine learning model. They have wrapped a Spark ML model in the objective function objective_function and they have defined the search space search_space.

As a result, they have the following code block:

Which of the following changes do they need to make to the above code block in order to accomplish the task?

Show Suggested Answer Hide Answer
Suggested Answer: C

To find the run_id of the run with the best root-mean-square error (RMSE) in an MLflow experiment, the correct line of code to use is:

mlflow.search_runs( experiment_id, order_by=['metrics.rmse'] )['run_id'][0]

This line of code searches the runs in the specified experiment, orders them by the RMSE metric in ascending order (the lower the RMSE, the better), and retrieves the run_id of the best-performing run. Option C correctly represents this logic.

Reference

MLflow documentation on tracking experiments: https://www.mlflow.org/docs/latest/python_api/mlflow.html#mlflow.search_runs


Contribute your Thoughts:

Lauran
10 days ago
The correct answer is A) Change SparkTrials() to Trials(). The question specifies that the data scientist is using a Spark ML model, so they need to use the SparkTrials() function instead of the regular Trials() function.
upvoted 0 times
...
Jesusita
16 days ago
Hmm, I see your point. Let's discuss it further.
upvoted 0 times
...
Janella
21 days ago
I disagree, I believe the answer is D) Remove the trials=trials argument
upvoted 0 times
...
Jesusita
24 days ago
I think the answer is A) Change SparkTrials() to Trials()
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77