
Answer-first summary for fast verification
Answer: Create and register an Environment that includes the required packages. Use this Environment for all experiment runs.
Option C is the correct answer because creating and registering a reusable Environment with the required packages (including scipy and other non-default packages) ensures consistent dependencies across both local and remote compute targets with minimal administrative overhead. Once registered, this environment can be referenced in all experiment runs without recreating it each time, aligning with the 'least administrative effort' requirement. Option A (no environment) would fail due to missing packages. Option B (VM compute target) is unnecessary and adds management overhead since the experiment runs on existing local and remote compute. Option D (config.yaml in experiment folder) requires recreating the environment for each run, increasing administrative effort. Option E (Estimator with default packages) would fail as the required packages are not in the default environment.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You need to execute a script as an experiment using a Script Run Configuration. The script requires modules from the scipy library and other Python packages not found in a default conda environment. You intend to run the experiment on your local workstation for small datasets and scale it to more powerful remote compute clusters for larger datasets.
What should you do to guarantee the experiment runs successfully on both local and remote compute with minimal administrative effort?
A
Do not specify an environment in the run configuration for the experiment. Run the experiment by using the default environment.
B
Create a virtual machine (VM) with the required Python configuration and attach the VM as a compute target. Use this compute target for all experiment runs.
C
Create and register an Environment that includes the required packages. Use this Environment for all experiment runs.
D
Create a config.yaml file defining the conda packages that are required and save the file in the experiment folder.
E
Always run the experiment with an Estimator by using the default packages.
No comments yet.