Question 176

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 177

    An organization uses Azure Machine Learning service and wants to expand their use of machine learning.
    You have the following compute environments. The organization does not want to create another compute environment.

    You need to determine which compute environment to use for the following scenarios.
    Which compute types should you use? To answer, drag the appropriate compute environments to the correct scenarios. Each compute environment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
    NOTE: Each correct selection is worth one point.

    Question 178

    You deploy a model in Azure Container Instance.
    You must use the Azure Machine Learning SDK to call the model API.
    You need to invoke the deployed model using native SDK classes and methods.
    How should you complete the command? To answer, select the appropriate options in the answer areas.
    NOTE: Each correct selection is worth one point.

    Question 179

    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.

    Question 180

    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?