Skip to content

Commit a47e3a3

Browse files
authored
Merge pull request #3816 from cdpark/refresh-ai-batch1
Feature 411216: Q&M: AI Freshness - Azure Machine Learning - batch 1
2 parents cdfe517 + 6d14154 commit a47e3a3

File tree

3 files changed

+64
-60
lines changed

3 files changed

+64
-60
lines changed
Lines changed: 64 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,79 @@
11
---
2-
title: Create a Training Job with the job creation UI
2+
title: Create a Training Job with the Job Creation UI
33
titleSuffix: Azure Machine Learning
4-
description: Learn how to submit a training job in Azure Machine Learning studio
4+
description: Learn how to submit a training job in the Azure Machine Learning studio by using the job creation UI.
55
services: machine-learning
66
ms.service: azure-machine-learning
77
ms.subservice: training
88
ms.topic: how-to
99
ms.custom: devplatv2
1010
author: ssalgadodev
1111
ms.author: ssalgado
12-
ms.date: 02/04/2024
12+
ms.date: 04/02/2025
1313
ms.reviewer: amipatel
1414
---
1515

16-
# Submit a training job in studio
16+
# Submit a training job in the Azure Machine Learning studio
1717

18-
There are many ways to create a training job with Azure Machine Learning. You can use the CLI (see [Train models (create jobs)](how-to-train-model.md)), the REST API (see [Train models with REST (preview)](how-to-train-with-rest.md)), or you can use the UI to directly create a training job. In this article, you learn how to use your own data and code to train a machine learning model with a guided experience for submitting training jobs in Azure Machine Learning studio.
18+
There are many ways to create a training job with Azure Machine Learning. You can train models by using the [Azure CLI](how-to-train-model.md), the [REST API](how-to-train-with-rest.md), or you can use the studio UI to directly create a training job.
19+
20+
In this article, you learn how to use your own data and code to train a machine learning model with a guided experience for submitting training jobs in the Azure Machine Learning studio.
1921

2022
[!INCLUDE [machine-learning-preview-generic-disclaimer](includes/machine-learning-preview-generic-disclaimer.md)]
2123

2224
## Prerequisites
2325

24-
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/machine-learning/search/) today.
26+
* An Azure subscription. If you don't have an Azure subscription, create a [free Azure account](https://azure.microsoft.com/free/machine-learning/search/) before you begin.
2527

26-
* An Azure Machine Learning workspace. See [Create workspace resources](quickstart-create-resources.md).
28+
* An Azure Machine Learning workspace. To learn how, see [Create workspace resources](quickstart-create-resources.md).
2729

28-
* Understanding of what a job is in Azure Machine Learning. See [how to train models](how-to-train-model.md).
30+
* An understanding of what a training job is in Azure Machine Learning. To learn more, see [how to train models](how-to-train-model.md).
2931

3032
## Get started
3133

