nerdexam
Microsoft

DP-100 · Question #240

You create a Python script that runs a training experiment in Azure Machine Learning. The script uses the Azure Machine Learning SDK for Python. You must add a statement that retrieves the names of…

The correct answer is A. Run. The Run class represents a single experiment execution and exposes methods to inspect its outputs. Specifically, run.get_file_names() returns a list of all file names (logs and artifacts) stored in the run's output directory, and run.get_metrics() retrieves logged metrics…

Explore data and run experiments

Question

You create a Python script that runs a training experiment in Azure Machine Learning. The script uses the Azure Machine Learning SDK for Python. You must add a statement that retrieves the names of the logs and outputs generated by the script. You need to reference a Python class object from the SDK for the statement. Which class object should you use?

Options

  • ARun
  • BScriptRunConfig
  • DExperiment

How the community answered

(27 responses)
  • A
    89% (24)
  • B
    4% (1)
  • D
    7% (2)

Explanation

The Run class represents a single experiment execution and exposes methods to inspect its outputs. Specifically, run.get_file_names() returns a list of all file names (logs and artifacts) stored in the run's output directory, and run.get_metrics() retrieves logged metrics. ScriptRunConfig defines how a script should be executed (compute target, environment, script arguments) but does not provide access to run outputs. Experiment is a container that groups related runs together but does not expose individual run-level output details.

Topics

#Azure ML SDK#Experiment tracking#Run object#Logs and outputs

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice