Machinelearningnotebooks: Document Origin of DataPath

Created on 30 Jan 2020  Â·  5Comments  Â·  Source: Azure/MachineLearningNotebooks

The DataPath object used in the example is not imported or created in this example. This documentation should show where this Object comes from.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Data4ML cxp doc-bug triaged

Most helpful comment

DataPath is not required. The following is sufficient. Will update the documentation. Sorry for the confusion.

   from azureml.core import Dataset, Datastore

   # create file dataset from files in datastore
   datastore = Datastore.get(workspace, 'workspaceblobstore')
   datastore_path = [
       (datastore, 'animals/dog/1.jpg'),
       (datastore, 'animals/dog/2.jpg'),
       (datastore, 'animals/dog/*.jpg')
   ]
   file_dataset = Dataset.File.from_files(path=datastore_path)

All 5 comments

Actually, it looks like this DataPath should just be omitted.

@MayMSFT remember when we asked for more guidance on this? Or just never mention it at all?

DataPath is not required. The following is sufficient. Will update the documentation. Sorry for the confusion.

   from azureml.core import Dataset, Datastore

   # create file dataset from files in datastore
   datastore = Datastore.get(workspace, 'workspaceblobstore')
   datastore_path = [
       (datastore, 'animals/dog/1.jpg'),
       (datastore, 'animals/dog/2.jpg'),
       (datastore, 'animals/dog/*.jpg')
   ]
   file_dataset = Dataset.File.from_files(path=datastore_path)

DataPath remove change is appearing in live docs.

Thanks so much. We will now proceed to close this issue.

Was this page helpful?
0 / 5 - 0 ratings