Designing and Implementing a Data Science Solution on Azure — Question 48
You run a script as an experiment in Azure Machine Learning.
You have a Run object named run that references the experiment run. You must review the log files that were generated during the experiment run.
You need to download the log files to a local folder for review.
Which two code segments can you run to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer options
- 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')
Correct answer: D, E
Explanation
The correct answers are D and E because they both provide methods to download log files from the experiment run. Option D uses run.download_files to specify the output directory for the files, while option E utilizes run.get_all_logs to retrieve logs to a designated destination. The other options do not facilitate downloading log files; instead, they retrieve information or metrics about the run.