Skip to content

Commit a2c51ee

Browse files
authored
Merge pull request #95729 from MayMSFT/patch-24
Update how-to-create-register-datasets.md
2 parents b64184f + 8c4abe9 commit a2c51ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/machine-learning/service/how-to-create-register-datasets.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,9 @@ data_slice = dataset.time_recent(timedelta(weeks=1, days=1))
151151
Use the [`from_files()`](https://docs.microsoft.com/python/api/azureml-core/azureml.data.dataset_factory.filedatasetfactory?view=azure-ml-py#from-files-path--validate-true-) method on the `FileDatasetFactory` class to load files in any format and to create an unregistered FileDataset:
152152

153153
```Python
154-
# create a FileDataset from multiple paths in datastore
154+
# create a FileDataset pointing to files in 'animals' folder and its subfolders recursively
155155
datastore_paths = [
156-
(datastore, 'animals/dog/1.jpg'),
157-
(datastore, 'animals/dog/2.jpg'),
158-
(datastore, 'animals/dog/*.jpg')
156+
(datastore, 'animals')
159157
]
160158
animal_ds = Dataset.File.from_files(path=datastore_paths)
161159

0 commit comments

Comments
 (0)