DP-100 Exam Question 116

You are preparing to build a deep learning convolutional neural network model for image classification. You create a script to train the model using CUDA devices.
You must submit an experiment that runs this script in the Azure Machine Learning workspace.
The following compute resources are available:
a Microsoft Surface device on which Microsoft Office has been installed. Corporate IT policies prevent the installation of additional software a Compute Instance named in the workspace with 2 CPUs and 8 GB of memory an Azure Machine Learning compute target named with eight CPU-based nodes an Azure Machine Learning compute target named with four CPU and GPU-based nodes You need to specify the compute resources to be used for running the code to submit the experiment, and for running the script in order to minimize model training time.
Which resources should the data scientist use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

DP-100 Exam Question 117

You use the following Python code in a notebook to deploy a model as a web service:

The deployment fails.
You need to use the Python SDK in the notebook to determine the events that occurred during service deployment an initialization.
Which code segment should you use?
  • DP-100 Exam Question 118

    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 train a classification model by using a logistic regression algorithm.
    You must be able to explain the model's predictions by calculating the importance of each feature, both as an overall global relative importance value and as a measure of local importance for a specific set of predictions.
    You need to create an explainer that you can use to retrieve the required global and local feature importance values.
    Solution: Create a PFIExplainer.
    Does the solution meet the goal?
  • DP-100 Exam Question 119

    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 plan to use a Python script to run an Azure Machine Learning experiment. The script creates a reference to the experiment run context, loads data from a file, identifies the set of unique values for the label column, and completes the experiment run:
    from azureml.core import Run
    import pandas as pd
    run = Run.get_context()
    data = pd.read_csv('data.csv')
    label_vals = data['label'].unique()
    # Add code to record metrics here
    run.complete()
    The experiment must record the unique labels in the data as metrics for the run that can be reviewed later.
    You must add code to the script to record the unique label values as run metrics at the point indicated by the comment.
    Solution: Replace the comment with the following code:
    run.log_table('Label Values', label_vals)
    Does the solution meet the goal?
  • DP-100 Exam Question 120

    You are building a recurrent neural network to perform a binary classification. You review the training loss, validation loss, training accuracy, and validation accuracy for each training epoch.
    You need to analyze model performance.
    Which observation indicates that the classification model is over fitted?