Skip to content

Commit ce0c65b

Browse files
Merge pull request #249537 from ssalgadodev/patch-32
Freshenss update/ Acrolinx changes tutorial-auto-train-image-models.md
2 parents e6ac981 + e4e97dd commit ce0c65b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
99
author: swatig007
1010
ms.author: swatig
1111
ms.reviewer: ssalgado
12-
ms.date: 05/26/2022
12+
ms.date: 08/26/2023
1313
ms.custom: devx-track-python, automl, event-tier1-build-2022, ignite-2022, devx-track-azurecli, build-2023
1414
---
1515

@@ -25,7 +25,7 @@ This object detection model identifies whether the image contains objects, such
2525
Automated ML accepts training data and configuration settings, and automatically iterates through combinations of different feature normalization/standardization methods, models, and hyperparameter settings to arrive at the best model.
2626

2727

28-
You'll write code using the Python SDK in this tutorial and learn the following tasks:
28+
You write code using the Python SDK in this tutorial and learn the following tasks:
2929

3030
> [!div class="checklist"]
3131
> * Download and transform data
@@ -83,7 +83,7 @@ You'll write code using the Python SDK in this tutorial and learn the following
8383

8484
You first need to set up a compute target to use for your automated ML model training. Automated ML models for image tasks require GPU SKUs.
8585

86-
This tutorial uses the NCsv3-series (with V100 GPUs) as this type of compute target leverages multiple GPUs to speed up training. Additionally, you can set up multiple nodes to take advantage of parallelism when tuning hyperparameters for your model.
86+
This tutorial uses the NCsv3-series (with V100 GPUs) as this type of compute target uses multiple GPUs to speed up training. Additionally, you can set up multiple nodes to take advantage of parallelism when tuning hyperparameters for your model.
8787

8888
The following code creates a GPU compute of size `Standard_NC24s_v3` with four nodes.
8989

@@ -349,7 +349,7 @@ compute: azureml:gpu-cluster
349349
> [!IMPORTANT]
350350
> This feature is currently in public preview. This preview version is provided without a service-level agreement. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
351351

352-
In your AutoML job, you can perform an automatic hyperparameter sweep in order to find the optimal model (we call this functionality AutoMode). You only specify the number of trials; the hyperparameter search space, sampling method and early termination policy are not needed. The system will automatically determine the region of the hyperparameter space to sweep based on the number of trials. A value between 10 and 20 will likely work well on many datasets.
352+
In your AutoML job, you can perform an automatic hyperparameter sweep in order to find the optimal model (we call this functionality AutoMode). You only specify the number of trials; the hyperparameter search space, sampling method and early termination policy aren't needed. The system will automatically determine the region of the hyperparameter space to sweep based on the number of trials. A value between 10 and 20 will likely work well on many datasets.
353353

354354
# [Azure CLI](#tab/cli)
355355

@@ -396,13 +396,13 @@ When you've configured your AutoML Job to the desired settings, you can submit t
396396

397397
In your AutoML job, you can specify the model architectures by using `model_name` parameter and configure the settings to perform a hyperparameter sweep over a defined search space to find the optimal model.
398398

399-
In this example, we will train an object detection model with `yolov5` and `fasterrcnn_resnet50_fpn`, both of which are pretrained on COCO, a large-scale object detection, segmentation, and captioning dataset that contains over thousands of labeled images with over 80 label categories.
399+
In this example, we'll train an object detection model with `yolov5` and `fasterrcnn_resnet50_fpn`, both of which are pretrained on COCO, a large-scale object detection, segmentation, and captioning dataset that contains over thousands of labeled images with over 80 label categories.
400400

401401
You can perform a hyperparameter sweep over a defined search space to find the optimal model.
402402

403403
#### Job limits
404404

