Question 96

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?
  • Question 97

    You plan to create a speech recognition deep learning model.
    The model must support the latest version of Python.
    You need to recommend a deep learning framework for speech recognition to include in the Data Science Virtual Machine (DSVM).
    What should you recommend?
  • Question 98

    You use the Azure Machine Learning SDK to run a training experiment that trains a classification model and calculates its accuracy metric.
    The model will be retrained each month as new data is available.
    You must register the model for use in a batch inference pipeline.
    You need to register the model and ensure that the models created by subsequent retraining experiments are registered only if their accuracy is higher than the currently registered model.
    What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
    NOTE: Each correct selection is worth one point.
  • Question 99

    You are creating a classification model for a banking company to identify possible instances of credit card fraud. You plan to create the model in Azure Machine Learning by using automated machine learning.
    The training dataset that you are using is highly unbalanced.
    You need to evaluate the classification model.
    Which primary metric should you use?
  • Question 100

    A biomedical research company plans to enroll people in an experimental medical treatment trial.
    You create and train a binary classification model to support selection and admission of patients to the trial. The model includes the following features: Age, Gender, and Ethnicity.
    The model returns different performance metrics for people from different ethnic groups.
    You need to use Fairlearn to mitigate and minimize disparities for each category in the Ethnicity feature.
    Which technique and constraint should you use? To answer, select the appropriate options in the answer area.
    NOTE: Each correct selection is worth one point.