exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 83 discussion

Actual exam question from Microsoft's DP-100
Question #: 83
Topic #: 2
[All DP-100 Questions]

You use the Azure Machine Learning SDK for Python v1 and notebooks to train a model. You create a compute target, an environment, and a training script by using Python code.

You need to prepare information to submit a training run.

Which class should you use?

  • A. ScriptRun
  • B. ScriptRunConfig
  • C. RunConfiguration
  • D. Run
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
evangelist
6 months, 2 weeks ago
Selected Answer: B
# Define the script run configuration src = ScriptRunConfig(source_directory='.', script='train.py', compute_target=compute_target, environment=env)
upvoted 1 times
...
PI_Team
1 year, 4 months ago
Selected Answer: B
from azureml.core import ScriptRunConfig # Create a ScriptRunConfig object run_config = ScriptRunConfig( name="my-training-run", script="train.py", compute_target="my-compute-target", environment="my-environment", ) # Submit the run run = run_config.submit() # Wait for the run to complete run.wait_for_completion()
upvoted 2 times
...
krishna1818
1 year, 6 months ago
ScriptRunConfig()
upvoted 1 times
...
Dp_100_11
1 year, 6 months ago
The correct class to use for preparing information to submit a training run in the given scenario is B. ScriptRunConfig. from azureml.core import ScriptRunConfig, Environment, Workspace # Create a ScriptRunConfig script_run_config = ScriptRunConfig(source_directory='path/to/scripts', script='train.py', compute_target='my_compute_target', environment='my_environment') # Submit the training run run = Experiment(workspace=Workspace.get('my_workspace'), name='my_experiment').submit(script_run_config)
upvoted 2 times
...
ajay0011
1 year, 8 months ago
Selected Answer: B
To submit a training run in Azure Machine Learning using Python code, you should create a ScriptRunConfig object. This class defines the configuration information needed for running a training script on a compute target. The ScriptRunConfig class allows you to specify the compute target, the environment, the training script, and any script arguments or data references needed by the script.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...