405-
You can control the resources spent on your AutoML Image training job by specifying the `timeout_minutes`, `max_trials` and the `max_concurrent_trials` for the job in limit settings. Please refer to [detailed description on Job Limits parameters](./how-to-auto-train-image-models.md#job-limits).
405+
You can control the resources spent on your AutoML Image training job by specifying the `timeout_minutes`, `max_trials` and the `max_concurrent_trials` for the job in limit settings. Refer to [detailed description on Job Limits parameters](./how-to-auto-train-image-models.md#job-limits).
406406
# [Azure CLI](#tab/cli)
407407

408408
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
@@ -420,11 +420,11 @@ limits:
420420

421421
---
422422

423-
The following code defines the search space in preparation for the hyperparameter sweep for each defined architecture, `yolov5` and `fasterrcnn_resnet50_fpn`. In the search space, specify the range of values for `learning_rate`, `optimizer`, `lr_scheduler`, etc., for AutoML to choose from as it attempts to generate a model with the optimal primary metric. If hyperparameter values are not specified, then default values are used for each architecture.
423+
The following code defines the search space in preparation for the hyperparameter sweep for each defined architecture, `yolov5` and `fasterrcnn_resnet50_fpn`. In the search space, specify the range of values for `learning_rate`, `optimizer`, `lr_scheduler`, etc., for AutoML to choose from as it attempts to generate a model with the optimal primary metric. If hyperparameter values aren't specified, then default values are used for each architecture.
424424

425425
For the tuning settings, use random sampling to pick samples from this parameter space by using the `random` sampling_algorithm. The job limits configured above, tells automated ML to try a total of 10 trials with these different samples, running two trials at a time on our compute target, which was set up using four nodes. The more parameters the search space has, the more trials you need to find optimal models.
426426

427-
The Bandit early termination policy is also used. This policy terminates poor performing trials; that is, those trials that are not within 20% slack of the best performing trial, which significantly saves compute resources.
427+
The Bandit early termination policy is also used. This policy terminates poor performing trials; that is, those trials that aren't within 20% slack of the best performing trial, which significantly saves compute resources.
428428

429429
# [Azure CLI](#tab/cli)
430430

@@ -585,7 +585,7 @@ auth_mode: key
585585

586586
### Create the endpoint
587587

588-
Using the `MLClient` created earlier, we'll now create the Endpoint in the workspace. This command will start the endpoint creation and return a confirmation response while the endpoint creation continues.
588+
Using the `MLClient` created earlier, we'll now create the Endpoint in the workspace. This command starts the endpoint creation and return a confirmation response while the endpoint creation continues.
589589

590590

591591
# [Azure CLI](#tab/cli)
@@ -605,7 +605,7 @@ We can also create a batch endpoint for batch inferencing on large volumes of da
605605

606606
### Configure online deployment
607607

608-
A deployment is a set of resources required for hosting the model that does the actual inferencing. We'll create a deployment for our endpoint using the `ManagedOnlineDeployment` class. You can use either GPU or CPU VM SKUs for your deployment cluster.
608+
A deployment is a set of resources required for hosting the model that does the actual inferencing. We create a deployment for our endpoint using the `ManagedOnlineDeployment` class. You can use either GPU or CPU VM SKUs for your deployment cluster.
609609

610610

611611
# [Azure CLI](#tab/cli)
@@ -641,7 +641,7 @@ readiness_probe:
641641

642642
### Create the deployment
643643

644-
Using the `MLClient` created earlier, we'll now create the deployment in the workspace. This command will start the deployment creation and return a confirmation response while the deployment creation continues.
644+
Using the `MLClient` created earlier, we'll create the deployment in the workspace. This command starts the deployment creation and return a confirmation response while the deployment creation continues.
645645

646646
# [Azure CLI](#tab/cli)
647647

@@ -658,7 +658,7 @@ az ml online-deployment create --file .\create_deployment.yml --workspace-name [
658658
---
659659

660660
### Update traffic:
661-
By default the current deployment is set to receive 0% traffic. you can set the traffic percentage current deployment should receive. Sum of traffic percentages of all the deployments with one end point should not exceed 100%.
661+
By default the current deployment is set to receive 0% traffic. you can set the traffic percentage current deployment should receive. Sum of traffic percentages of all the deployments with one end point shouldn't exceed 100%.
662662

663663
# [Azure CLI](#tab/cli)
664664

@@ -710,7 +710,7 @@ CLI example not available, please use Python SDK.
710710

711711
## Clean up resources
712712

713-
Do not complete this section if you plan on running other Azure Machine Learning tutorials.
713+
Don't complete this section if you plan on running other Azure Machine Learning tutorials.
714714

715715
If you don't plan to use the resources you created, delete them, so you don't incur any charges.
716716

@@ -742,12 +742,12 @@ In this automated machine learning tutorial, you did the following tasks:
742742
# [Azure CLI](#tab/cli)
743743
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
744744

745-
* Review detailed code examples and use cases in the [azureml-examples repository for automated machine learning samples](https://github.com/Azure/azureml-examples/tree/sdk-preview/cli/jobs/automl-standalone-jobs). Please check the folders with 'cli-automl-image-' prefix for samples specific to building computer vision models.
745+
* Review detailed code examples and use cases in the [azureml-examples repository for automated machine learning samples](https://github.com/Azure/azureml-examples/tree/sdk-preview/cli/jobs/automl-standalone-jobs). Check the folders with 'cli-automl-image-' prefix for samples specific to building computer vision models.
746746

747747
# [Python SDK](#tab/python)
748748
[!INCLUDE [sdk v2](includes/machine-learning-sdk-v2.md)]
749749

750-
* Review detailed code examples and use cases in the [GitHub notebook repository for automated machine learning samples](https://github.com/Azure/azureml-examples/tree/main/sdk/python/jobs/automl-standalone-jobs). Please check the folders with 'automl-image-' prefix for samples specific to building computer vision models.
750+
* Review detailed code examples and use cases in the [GitHub notebook repository for automated machine learning samples](https://github.com/Azure/azureml-examples/tree/main/sdk/python/jobs/automl-standalone-jobs). Check the folders with 'automl-image-' prefix for samples specific to building computer vision models.
751751

752752
---
753753

0 commit comments

Comments
 (0)