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…
Question
Options
- ARun
- BScriptRunConfig
- DExperiment
How the community answered
(27 responses)- A89% (24)
- B4% (1)
- D7% (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
Community Discussion
No community discussion yet for this question.