Skip to content

Commit fa82e00

Browse files
authored
Merge pull request #226117 from sdgilley/sdg-move-v1-files
move to v1 folder
2 parents 846857a + 68b59e9 commit fa82e00

9 files changed

+24
-20
lines changed

articles/machine-learning/.openpublishing.redirection.machine-learning.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/machine-learning/how-to-train-with-custom-image.md",
5+
"redirect_url": "/azure/machine-learning/v1/how-to-train-with-custom-image",
6+
"redirect_document_id": true
7+
},
38
{
49
"source_path_from_root": "/articles/machine-learning/how-to-monitor-tensorboard.md",
510
"redirect_url": "/azure/machine-learning/v1/how-to-monitor-tensorboard",

articles/machine-learning/concept-environments.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ If you provide your own images, you are responsible for updating them.
117117
For more information on the base images, see the following links:
118118

119119
* [Azure Machine Learning base images](https://github.com/Azure/AzureML-Containers) GitHub repository.
120-
* [Train a model using a custom image](how-to-train-with-custom-image.md).
121120
* [Deploy a TensorFlow model using a custom container](how-to-deploy-custom-container.md)
122121

123122
## Next steps

articles/machine-learning/how-to-secure-workspace-vnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ When your Azure Machine Learning workspace is configured with a private endpoint
8787
When ACR is behind a virtual network, Azure Machine Learning can’t use it to directly build Docker images. Instead, the compute cluster is used to build the images.
8888

8989
> [!IMPORTANT]
90-
> The compute cluster used to build Docker images needs to be able to access the package repositories that are used to train and deploy your models. You may need to add network security rules that allow access to public repos, [use private Python packages](how-to-use-private-python-packages.md), or use [custom Docker images](how-to-train-with-custom-image.md) that already include the packages.
90+
> The compute cluster used to build Docker images needs to be able to access the package repositories that are used to train and deploy your models. You may need to add network security rules that allow access to public repos, [use private Python packages](how-to-use-private-python-packages.md), or use [custom Docker images](v1/how-to-train-with-custom-image.md) that already include the packages.
9191
9292
> [!WARNING]
9393
> If your Azure Container Registry uses a private endpoint or service endpoint to communicate with the virtual network, you cannot use a managed identity with an Azure Machine Learning compute cluster.

articles/machine-learning/v1/how-to-migrate-from-estimators-to-scriptrunconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ myenv.environment_variables = {"MESSAGE":"Hello from Azure Machine Learning"}
7373
For information on configuring and managing Azure ML environments, see:
7474
* [How to use environments](how-to-use-environments.md)
7575
* [Curated environments](../resource-curated-environments.md)
76-
* [Train with a custom Docker image](../how-to-train-with-custom-image.md)
76+
* [Train with a custom Docker image](how-to-train-with-custom-image.md)
7777

7878
## Using data for training
7979
### Datasets

articles/machine-learning/v1/how-to-secure-workspace-vnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ When your Azure Machine Learning workspace is configured with a private endpoint
8888
When ACR is behind a virtual network, Azure Machine Learning can’t use it to directly build Docker images. Instead, the compute cluster is used to build the images.
8989

9090
> [!IMPORTANT]
91-
> The compute cluster used to build Docker images needs to be able to access the package repositories that are used to train and deploy your models. You may need to add network security rules that allow access to public repos, [use private Python packages](how-to-use-private-python-packages.md), or use [custom Docker images](../how-to-train-with-custom-image.md) that already include the packages.
91+
> The compute cluster used to build Docker images needs to be able to access the package repositories that are used to train and deploy your models. You may need to add network security rules that allow access to public repos, [use private Python packages](how-to-use-private-python-packages.md), or use [custom Docker images](how-to-train-with-custom-image.md) that already include the packages.
9292
9393
> [!WARNING]
9494
> If your Azure Container Registry uses a private endpoint or service endpoint to communicate with the virtual network, you cannot use a managed identity with an Azure Machine Learning compute cluster.

articles/machine-learning/v1/how-to-train-pytorch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pytorch_env.docker.base_image = 'mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.1
190190
```
191191

192192
> [!TIP]
193-
> Optionally, you can just capture all your dependencies directly in a custom Docker image or Dockerfile, and create your environment from that. For more information, see [Train with custom image](../how-to-train-with-custom-image.md).
193+
> Optionally, you can just capture all your dependencies directly in a custom Docker image or Dockerfile, and create your environment from that. For more information, see [Train with custom image](how-to-train-with-custom-image.md).
194194

195195
For more information on creating and using environments, see [Create and use software environments in Azure Machine Learning](how-to-use-environments.md).
196196

articles/machine-learning/v1/how-to-train-tensorflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ tf_env.docker.base_image = 'mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.1-cudn
195195
```
196196

197197
> [!TIP]
198-
> Optionally, you can just capture all your dependencies directly in a custom Docker image or Dockerfile, and create your environment from that. For more information, see [Train with custom image](../how-to-train-with-custom-image.md).
198+
> Optionally, you can just capture all your dependencies directly in a custom Docker image or Dockerfile, and create your environment from that. For more information, see [Train with custom image](how-to-train-with-custom-image.md).
199199

200200
For more information on creating and using environments, see [Create and use software environments in Azure Machine Learning](how-to-use-environments.md).
201201

articles/machine-learning/how-to-train-with-custom-image.md renamed to articles/machine-learning/v1/how-to-train-with-custom-image.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ ms.custom: sdkv1, event-tier1-build-2022
1515

1616
# Train a model by using a custom Docker image
1717

18-
[!INCLUDE [sdk v1](../../includes/machine-learning-sdk-v1.md)]
18+
[!INCLUDE [sdk v1](../../../includes/machine-learning-sdk-v1.md)]
1919

2020
In this article, learn how to use a custom Docker image when you're training models with Azure Machine Learning. You'll use the example scripts in this article to classify pet images by creating a convolutional neural network.
2121

22-
Azure Machine Learning provides a default Docker base image. You can also use Azure Machine Learning environments to specify a different base image, such as one of the maintained [Azure Machine Learning base images](https://github.com/Azure/AzureML-Containers) or your own [custom image](./how-to-deploy-custom-container.md). Custom base images allow you to closely manage your dependencies and maintain tighter control over component versions when running training jobs.
22+
Azure Machine Learning provides a default Docker base image. You can also use Azure Machine Learning environments to specify a different base image, such as one of the maintained [Azure Machine Learning base images](https://github.com/Azure/AzureML-Containers) or your own [custom image](../how-to-deploy-custom-container.md). Custom base images allow you to closely manage your dependencies and maintain tighter control over component versions when running training jobs.
2323

2424
## Prerequisites
2525

2626
Run the code on either of these environments:
2727

2828
* Azure Machine Learning compute instance (no downloads or installation necessary):
29-
* Complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md) tutorial to create a dedicated notebook server preloaded with the SDK and the sample repository.
29+
* Complete the [Quickstart: Get started with Azure Machine Learning](../quickstart-create-resources.md) tutorial to create a dedicated notebook server preloaded with the SDK and the sample repository.
3030
* Your own Jupyter Notebook server:
31-
* Create a [workspace configuration file](how-to-configure-environment.md#local-and-dsvm-only-create-a-workspace-configuration-file).
31+
* Create a [workspace configuration file](../how-to-configure-environment.md#local-and-dsvm-only-create-a-workspace-configuration-file).
3232
* Install the [Azure Machine Learning SDK](/python/api/overview/azure/ml/install).
33-
* Create an [Azure container registry](../container-registry/index.yml) or other Docker registry that's available on the internet.
33+
* Create an [Azure container registry](../../container-registry/index.yml) or other Docker registry that's available on the internet.
3434

3535
## Set up a training experiment
3636

3737
In this section, you set up your training experiment by initializing a workspace, defining your environment, and configuring a compute target.
3838

3939
### Initialize a workspace
4040

41-
The [Azure Machine Learning workspace](concept-workspace.md) is the top-level resource for the service. It gives you a centralized place to work with all the artifacts that you create. In the Python SDK, you can access the workspace artifacts by creating a [`Workspace`](/python/api/azureml-core/azureml.core.workspace.workspace) object.
41+
The [Azure Machine Learning workspace](../concept-workspace.md) is the top-level resource for the service. It gives you a centralized place to work with all the artifacts that you create. In the Python SDK, you can access the workspace artifacts by creating a [`Workspace`](/python/api/azureml-core/azureml.core.workspace.workspace) object.
4242

4343
Create a `Workspace` object from the config.json file that you created as a [prerequisite](#prerequisites).
4444

@@ -105,15 +105,15 @@ fastai_env.docker.base_dockerfile = "./Dockerfile"
105105
> * Python 3.7+.
106106
> * A POSIX compliant shell available at /bin/sh is required in any container image used for training.
107107
108-
For more information about creating and managing Azure Machine Learning environments, see [Create and use software environments](how-to-use-environments.md).
108+
For more information about creating and managing Azure Machine Learning environments, see [Create and use software environments](../how-to-use-environments.md).
109109

110110
### Create or attach a compute target
111111

112-
You need to create a [compute target](v1/concept-azure-machine-learning-architecture.md#compute-targets) for training your model. In this tutorial, you create `AmlCompute` as your training compute resource.
112+
You need to create a [compute target](concept-azure-machine-learning-architecture.md#compute-targets) for training your model. In this tutorial, you create `AmlCompute` as your training compute resource.
113113

114114
Creation of `AmlCompute` takes a few minutes. If the `AmlCompute` resource is already in your workspace, this code skips the creation process.
115115

116-
As with other Azure services, there are limits on certain resources (for example, `AmlCompute`) associated with the Azure Machine Learning service. For more information, see [Default limits and how to request a higher quota](how-to-manage-quotas.md).
116+
As with other Azure services, there are limits on certain resources (for example, `AmlCompute`) associated with the Azure Machine Learning service. For more information, see [Default limits and how to request a higher quota](../how-to-manage-quotas.md).
117117

118118
```python
119119
from azureml.core.compute import ComputeTarget, AmlCompute
@@ -148,7 +148,7 @@ print(compute_target.get_status().serialize())
148148

149149
For this tutorial, use the training script *train.py* on [GitHub](https://github.com/Azure/azureml-examples/blob/main/v1/python-sdk/workflows/train/fastai/pets/src/train.py). In practice, you can take any custom training script and run it, as is, with Azure Machine Learning.
150150

151-
Create a `ScriptRunConfig` resource to configure your job for running on the desired [compute target](v1/how-to-set-up-training-targets.md).
151+
Create a `ScriptRunConfig` resource to configure your job for running on the desired [compute target](how-to-set-up-training-targets.md).
152152

153153
```python
154154
from azureml.core import ScriptRunConfig
@@ -171,9 +171,9 @@ run.wait_for_completion(show_output=True)
171171
```
172172

173173
> [!WARNING]
174-
> Azure Machine Learning runs training scripts by copying the entire source directory. If you have sensitive data that you don't want to upload, use an [.ignore file](concept-train-machine-learning-model.md#understand-what-happens-when-you-submit-a-training-job) or don't include it in the source directory. Instead, access your data by using a [datastore](/python/api/azureml-core/azureml.data).
174+
> Azure Machine Learning runs training scripts by copying the entire source directory. If you have sensitive data that you don't want to upload, use an [.ignore file](../concept-train-machine-learning-model.md#understand-what-happens-when-you-submit-a-training-job) or don't include it in the source directory. Instead, access your data by using a [datastore](/python/api/azureml-core/azureml.data).
175175
176176
## Next steps
177177
In this article, you trained a model by using a custom Docker image. See these other articles to learn more about Azure Machine Learning:
178-
* [Track run metrics](how-to-log-view-metrics.md) during training.
179-
* [Deploy a model](./how-to-deploy-custom-container.md) by using a custom Docker image.
178+
* [Track run metrics](../how-to-log-view-metrics.md) during training.
179+
* [Deploy a model](../how-to-deploy-custom-container.md) by using a custom Docker image.

articles/machine-learning/v1/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
- name: PyTorch
242242
href: how-to-train-pytorch.md
243243
- name: Train with custom Docker image
244-
href: ../how-to-train-with-custom-image.md
244+
href: how-to-train-with-custom-image.md
245245
- name: Migrate from Estimators to ScriptRunConfig
246246
href: how-to-migrate-from-estimators-to-scriptrunconfig.md
247247
- name: Use Key Vault when training

0 commit comments

Comments
 (0)