DP-100 · Question #242
You have the following code. The code prepares an experiment to run a script: The experiment must be run on local computer using the default environment. You need to add code to start the experiment…
The correct answer is D. run = script_experiment.submit(config=script_config). Experiment.submit(config=script_config) is the correct method to start a new run using a ScriptRunConfig object. It submits the configured script to the specified compute target and returns a Run object for monitoring. start_logging() begins an interactive, code-driven logging…
Question
Exhibit
Options
- Arun = script_experiment.start_logging()
- Cws.get_run(run_id=experiment.id)
- Drun = script_experiment.submit(config=script_config)
How the community answered
(40 responses)- A18% (7)
- C10% (4)
- D73% (29)
Explanation
Experiment.submit(config=script_config) is the correct method to start a new run using a ScriptRunConfig object. It submits the configured script to the specified compute target and returns a Run object for monitoring. start_logging() begins an interactive, code-driven logging run where you manually call run.log()-it does not execute an external script. ws.get_run(run_id=...) retrieves an already-existing run by ID; it does not create or start a new one.
Topics
Community Discussion
No community discussion yet for this question.
