Databricks Certified Machine Learning Associate Exam Databricks-Machine-Learning-Associate Question # 11 Topic 2 Discussion

Databricks Certified Machine Learning Associate Exam Databricks-Machine-Learning-Associate Question # 11 Topic 2 Discussion

Databricks-Machine-Learning-Associate Exam Topic 2 Question 11 Discussion:
Question #: 11
Topic #: 2

A data scientist wants to efficiently tune the hyperparameters of a scikit-learn model. They elect to use the Hyperopt library'sfminoperation to facilitate this process. Unfortunately, the final model is not very accurate. The data scientist suspects that there is an issue with theobjective_functionbeing passed as an argument tofmin.

They use the following code block to create theobjective_function:

Databricks-Machine-Learning-Associate Question 11

Which of the following changes does the data scientist need to make to theirobjective_functionin order to produce a more accurate model?


A.

Add test set validation process


B.

Add a random_state argument to the RandomForestRegressor operation


C.

Remove the mean operation that is wrapping the cross_val_score operation


D.

Replace the r2 return value with -r2


E.

Replace the fmin operation with the fmax operation


Get Premium Databricks-Machine-Learning-Associate Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.