32-
1. Sign in to [Azure Machine Learning studio](https://ml.azure.com).
34+
1. Sign in to the [Azure Machine Learning studio](https://ml.azure.com), then select your subscription and workspace.
35+
36+
1. Enter the job creation UI from the homepage. Select **+ New** and choose **Training job**.
3337

34-
1. Select your subscription and workspace.
38+
:::image type="content" source="media/how-to-train-with-ui/unified-job-submission-home.png" alt-text="Screenshot that shows the Azure Machine Learning studio homepage." lightbox="media/how-to-train-with-ui/unified-job-submission-home.png":::
3539

36-
37-
* You may enter the job creation UI from the homepage. Select **Create new** and select **Job**.
38-
[![Azure Machine Learning studio homepage](media/how-to-train-with-ui/unified-job-submission-home.png)](media/how-to-train-with-ui/unified-job-submission-home.png)
40+
1. Select your method of training, then choose **Start configuring job** to open the submission form.
3941

40-
In this step, you can select your method of training, complete the rest of the submission form based on your selection, and submit the training job. Below we walk through the form with the steps for running a custom script (command job).
42+
:::image type="content" source="media/how-to-train-with-ui/training-method.png" alt-text="Screenshot that shows the training method options on the Azure Machine Learning studio training form." lightbox="media/how-to-train-with-ui/training-method.png":::
4143

42-
[![Azure Machine Learning studio training form landing page for users to choose method of training.](media/how-to-train-with-ui/training-method.png)](media/how-to-train-with-ui/training-method.png)
44+
In the next section, we walk through the form with the steps for running a custom training script (command job).
4345

4446
## Configure basic settings
4547

46-
The first step is configuring basic information about your training job. You can proceed next if you're satisfied with the defaults we chose for you, or make changes to your desired preference.
48+
Configure the basic information about your training job. You can proceed to the next page if you're satisfied with the defaults we chose for you, or make changes based on your desired preference.
4749

48-
[![Azure Machine Learning studio job submission form for users to configure their basic settings.](media/how-to-train-with-ui/basic-settings.png)](media/how-to-train-with-ui/basic-settings.png)
50+
:::image type="content" source="media/how-to-train-with-ui/basic-settings.png" alt-text="Screenshot that shows the basic settings form for training jobs." lightbox="media/how-to-train-with-ui/basic-settings.png":::
4951

50-
These are the fields available:
52+
The following fields are available:
5153

5254
|Field| Description|
5355
|------| ------|
54-
|Job name| The job name field is used to uniquely identify your job. It's also used as the display name for your job.|
55-
|Experiment name| This helps organize the job in Azure Machine Learning studio. Each job's run record is organized under the corresponding experiment in the studio's "Experiment" tab. By default, Azure puts the job in the **Default** experiment.|
56+
|Job name| The job name is used to uniquely identify your job. It's also used as the display name for your job.|
57+
|Experiment name| This helps organize the job in Azure Machine Learning studio. Each job's run record is organized under the corresponding experiment in the studio's **Experiment** tab. By default, Azure puts the job in the **Default** experiment.|
5658
|Description| Add some text describing your job, if desired.|
57-
|Timeout| Specify number of hours the entire training job is allowed to run. Once this limit is reached the system cancels the job including any child jobs.|
58-
|Tags| Add tags to your job to help with organization.|
59+
|Timeout| Specify the number of hours the entire training job is allowed to run. After this limit is reached, the system cancels the job including any child jobs.|
60+
|Tags| Add tags to help organize your jobs.|
5961

60-
## Training script
62+
## Upload training script
6163

62-
Next step is to upload your source code, configure any inputs or outputs required to execute the training job, and specify the command to execute your training script.
64+
On the next page, upload your source code. Configure any inputs or outputs required to execute the training job, and specify the command to execute your training script.
6365

64-
This can be a code file or a folder from your local machine or workspace's default blob storage. Azure will show the files to be uploaded after you make the selection.
66+
You can use a code file or a folder from your local machine or workspace's default blob storage. Azure shows the files to be uploaded after you make the selection.
6567

6668
|Field| Description|
6769
|------| ------|
68-
|Code| This can be a file or a folder from your local machine or workspace's default blob storage as your training script. Studio will show the files to be uploaded after you make the selection.|
69-
|Inputs| Specify as many inputs as needed of the following types data, integer, number, boolean, string). |
70+
|Code| A file or a folder from your local machine or workspace's default blob storage as your training script. Studio shows the files to be uploaded after you make the selection.|
71+
|Inputs| Specify as many inputs as needed of the following types data: integer, number, boolean, string. |
7072
|Command| The command to execute. Command-line arguments can be explicitly written into the command or inferred from other sections, specifically **inputs** using curly braces notation, as discussed in the next section.|
7173

72-
7374
### Code
74-
The command is run from the root directory of the uploaded code folder. After you select your code file or folder, you can see the files to be uploaded. Copy the relative path to the code containing your entry point and paste it into the box labeled **Enter the command to start the job**.
75+
76+
The command is run from the root directory of the uploaded code folder. After you select your code file or folder, you can see the files to be uploaded. Copy the relative path to the code containing your entry point and paste it into the box labeled **Enter the command to start the job**.
7577

7678
If the code is in the root directory, you can directly refer to it in the command. For instance, `python main.py`.
7779

@@ -84,74 +86,76 @@ If the code isn't in the root directory, you should use the relative path. For e
8486
└── src
8587
└── main.py
8688
```
89+
8790
Here, the source code is in the `src` subdirectory. The command would be `python ./src/main.py` (plus other command-line arguments).
8891

89-
[![Image of referencing your code in the command in the training job submission form.](media/how-to-train-with-ui/training-script-code.png)](media/how-to-train-with-ui/training-script-code.png)
92+
:::image type="content" source="media/how-to-train-with-ui/training-script-code.png" alt-text="Screenshot of the files to be uploaded in the training job submission form." lightbox="media/how-to-train-with-ui/training-script-code.png":::
9093

9194
### Inputs
9295

9396
When you use an input in the command, you need to specify the input name. To indicate an input variable, use the form `${{inputs.input_name}}`. For instance, `${{inputs.wiki}}`. You can then refer to it in the command, for instance, `--data ${{inputs.wiki}}`.
9497

95-
[![Image of referencing your inputs in the command in the training job submission form.](media/how-to-train-with-ui/training-script-inputs.png)](media/how-to-train-with-ui/training-script-inputs.png)
98+
:::image type="content" source="media/how-to-train-with-ui/training-script-inputs.png" alt-text="Screenshot that shows the input variables in the training job submission form." lightbox="media/how-to-train-with-ui/training-script-inputs.png":::
9699

97100
## Select compute resources
98101

99-
Next step is to select the compute target on which you'd like your job to run. The job creation UI supports several compute types:
102+
On the next page, select the compute target on which you'd like your job to run. The job creation UI supports several compute types:
100103

101-
| Compute Type | Introduction |
102-
| --- | --- |
103-
| Compute instance | [What is an Azure Machine Learning compute instance?](concept-compute-instance.md) |
104-
| Compute cluster | [What is a compute cluster?](how-to-create-attach-compute-cluster.md#what-is-a-compute-cluster) |
105-
| Attached Compute (Kubernetes cluster) | [Configure and attach Kubernetes cluster anywhere (preview)](how-to-attach-kubernetes-anywhere.md). |
104+
| Compute type | Introduction |
105+
| --- | --- |
106+
| Compute instance | [What is an Azure Machine Learning compute instance?](concept-compute-instance.md) |
107+
| Compute cluster | [What is a compute cluster?](how-to-create-attach-compute-cluster.md#what-is-a-compute-cluster) |
108+
| Attached Kubernetes cluster | [Configure and attach Kubernetes cluster anywhere](how-to-attach-kubernetes-anywhere.md) |
109+
110+
1. Select a compute type.
106111

107-
1. Select a compute type
108112
1. Select an existing compute resource. The dropdown shows the node information and SKU type to help your choice.
109-
1. For a compute cluster or a Kubernetes cluster, you may also specify how many nodes you want for the job in **Instance count**. The default number of instances is 1.
110-
1. When you're satisfied with your choices, choose **Next**.
111-
[![Select a compute cluster dropdown selector image.](media/how-to-train-with-ui/compute.png)](media/how-to-train-with-ui/compute.png)
113+
114+
1. For a compute cluster or a Kubernetes cluster, you can also specify how many nodes you want for the job in **Instance count**. The default number of instances is *1*.
115+
116+
1. When you're satisfied with your choices, choose **Next**.
112117

113118
If you're using Azure Machine Learning for the first time, you see an empty list and a link to create a new compute. For more information on creating the various types, see:
114119

115-
| Compute Type | How to |
116-
| --- | --- |
117-
| Compute instance | [Create an Azure Machine Learning compute instance](how-to-create-compute-instance.md) |
118-
| Compute cluster | [Create an Azure Machine Learning compute cluster](how-to-create-attach-compute-cluster.md) |
119-
| Attached Kubernetes cluster | [Attach an Azure Arc-enabled Kubernetes cluster](how-to-attach-kubernetes-anywhere.md) |
120+
| Compute type | How to |
121+
| --- | --- |
122+
| Compute instance | [Create an Azure Machine Learning compute instance](how-to-create-compute-instance.md) |
123+
| Compute cluster | [Create an Azure Machine Learning compute cluster](how-to-create-attach-compute-cluster.md) |
124+
| Attached Kubernetes cluster | [Attach an Azure Arc-enabled Kubernetes cluster](how-to-attach-kubernetes-anywhere.md) |
120125

121126
## Specify the necessary environment
122127

123128
After selecting a compute target, you need to specify the runtime environment for your job. The job creation UI supports three types of environment:
124129

125130
* Curated environments
126131
* Custom environments
127-
* Container registry image
132+
* Container registry image
128133

129134
### Curated environments
130135

131-
Curated environments are Azure-defined collections of Python packages used in common ML workloads. Curated environments are available in your workspace by default. These environments are backed by cached Docker images, which reduce the job preparation overhead. The cards displayed in the "Curated environments" page show details of each environment. To learn more, see [curated environments in Azure Machine Learning](resource-curated-environments.md).
136+
Curated environments are Azure-defined collections of Python packages used in common ML workloads. Curated environments are available in your workspace by default. These environments are backed by cached Docker images, which reduce the job preparation overhead. The cards displayed in the **Curated environments** page show details of each environment. To learn more, see [Azure Machine Learning Curated Environments](resource-curated-environments.md).
132137

133-
[![Image of curated environments selector page showing various environment cards.](media/how-to-train-with-ui/curated-environments.png)](media/how-to-train-with-ui/curated-environments.png)
138+
:::image type="content" source="media/how-to-train-with-ui/curated-environments.png" alt-text="Screenshot of the curated environments selector page showing various environment cards." lightbox="media/how-to-train-with-ui/curated-environments.png":::
134139

135140
### Custom environments
136141

137-
Custom environments are environments you specified yourself. You can specify an environment or reuse an environment that you already created. To learn more, see [Manage software environments in Azure Machine Learning studio (preview)](how-to-manage-environments-in-studio.md#create-an-environment).
142+
Custom environments are environments that you specify. You can specify an environment or reuse an environment that you already created. To learn more, see [Manage software environments in Azure Machine Learning studio](how-to-manage-environments-in-studio.md).
138143

139144
### Container registry image
140145

141-
If you don't want to use the Azure Machine Learning curated environments or specify your own custom environment, you can use a docker image from a public container registry such as [Docker Hub](https://hub.docker.com/).
142-
146+
If you don't want to use the Azure Machine Learning curated environments or specify your own custom environment, you can use a docker image from a public container registry such as [Docker Hub](https://hub.docker.com).
143147

144-
## Review and Create
148+
## Review and create
145149

146-
Once you configured the job, choose **Next** to go to the **Review** page. To modify a setting, choose the pencil icon and make the change.
147-
[![Azure Machine Learning studio job submission review pane image to validate selections before submission.](media/how-to-train-with-ui/review.png)](media/how-to-train-with-ui/review.png)
150+
After you configure the job, choose **Next** to go to the **Review** page. To modify a setting, choose the pencil icon and make the change.
148151

149-
To launch the job, choose **Submit training job**. Once the job is created, Azure shows you the job details page, where you can monitor and manage your training job.
152+
:::image type="content" source="media/how-to-train-with-ui/review.png" alt-text="Screenshot that shows the review pane to validate your selections before submission." lightbox="media/how-to-train-with-ui/review.png":::
150153

151-
[!INCLUDE [Email Notification Include](includes/machine-learning-email-notifications.md)]
154+
To launch the job, choose **Submit training job**. After the job is created, Azure shows you the job details page, where you can monitor and manage your training job.
152155

153-
## Next steps
156+
[!INCLUDE [Email Notification Include](includes/machine-learning-email-notifications.md)]
154157

155-
* [Deploy and score a machine learning model by using an online endpoint](how-to-deploy-online-endpoints.md).
158+
## Related content
156159

157-
* [Train models (create jobs) with the CLI, SDK, and REST API](how-to-train-model.md)
160+
* [Deploy and score a machine learning model by using an online endpoint](how-to-deploy-online-endpoints.md)
161+
* [Train models with Azure Machine Learning CLI, SDK, and REST API](how-to-train-model.md)
18.4 KB
Loading
-87.6 KB
Loading

0 commit comments

Comments
 (0)