nerdexam
Microsoft

DP-100 · Question #159

You create a multi-class image classification deep learning model that uses a set of labeled images. You create a script file named train.py that uses the PyTorch 1.3 framework to train the model. You

The correct answer is B. PyTorch. The PyTorch-specific estimator should be used because Azure ML provides curated, framework-specific estimators (PyTorch, TensorFlow, SKLearn) that come with pre-built Docker images containing the named framework pre-installed. Using the PyTorch estimator automatically provisions

Train and deploy models

Question

You create a multi-class image classification deep learning model that uses a set of labeled images. You create a script file named train.py that uses the PyTorch 1.3 framework to train the model. You must run the script by using an estimator. The code must not require any additional Python libraries to be installed in the environment for the estimator. The time required for model training must be minimized. You need to define the estimator that will be used to run the script. Which estimator type should you use?

Options

  • ATensorFlow
  • BPyTorch
  • CSKLearn
  • DEstimator

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    89% (33)
  • C
    3% (1)
  • D
    5% (2)

Explanation

The PyTorch-specific estimator should be used because Azure ML provides curated, framework-specific estimators (PyTorch, TensorFlow, SKLearn) that come with pre-built Docker images containing the named framework pre-installed. Using the PyTorch estimator automatically provisions an environment with PyTorch 1.3 already available - no additional library installation is required. This also minimizes training time because the environment setup is faster with a pre-built image versus a generic Estimator that would need to install PyTorch from scratch. Option A (TensorFlow) installs the wrong framework. Option C (SKLearn) is for scikit-learn models. Option D (generic Estimator) can run any script but requires manually specifying all conda or pip dependencies, including PyTorch itself, which violates the 'no additional libraries' requirement.

Topics

#Azure Machine Learning#PyTorch#Estimators#Model Training

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice