Exit DATABRICKS-MACHINE-LEARNING-ASSOCIATE Databricks Certified Machine Learning Associate
Question 2 of 5
0% complete
Q2 Single choice

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:

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