nerdexam
Microsoft

DP-100 · Question #246

You use the designer to create a training pipeline for a classification model. The pipeline uses a dataset that includes the features and labels required for model training. You create a real-time…

The correct answer is A. Add a Select Columns in Dataset module to the inference pipeline after the dataset and use it to. When Azure ML Designer auto-generates a real-time inference pipeline from a training pipeline, it uses the full training dataset schema-including the label column-as the web service input schema. To exclude the label column from what clients must submit, add a 'Select Columns…

Train and deploy models

Question

You use the designer to create a training pipeline for a classification model. The pipeline uses a dataset that includes the features and labels required for model training. You create a real-time inference pipeline from the training pipeline. You observe that the schema for the generated web service input is based on the dataset and includes the label column that the model predicts. Client applications that use the service must not be required to submit this value. You need to modify the inference pipeline to meet the requirement. What should you do?

Options

  • AAdd a Select Columns in Dataset module to the inference pipeline after the dataset and use it to
  • BDelete the dataset from the training pipeline and recreate the real-time inference pipeline.
  • CDelete the Web Service Input module from the inference pipeline.
  • DReplace the dataset in the inference pipeline with an Enter Data Manually module that includes

How the community answered

(35 responses)
  • A
    71% (25)
  • B
    6% (2)
  • C
    17% (6)
  • D
    6% (2)

Explanation

When Azure ML Designer auto-generates a real-time inference pipeline from a training pipeline, it uses the full training dataset schema-including the label column-as the web service input schema. To exclude the label column from what clients must submit, add a 'Select Columns in Dataset' module immediately after the dataset component and configure it to exclude the label column. Connect its output to the model's scoring input. This removes the label from the web service's input contract without breaking the model. Deleting the dataset or Web Service Input module would break the pipeline, and replacing the dataset with 'Enter Data Manually' is a static workaround that does not serve real client requests.

Topics

#Azure ML Designer#Real-time inference pipeline#Input schema modification#Data preprocessing

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice