QuestionQ67

VerifiedModel Development

A data scientist is using the following code block to tune the hyperparameters of a machine-learning model:

Question Image

Which change can be made to the preceding code block to improve the likelihood of a more accurate model?

Explanation

max_evals is the number of hyperparameter settings that Hyperopt tests. Raising it from 4 to 100 evaluates substantially more candidate models, giving the TPE optimizer more opportunities and feedback to identify settings with lower objective loss. fmin and tpe.suggest are the appropriate minimization and adaptive-search components for this pattern.

Learn more

Community Discussion

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