You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-set-up-training-targets.md
+40-11Lines changed: 40 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.reviewer: sgilley
9
9
ms.service: machine-learning
10
10
ms.subservice: core
11
11
ms.topic: conceptual
12
-
ms.date: 01/16/2020
12
+
ms.date: 03/13/2020
13
13
ms.custom: seodec18
14
14
---
15
15
# Set up and use compute targets for model training
@@ -20,7 +20,7 @@ With Azure Machine Learning, you can train your model on a variety of resources
20
20
You can create and manage a compute target using the Azure Machine Learning SDK, Azure Machine Learning studio, Azure CLI or Azure Machine Learning VS Code extension. If you have compute targets that were created through another service (for example, an HDInsight cluster), you can use them by attaching them to your Azure Machine Learning workspace.
21
21
22
22
In this article, you learn how to use various compute targets for model training. The steps for all compute targets follow the same workflow:
23
-
1.__Create__ a compute target if you don’t already have one.
23
+
1.__Create__ a compute target if you don't already have one.
24
24
2.__Attach__ the compute target to your workspace.
25
25
3.__Configure__ the compute target so that it contains the Python environment and package dependencies needed by your script.
26
26
@@ -83,7 +83,7 @@ Use the sections below to configure these compute targets:
Now that you’ve attached the compute and configured your run, the next step is to [submit the training run](#submit).
133
+
Now that you've attached the compute and configured your run, the next step is to [submit the training run](#submit).
134
134
135
135
136
136
### <aid="vm"></a>Remote virtual machines
@@ -148,15 +148,30 @@ Use the Azure Data Science Virtual Machine (DSVM) as the Azure VM of choice for
148
148
149
149
1.**Attach**: To attach an existing virtual machine as a compute target, you must provide the fully qualified domain name (FQDN), user name, and password for the virtual machine. In the example, replace \<fqdn> with the public FQDN of the VM, or the public IP address. Replace \<username> and \<password> with the SSH user name and password for the VM.
150
150
151
+
> [!IMPORTANT]
152
+
> The following Azure regions do not support attaching a virtual machine using the public IP address of the VM. Instead, use the Azure Resource Manager ID of the VM with the `resource_id` parameter:
153
+
>
154
+
> * US East
155
+
> * US West 2
156
+
> * US South Central
157
+
>
158
+
> The resource ID of the VM can be constructed using the subscription ID, resource group name, and VM name using the following string format: `/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>`.
159
+
160
+
151
161
```python
152
162
from azureml.core.compute import RemoteCompute, ComputeTarget
Now that you’ve attached the compute and configured your run, the next step is to [submit the training run](#submit).
196
+
Now that you've attached the compute and configured your run, the next step is to [submit the training run](#submit).
182
197
183
198
### <aid="hdinsight"></a>Azure HDInsight
184
199
@@ -192,6 +207,15 @@ Azure HDInsight is a popular platform for big-data analytics. The platform provi
192
207
193
208
1.**Attach**: To attach an HDInsight cluster as a compute target, you must provide the hostname, user name, and password for the HDInsight cluster. The following example uses the SDK to attach a cluster to your workspace. In the example, replace \<clustername> with the name of your cluster. Replace \<username> and \<password> with the SSH user name and password for the cluster.
194
209
210
+
> [!IMPORTANT]
211
+
> The following Azure regions do not support attaching an HDInsight cluster using the public IP address of the cluster. Instead, use the Azure Resource Manager ID of the cluster with the `resource_id` parameter:
212
+
>
213
+
> * US East
214
+
> * US West 2
215
+
> * US South Central
216
+
>
217
+
> The resource ID of the cluster can be constructed using the subscription ID, resource group name, and cluster name using the following string format: `/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.HDInsight/clusters/<cluster_name>`.
218
+
195
219
```python
196
220
from azureml.core.compute import ComputeTarget, HDInsightCompute
197
221
from azureml.exceptions import ComputeTargetException
@@ -202,6 +226,11 @@ Azure HDInsight is a popular platform for big-data analytics. The platform provi
202
226
ssh_port=22,
203
227
username='<ssh-username>',
204
228
password='<ssh-pwd>')
229
+
# If you are in US East, US West 2, or US South Central, use the following instead:
0 commit comments