DP-100 Exam Question 86

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:

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_list('Label Values', label_vals)
Does the solution meet the goal?
  • DP-100 Exam Question 87

    You have the following code. The code prepares an experiment to run a script:

    The experiment must be run on local computer using the default environment.
    You need to add code to start the experiment and run the script.
    Which code segment should you use?
  • DP-100 Exam Question 88

    You plan to implement a two-step pipeline by using the Azure Machine Learning SDK for Python.
    The pipeline will pass temporary data from the first step to the second step.
    You need to identify the class and the corresponding method that should be used in the second step to access temporary data generated by the first step in the pipeline.
    Which class and method should you identify? To answer, select the appropriate options in the answer area.
    NOTE: Each correct selection is worth one point

    DP-100 Exam Question 89

    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 create an Azure Machine Learning service datastore in a workspace. The datastore contains the following files:
    * /data/2018/Q1 .csv
    * /data/2018/Q2.csv
    * /data/2018/Q3.csv
    * /data/2018/Q4.csv
    * /data/2019/Q1.csv
    All files store data in the following format:
    id,M,f2,l
    1,1,2,0
    2,1,1,1
    32,10
    You run the following code:

    You need to create a dataset named training_data and load the data from all files into a single data frame by using the following code:

    Solution: Run the following code:

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

    You are a data scientist creating a linear regression model.
    You need to determine how closely the data fits the regression line.
    Which metric should you review?