DP-100 Exam Question 16

You manage an Azure Machine Learning workspace named workspace1 by using the Python SDK v2.
The default datastore of workspace1 contains a folder named sample_data. The folder structure contains the following content:

You write Python SDK v2 code to materialize the data from the files in the sample.data folder into a Pandas data frame. You need to complete the Python SDK v2 code to use the MLTaWe folder as the materialization blueprint. How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

DP-100 Exam Question 17

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 18

    You manage an Azure Machine Learning workspace. You submit a training job with the Azure Machine Learning Python SDK v2. You must use MLflow to log metrics, model parameters, and model artifacts automatically when training a model.
    You start by writing the following code segment:

    For each of the following statements, select Yes If the statement is true. Otherwise, select No.

    DP-100 Exam Question 19

    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:
    for label_val in label_vals:
    run.log('Label Values', label_val)
    Does the solution meet the goal?
  • DP-100 Exam Question 20

    You have an Azure Machine Learning workspace. You plan to tune model hyperparameters by using a sweep job.
    You need to find a sampling method that supports early termination of low-performance jobs and continuous hyperpara meters.
    Solution: Use the Bayesian sampling method over the hyperparameter space.
    Does the solution meet the goal?