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
Question
Options
- ATensorFlow
- BPyTorch
- CSKLearn
- DEstimator
How the community answered
(37 responses)- A3% (1)
- B89% (33)
- C3% (1)
- D5% (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
Community Discussion
No community discussion yet for this question.