Skip to content

Commit 6c399d7

Browse files
committed
acrolinx
1 parent cf5b0fb commit 6c399d7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/machine-learning/how-to-r-train-model.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ This article explains how to take the R script that you [adapted to run in produ
2424
## Prerequisites
2525

2626
- An [Azure Machine Learning workspace](quickstart-create-resources.md).
27-
- [A registered data asset](how-to-create-data-assets.md) that your training job will use.
28-
- Azure [CLI and ml extension installed](how-to-configure-cli.md). Or use a [compute instance in your workspace](quickstart-create-resources.md), which has the CLI preinstalled.
27+
- [A registered data asset](how-to-create-data-assets.md) that your training job uses.
28+
- Azure [CLI and ml extension installed](how-to-configure-cli.md). Or use a [compute instance in your workspace](quickstart-create-resources.md), which has the CLI preinstalled.
2929
- [A compute cluster](how-to-create-attach-compute-cluster.md) or [compute instance](quickstart-create-resources.md#create-a-compute-instance) to run your training job.
3030
- [An R environment](how-to-r-modify-script-for-production.md#create-an-environment) for the compute cluster to use to run the job.
3131

@@ -50,11 +50,11 @@ Create this folder structure for your project:
5050

5151
## Prepare the job YAML
5252

53-
Azure Machine Learning CLI v2 has different [different YAML schemas](reference-yaml-overview.md) for different operations. You'll use the [job YAML schema](reference-yaml-job-command.md) to submit a job. This is the **job.yml** file that is a part of this project.
53+
Azure Machine Learning CLI v2 has different [different YAML schemas](reference-yaml-overview.md) for different operations. You use the [job YAML schema](reference-yaml-job-command.md) to submit a job in the **job.yml** file that is a part of this project.
5454

55-
You'll need to gather specific pieces of information to put into the YAML:
55+
You need to gather specific pieces of information to put into the YAML:
5656

57-
- The name of the registered data asset you'll use as the data input (with version): `azureml:<REGISTERED-DATA-ASSET>:<VERSION>`
57+
- The name of the registered data asset you use as the data input (with version): `azureml:<REGISTERED-DATA-ASSET>:<VERSION>`
5858
- The name of the environment you created (with version): `azureml:<R-ENVIRONMENT-NAME>:<VERSION>`
5959
- The name of the compute cluster: `azureml:<COMPUTE-CLUSTER-NAME>`
6060

@@ -65,7 +65,7 @@ You'll need to gather specific pieces of information to put into the YAML:
6565

6666
### Sample YAML schema to submit a job
6767

68-
Edit your **job.yml** file to contain the following. Make sure to replace values shown `<IN-BRACKETS-AND-CAPS>` and remove the brackets.
68+
Edit your **job.yml** file to contain the following. Make sure to replace values shown `<IN-BRACKETS-AND-CAPS>` and remove the brackets.
6969

7070
```yml
7171
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
@@ -101,7 +101,7 @@ Find these values from [Azure Machine Learning studio](https://ml.azure.com):
101101
102102
1. Sign in and open your workspace.
103103
1. In the upper right Azure Machine Learning studio toolbar, select your workspace name.
104-
1. You can copy the values from the section that appears.
104+
1. You can copy the values from the section that appears.
105105
106106
:::image type="content" source="media/how-to-r-train-model/find-values.png" alt-text="Screenshot: Find the values to use in your CLI command." lightbox="media/how-to-r-train-model/find-values.png":::
107107
@@ -113,7 +113,7 @@ To submit the job, run the following commands in a terminal window:
113113
cd r-job-azureml
114114
```
115115

116-
1. Sign in to Azure. If you're doing this from an [Azure Machine Learning compute instance](quickstart-create-resources.md#create-a-compute-instance), use:
116+
1. Sign in to Azure. If you're doing this from an [Azure Machine Learning compute instance](quickstart-create-resources.md#create-a-compute-instance), use:
117117

118118
```azurecli
119119
az login --identity
@@ -127,13 +127,13 @@ To submit the job, run the following commands in a terminal window:
127127
az upgrade
128128
```
129129

130-
1. If you have multiple Azure subscriptions, set the active subscription to the one you're using for your workspace. (You can skip this step if you only have access to a single subscription.) Replace `<SUBSCRIPTION-NAME>` with your subscription name. Also remove the brackets `<>`.
130+
1. If you have multiple Azure subscriptions, set the active subscription to the one you're using for your workspace. (You can skip this step if you only have access to a single subscription.) Replace `<SUBSCRIPTION-NAME>` with your subscription name. Also remove the brackets `<>`.
131131

132132
```azurecli
133133
az account set --subscription "<SUBSCRIPTION-NAME>"
134134
```
135135

136-
1. Now use CLI to submit the job. If you're doing this on a compute instance in your workspace, you can use environment variables for the workspace name and resource group as show in the following code. If you aren't on a compute instance, replace these values with your workspace name and resource group.
136+
1. Now use CLI to submit the job. If you're doing this on a compute instance in your workspace, you can use environment variables for the workspace name and resource group as show in the following code. If you aren't on a compute instance, replace these values with your workspace name and resource group.
137137

138138
```azurecli
139139
az ml job create -f job.yml --workspace-name $CI_WORKSPACE --resource-group $CI_RESOURCE_GROUP
@@ -145,28 +145,28 @@ Once you've submitted the job, you can check the status and results in studio:
145145
1. Select your workspace if it isn't already loaded.
146146
1. On the left navigation, select **Jobs**.
147147
1. Select the **Experiment name** that you used to train your model.
148-
1. Select the **Display name** of the job to view details and artifacts of the job, including metrics, images, child jobs, outputs, logs, and code used in the job.
148+
1. Select the **Display name** of the job to view details and artifacts of the job, including metrics, images, child jobs, outputs, logs, and code used in the job.
149149

150150

151151
## Register model
152152

153-
Finally, once the training job is complete, register your model if you want to deploy it. Start in the studio from the page showing your job details.
153+
Finally, once the training job is complete, register your model if you want to deploy it. Start in the studio from the page showing your job details.
154154

155155
1. Once your job completes, select **Outputs + logs** to view outputs of the job.
156-
1. Open the **models** folder to verify that **crate.bin** and **MLmodel** are present. If not, check the logs to see if there was an error.
156+
1. Open the **models** folder to verify that **crate.bin** and **MLmodel** are present. If not, check the logs to see if there was an error.
157157
1. On the toolbar at the top, select **+ Register model**.
158158

159159
:::image type="content" source="media/how-to-r-train-model/register-model.png" alt-text="Screenshot shows the Job section of studio with the Outputs section open.":::
160160

161-
1. Do not use the **MLflow** model type, even though it is detected. Change **Model type** from the default **MLflow** to **Unspecified type**. Leaving it as **MLflow** will cause an error.
161+
1. Don't use the **MLflow** model type, even though it's detected. Change **Model type** from the default **MLflow** to **Unspecified type**. Leaving it as **MLflow** will cause an error.
162162
1. For **Job output**, select **models**, the folder that contains the model.
163163
1. Select **Next**.
164-
1. Supply the name you wish to use for your model. Add **Description**, **Version**, and **Tags** if you wish.
164+
1. Supply the name you wish to use for your model. Add **Description**, **Version**, and **Tags** if you wish.
165165
1. Select **Next**.
166166
1. Review the information.
167167
1. Select **Register**.
168168

169-
At the top of the page, you'll see a confirmation that the model is registered. The confirmation looks similar to this:
169+
At the top of the page, you'll see a confirmation that the model is registered. The confirmation looks similar to this:
170170

171171
:::image type="content" source="media/how-to-r-train-model/registered.png" alt-text="Screenshot shows example of successful registration.":::
172172

0 commit comments

Comments
 (0)