Skip to content

Commit 5234996

Browse files
Merge pull request #220418 from rjaincc/rjaincc/WI-2113939-update-image-mltable-references
Updating MLTable file references from Image examples from azureml-examples
2 parents 97b3ba8 + cb6dbfd commit 5234996

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

articles/machine-learning/how-to-prepare-datasets-for-automl-images.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,18 @@ If you have your labeled training data present in a container in Azure Blob stor
165165

166166
Once you have your labeled data in JSONL format, you can use it to create `MLTable` as shown below. MLtable packages your data into a consumable object for training.
167167

168-
<!-- :::code language="yaml" source="~/azureml-examples-main/sdk/python/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/data/training-mltable-folder/MLTable"::: -->
168+
```yaml
169+
paths:
170+
- file: ./train_annotations.jsonl
171+
transformations:
172+
- read_json_lines:
173+
encoding: utf8
174+
invalid_lines: error
175+
include_path_column: false
176+
- convert_column_types:
177+
- columns: image_url
178+
column_type: stream_info
179+
```
169180
170181
You can then pass in the `MLTable` as a [data input for your AutoML training job](./how-to-auto-train-image-models.md#consume-data).
171182

articles/machine-learning/tutorial-auto-train-image-models.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,18 @@ az ml data create -f [PATH_TO_YML_FILE] --workspace-name [YOUR_AZURE_WORKSPACE]
269269

270270
Next step is to create `MLTable` from your data in jsonl format as shown below. MLtable package your data into a consumable object for training.
271271

272-
<!-- :::code language="yaml" source="~/azureml-examples-main/sdk/python/jobs/automl-standalone-jobs/automl-image-object-detection-task-fridge-items/data/training-mltable-folder/MLTable"::: -->
272+
```yaml
273+
paths:
274+
- file: ./train_annotations.jsonl
275+
transformations:
276+
- read_json_lines:
277+
encoding: utf8
278+
invalid_lines: error
279+
include_path_column: false
280+
- convert_column_types:
281+
- columns: image_url
282+
column_type: stream_info
283+
```
273284
274285
# [Azure CLI](#tab/cli)
275286
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]

0 commit comments

Comments
 (0)