
Answer-first summary for fast verification
Answer: run.download_files(output_directory='./runfiles'), run.get_all_logs(destination='./runlogs')
The question requires downloading log files to a local folder. Option D (run.download_files(output_directory='./runfiles')) downloads all files generated during the run, including log files, to the specified directory. Option E (run.get_all_logs(destination='./runlogs')) specifically downloads all log files to the specified directory. Both methods achieve the goal of downloading log files locally. Option A (run.get_details()) returns run metadata but does not download files. Option B (run.get_file_names()) lists file names without downloading. Option C (run.get_metrics()) retrieves metrics data, not log files. The community discussion strongly supports D and E, with 100% consensus and upvoted explanations confirming these are the correct methods for downloading log files.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You run a script as an experiment in Azure Machine Learning and have a Run object named run that references the experiment run. You need to download the log files generated during the run to a local folder for review.
Which two code segments achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Option 1:
run.download_files(prefix='outputs', output_directory='./downloads')
run.download_files(prefix='outputs', output_directory='./downloads')
Option 2:
run.get_all_logs(destination='./logs')
run.get_all_logs(destination='./logs')
A
run.get_details()
B
run.get_file_names()
C
run.get_metrics()
D
run.download_files(output_directory='./runfiles')
E
run.get_all_logs(destination='./runlogs')
No comments yet.