DP-100 · Question #239
You plan to run a Python script as an Azure Machine Learning experiment. The script must read files from a hierarchy of folders. The files will be passed to the script as a dataset argument. You…
The correct answer is B. as_download(). For a FileDataset containing a hierarchy of folders, both as_download() and as_mount() are valid input modes. as_download() copies all files to the compute node's local disk before the script runs, giving fast local I/O. as_mount() exposes the dataset as a virtual filesystem so…
Question
Options
- Ato_pandas_dataframe()
- Bas_download()
- Cas_upload()
- Das_mount()
How the community answered
(24 responses)- A8% (2)
- B83% (20)
- C4% (1)
- D4% (1)
Explanation
For a FileDataset containing a hierarchy of folders, both as_download() and as_mount() are valid input modes. as_download() copies all files to the compute node's local disk before the script runs, giving fast local I/O. as_mount() exposes the dataset as a virtual filesystem so files are accessed on-demand from the datastore without a full copy. Both modes preserve the folder hierarchy. to_pandas_dataframe() is only valid for TabularDatasets, not FileDatasets containing image or binary files. as_upload() is not a valid input mode-it does not make data available for reading.
Topics
Community Discussion
No community discussion yet for this question.