nerdexam
Microsoft

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…

Explore data and run experiments

Question

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 must specify an appropriate mode for the dataset argument. Which two modes can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • Ato_pandas_dataframe()
  • Bas_download()
  • Cas_upload()
  • Das_mount()

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    83% (20)
  • C
    4% (1)
  • D
    4% (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

#Azure ML Experiments#Dataset Modes#Data Ingress#FileDataset

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice