Skip to content

Commit 4c17b1d

Browse files
authored
Merge pull request #207084 from Blackmist/rl2v1
moving v1 article
2 parents 4039373 + 854e98b commit 4c17b1d

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,11 @@
14901490
"redirect_url": "/azure/machine-learning/how-to-create-labeling-projects",
14911491
"redirect_document_id": true
14921492
},
1493+
{
1494+
"source_path_from_root": "/articles/machine-learning/how-to-use-reinforcement-learning.md",
1495+
"redirect_url": "/azure/machine-learning/v1/how-to-use-reinforcement-learning",
1496+
"redirect_document_id": true
1497+
},
14931498
{
14941499
"source_path_from_root": "/articles/machine-learning/service/how-to-create-dataset-snapshots.md",
14951500
"redirect_url": "/python/api/azureml-core/azureml.data.dataset_snapshot.datasetsnapshot",

articles/machine-learning/reference-machine-learning-cloud-parity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the list of global Azure regions, there are several regions that serve specif
2323
* Azure Government regions **US-Arizona** and **US-Virginia**.
2424
* Azure China 21Vianet region **China-East-2**.
2525

26-
Azure Machine Learning is still in devlopment in Airgap Regions.
26+
Azure Machine Learning is still in development in Airgap Regions.
2727

2828
The information in the rest of this document provides information on what features of Azure Machine Learning are available in these regions, along with region-specific information on using these features.
2929
## Azure Government
@@ -92,7 +92,7 @@ The information in the rest of this document provides information on what featur
9292
| Interpretability SDK | GA | YES | YES |
9393
| **Training** | | | |
9494
| [Experimentation log streaming](how-to-track-monitor-analyze-runs.md) | GA | YES | YES |
95-
| [Reinforcement Learning](how-to-use-reinforcement-learning.md) | Public Preview | NO | NO |
95+
| [Reinforcement Learning](./v1/how-to-use-reinforcement-learning.md) | Public Preview | NO | NO |
9696
| [Experimentation UI](how-to-track-monitor-analyze-runs.md) | Public Preview | YES | YES |
9797
| [.NET integration ML.NET 1.0](/dotnet/machine-learning/tutorials/object-detection-model-builder) | GA | YES | YES |
9898
| **Inference** | | | |

articles/machine-learning/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,6 @@
410410
href: how-to-train-with-custom-image.md
411411
- name: Migrate from Estimators to ScriptRunConfig
412412
href: how-to-migrate-from-estimators-to-scriptrunconfig.md
413-
- name: Reinforcement learning
414-
href: how-to-use-reinforcement-learning.md
415413
- name: Use Key Vault when training
416414
displayName: secrets keyvault
417415
href: how-to-use-secrets-in-runs.md

articles/machine-learning/how-to-use-reinforcement-learning.md renamed to articles/machine-learning/v1/how-to-use-reinforcement-learning.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ description: Learn how to use Azure Machine Learning reinforcement learning (pre
55
services: machine-learning
66
ms.service: machine-learning
77
ms.subservice: core
8-
ms.author: larryfr
9-
author: Blackmist
10-
ms.date: 10/21/2021
8+
ms.author: wenxwei
9+
author: wenxwei
10+
ms.date: 08/05/2022
1111
ms.topic: how-to
1212
ms.custom: devx-track-python, contperf-fy21q2, sdkv1, event-tier1-build-2022
1313
---
1414

1515
# Reinforcement learning (preview) with Azure Machine Learning
1616

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

1919
> [!WARNING]
2020
> Azure Machine Learning reinforcement learning via the [`azureml.contrib.train.rl`](/python/api/azureml-contrib-reinforcementlearning/azureml.contrib.train.rl) package will no longer be supported after June 2022. We recommend customers use the [Ray on Azure Machine Learning library](https://github.com/microsoft/ray-on-aml) for reinforcement learning experiments with Azure Machine Learning. For an example, see the notebook [Reinforcement Learning in Azure Machine Learning - Pong problem](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/reinforcement-learning/atari-on-distributed-compute/pong_rllib.ipynb).
@@ -37,7 +37,7 @@ Run this code in either of these environments. We recommend you try Azure Machin
3737

3838
- Azure Machine Learning compute instance
3939

40-
- Learn how to clone sample notebooks in [Tutorial: Train and deploy a model](tutorial-train-deploy-notebook.md).
40+
- Learn how to clone sample notebooks in [Tutorial: Train and deploy a model](../tutorial-train-deploy-notebook.md).
4141
- Clone the **how-to-use-azureml** folder instead of **tutorials**
4242
- Run the virtual network setup notebook located at `/how-to-use-azureml/reinforcement-learning/setup/devenv_setup.ipynb` to open network ports used for distributed reinforcement learning.
4343
- Run the sample notebook `/how-to-use-azureml/reinforcement-learning/atari-on-distributed-compute/pong_rllib.ipynb`
@@ -46,7 +46,7 @@ Run this code in either of these environments. We recommend you try Azure Machin
4646

4747
- Install the [Azure Machine Learning SDK](/python/api/overview/azure/ml/install).
4848
- Install the [Azure Machine Learning RL SDK](/python/api/azureml-contrib-reinforcementlearning/): `pip install --upgrade azureml-contrib-reinforcementlearning`
49-
- Create a [workspace configuration file](how-to-configure-environment.md#workspace).
49+
- Create a [workspace configuration file](../how-to-configure-environment.md#workspace).
5050
- Run the virtual network to open network ports used for distributed reinforcement learning.
5151

5252

@@ -94,7 +94,7 @@ from azureml.contrib.train.rl import WorkerConfiguration
9494

9595
### Initialize a workspace
9696

97-
Initialize a [workspace](concept-workspace.md) object from the `config.json` file created in the [prerequisites section](#prerequisites). If you are executing this code in an Azure Machine Learning Compute Instance, the configuration file has already been created for you.
97+
Initialize a [workspace](../concept-workspace.md) object from the `config.json` file created in the [prerequisites section](#prerequisites). If you are executing this code in an Azure Machine Learning Compute Instance, the configuration file has already been created for you.
9898

9999
```Python
100100
ws = Workspace.from_config()
@@ -128,7 +128,7 @@ This example uses separate compute targets for the Ray head and workers nodes. T
128128

129129
You can use a GPU-equipped head cluster to improve deep learning performance. The head node trains the neural network that the agent uses to make decisions. The head node also collects data points from the worker nodes to train the neural network.
130130

131-
The head compute uses a single [`STANDARD_NC6` virtual machine](../virtual-machines/nc-series.md) (VM). It has 6 virtual CPUs to distribute work across.
131+
The head compute uses a single [`STANDARD_NC6` virtual machine](../../virtual-machines/nc-series.md) (VM). It has 6 virtual CPUs to distribute work across.
132132

133133

134134
```python
@@ -166,11 +166,11 @@ else:
166166
print(head_compute_target.get_status().serialize())
167167
```
168168

169-
[!INCLUDE [low-pri-note](../../includes/machine-learning-low-pri-vm.md)]
169+
[!INCLUDE [low-pri-note](../../../includes/machine-learning-low-pri-vm.md)]
170170

171171
### Worker computing cluster
172172

173-
This example uses four [`STANDARD_D2_V2` VMs](../virtual-machines/nc-series.md) for the worker compute target. Each worker node has 2 available CPUs for a total of 8 available CPUs.
173+
This example uses four [`STANDARD_D2_V2` VMs](../../virtual-machines/nc-series.md) for the worker compute target. Each worker node has 2 available CPUs for a total of 8 available CPUs.
174174

175175
GPUs aren't necessary for the worker nodes since they aren't performing deep learning. The workers run the game simulations and collect data.
176176

@@ -245,7 +245,7 @@ The entry script `pong_rllib.py` accepts a list of parameters that defines how t
245245

246246
Specifying the correct `num_workers` makes the most out of your parallelization efforts. Set the number of workers to the same as the number of available CPUs. For this example, you can use the following calculation:
247247

248-
The head node is a [Standard_NC6](../virtual-machines/nc-series.md) with 6 vCPUs. The worker cluster is 4 [Standard_D2_V2 VMs](../cloud-services/cloud-services-sizes-specs.md#dv2-series) with 2 CPUs each, for a total of 8 CPUs. However, you must subtract 1 CPU from the worker count since 1 must be dedicated to the head node role.
248+
The head node is a [Standard_NC6](../../virtual-machines/nc-series.md) with 6 vCPUs. The worker cluster is 4 [Standard_D2_V2 VMs](../../cloud-services/cloud-services-sizes-specs.md#dv2-series) with 2 CPUs each, for a total of 8 CPUs. However, you must subtract 1 CPU from the worker count since 1 must be dedicated to the head node role.
249249

250250
6 CPUs + 8 CPUs - 1 head CPU = 13 simultaneous workers. Azure Machine Learning uses head and worker clusters to distinguish compute resources. However, Ray does not distinguish between head and workers, and all CPUs are available as worker threads.
251251

articles/machine-learning/v1/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
- name: Prepare data for computer vision with AutoML
180180
displayName: nlp, auto ML, automl, SDK
181181
href: how-to-prepare-datasets-for-automl-images-v1.md
182+
- name: Reinforcement learning
183+
href: how-to-use-reinforcement-learning.md
182184
- name: Deploy models
183185
items:
184186
- name: Where and how to deploy

0 commit comments

Comments
 (0)