nerdexam
Microsoft

DP-100 · Question #432

You create an Azure Machine learning workspace. You must use the Azure Machine Learning Python SDK v2 to define the search space for discrete hyperparameters. The hyperparameters must consist of a…

The correct answer is A. Choice. To define the search space for discrete hyperparameters using the Azure Machine Learning Python SDK v2, you should import the Choice class from the azure.ai.ml.sweep package. The Choice class allows you to specify a list of predetermined, comma-separated values for a discrete…

Explore data, and run experiments

Question

You create an Azure Machine learning workspace. You must use the Azure Machine Learning Python SDK v2 to define the search space for discrete hyperparameters. The hyperparameters must consist of a list of predetermined, comma- separated integer values. You need to import the class from the azure.ai.ml.sweep package used to create the list of values. Which class should you import?

Options

  • AChoice
  • BRandint
  • CUniform
  • DNormal

How the community answered

(33 responses)
  • A
    94% (31)
  • B
    3% (1)
  • C
    3% (1)

Explanation

To define the search space for discrete hyperparameters using the Azure Machine Learning Python SDK v2, you should import the Choice class from the azure.ai.ml.sweep package. The Choice class allows you to specify a list of predetermined, comma-separated values for a discrete https://learn.microsoft.com/en-us/azure/machine-learning/how-to-tune- hyperparameters?view=azureml-api-2

Topics

#Azure ML SDK v2#Hyperparameter Tuning#Sweep Job#Discrete Search Space

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice