nerdexam
Microsoft

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…

Explore data and run experiments

Question

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 and run the script. Which code segment should you use?

Exhibit

DP-100 question #242 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)
  • A
    18% (7)
  • C
    10% (4)
  • D
    73% (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

#Azure ML SDK#Experiments#ScriptRunConfig#Submitting Runs

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice