DP-100 Exam Question 156

You plan to use Hyperdrive to optimize the hyperparameters selected when training a model. You create the following code to define options for the hyperparameter experiment


For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

DP-100 Exam Question 157

You use Azure Machine Learning to train a machine learning model.
You use the following training script in Python to perform logging:

You must use a Python script to define a sweep job.
You need to provide the primary metric and goal you want hyperparameter tuning to optimize.
NOTE: Each correct selection is worth one point.

DP-100 Exam Question 158

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a Python script named train.py in a local folder named scripts. The script trains a regression model by using scikit-learn. The script includes code to load a training data file which is also located in the scripts folder.
You must run the script as an Azure ML experiment on a compute cluster named aml-compute.
You need to configure the run to ensure that the environment includes the required packages for model training. You have instantiated a variable named aml-compute that references the target compute cluster.
Solution: Run the following code:

Does the solution meet the goal?
  • DP-100 Exam Question 159

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You are creating a new experiment in Azure Machine Learning Studio.
    One class has a much smaller number of observations than the other classes in the training set.
    You need to select an appropriate data sampling strategy to compensate for the class imbalance.
    Solution: You use the Stratified split for the sampling mode.
    Does the solution meet the goal?
  • DP-100 Exam Question 160

    You are developing a deep learning model by using TensorFlow. You plan to run the model training workload on an Azure Machine Learning Compute Instance.
    You must use CUDA-based model training.
    You need to provision the Compute Instance.
    Which two virtual machines sizes can you use? To answer, select the appropriate virtual machine sizes in the answer area.
    NOTE: Each correct selection is worth one point.