Google Cloud Professional Machine Learning Engineer — Question 91

You have recently created a proof-of-concept (POC) deep learning model. You are satisfied with the overall architecture, but you need to determine the value for a couple of hyperparameters. You want to perform hyperparameter tuning on Vertex AI to determine both the appropriate embedding dimension for a categorical feature used by your model and the optimal learning rate. You configure the following settings:
• For the embedding dimension, you set the type to INTEGER with a minValue of 16 and maxValue of 64.
• For the learning rate, you set the type to DOUBLE with a minValue of 10e-05 and maxValue of 10e-02.

You are using the default Bayesian optimization tuning algorithm, and you want to maximize model accuracy. Training time is not a concern. How should you set the hyperparameter scaling for each hyperparameter and the maxParallelTrials?

Answer options

Correct answer: B

Explanation

The correct choice is B because using UNIT_LINEAR_SCALE for the embedding dimension allows for a straightforward exploration of integer values, while UNIT_LOG_SCALE for the learning rate helps to effectively search a wide range of values in a logarithmic manner. A small number of parallel trials is preferable here to ensure that each trial can explore the hyperparameter space thoroughly, maximizing model accuracy.