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-r-deploy-r-model.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ In this article, you'll learn how to deploy an R model to a managed endpoint (We
21
21
22
22
- An [Azure Machine Learning workspace](quickstart-create-resources.md).
23
23
- 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 pre-installed.
24
-
- At least one custom environment associated with your workspace. Create [an R environment](how-to-r-azure-ml-modify-script-for-production.md#create-an-environment), or any other custom environment if you don't have one.
24
+
- At least one custom environment associated with your workspace. Create [an R environment](how-to-r-modify-script-for-production.md#create-an-environment), or any other custom environment if you don't have one.
25
25
- An understanding of the [R `plumber` package](https://www.rplumber.io/index.html)
26
-
- A model that you've trained and [packaged with `crate`](how-to-r-azure-ml-modify-script-for-production.md#crate-your-models-with-the-carrier-package), and [registered into your workspace](how-to-r-azure-ml-train-model.md#register-model)
26
+
- A model that you've trained and [packaged with `crate`](how-to-r-modify-script-for-production.md#crate-your-models-with-the-carrier-package), and [registered into your workspace](how-to-r-train-model.md#register-model)
27
27
28
28
## Create a folder with this structure
29
29
@@ -177,7 +177,7 @@ These steps assume you have an Azure Container Registry associated with your wor
177
177
1. On the left navigation, select **Environments**.
178
178
1. On the top, select **Custom environments**.
179
179
1. If you see custom environments, nothing more is needed.
180
-
1. If you don't see any custom environments, create [an R environment](how-to-r-azure-ml-modify-script-for-production.md#create-an-environment), or any other custom environment. (You *won't* use this environment for deployment, but you *will* use the container registry that is also created for you.)
180
+
1. If you don't see any custom environments, create [an R environment](how-to-r-modify-script-for-production.md#create-an-environment), or any other custom environment. (You *won't* use this environment for deployment, but you *will* use the container registry that is also created for you.)
181
181
182
182
Once you have verified that you have at least one custom environment, use the following steps to build a container.
183
183
@@ -201,7 +201,7 @@ Once you have verified that you have at least one custom environment, use the fo
201
201
az account set --subscription "<SUBSCRIPTION-NAME>"
202
202
```
203
203
204
-
1. Set the default workspace. If you're doing this from a compute instance, you can use the following command as is. If you're on any other computer, substitute your resource group and workspace name instead. (You can find these values in [Azure Machine Learning studio](how-to-r-azure-ml-train-model.md#submit-the-job).)
204
+
1. Set the default workspace. If you're doing this from a compute instance, you can use the following command as is. If you're on any other computer, substitute your resource group and workspace name instead. (You can find these values in [Azure Machine Learning studio](how-to-r-train-model.md#submit-the-job).)
205
205
206
206
```azurecli
207
207
az configure --defaults group=$CI_RESOURCE_GROUP workspace=$CI_WORKSPACE
@@ -326,7 +326,7 @@ Enter the following json into the **Input data to rest real-time endpoint** text
326
326
327
327
Select **Test**. You should see the following output:
328
328
329
-
:::image type="content" source="media/how-to-r-azure-ml-deploy-an-r-model/test-deployment.png" alt-text="Screenshot shows results from testing a model." lightbox="media/how-to-r-azure-ml-deploy-an-r-model/test-deployment.png":::
329
+
:::image type="content" source="media/how-to-r-deploy-an-r-model/test-deployment.png" alt-text="Screenshot shows results from testing a model." lightbox="media/how-to-r-deploy-an-r-model/test-deployment.png":::
330
330
331
331
# [Azure CLI](#tab/cli)
332
332
@@ -361,4 +361,4 @@ az ml online-endpoint delete --name r-endpoint-forecast
361
361
362
362
## Next steps
363
363
364
-
For more information about using R with Azure Machine Learning, see [Overview of R capabilities in Azure Machine Learning](how-to-r-azure-ml-overview-r-capabilities.md)
364
+
For more information about using R with Azure Machine Learning, see [Overview of R capabilities in Azure Machine Learning](how-to-r-overview-r-capabilities.md)
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-r-interactive-development.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Many R users also use RStudio, a popular IDE. You can install RStudio or Posit W
33
33
You'll use a notebook in your Azure Machine Learning workspace, on a compute instance.
34
34
35
35
1. Sign in to [Azure Machine Learning studio](https://ml.azure.com)
36
-
1. Open your workspace if isn't already open
36
+
1. Open your workspace if it isn't already open
37
37
1. On the left navigation, select **Notebooks**
38
38
1. Create a new notebook, named **RunR.ipynb**
39
39
@@ -44,7 +44,7 @@ You'll use a notebook in your Azure Machine Learning workspace, on a compute ins
44
44
1. On the notebook toolbar, make sure your compute instance is running. If not, start it now.
45
45
1. On the notebook toolbar, switch the kernel to **R**.
46
46
47
-
:::image type="content" source="media/how-to-r-azure-ml-interactive-development/r-kernel.png" alt-text="Screenshot: Switch the notebook kernel to use R." lightbox="media/how-to-r-azure-ml-interactive-development/r-kernel.png":::
47
+
:::image type="content" source="media/how-to-r-interactive-development/r-kernel.png" alt-text="Screenshot: Switch the notebook kernel to use R." lightbox="media/how-to-r-interactive-development/r-kernel.png":::
48
48
49
49
Your notebook is now ready for you to run R commands.
50
50
@@ -156,4 +156,4 @@ Other than the above issues, use R as you would in any other environment, such a
156
156
157
157
## Next steps
158
158
159
-
*[Adapt your R script to run in production](how-to-r-azure-ml-modify-script-for-production.md)
159
+
*[Adapt your R script to run in production](how-to-r-modify-script-for-production.md)
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-r-overview-r-capabilities.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,27 +23,27 @@ This article outlines the key scenarios for R that are supported in Azure Machin
23
23
24
24
A typical workflow for using R with Azure Machine Learning:
25
25
26
-
-[Develop R scripts interactively](how-to-r-azure-ml-interactive-development.md) using Jupyter Notebooks on a compute instance. (While you can also add Posit or RStudio to a compute instance, you can't currently access data assets in the workspace from these applications on the compute instance. So for now, interactive work is best done in a Jupyter notebook.)
26
+
-[Develop R scripts interactively](how-to-r-interactive-development.md) using Jupyter Notebooks on a compute instance. (While you can also add Posit or RStudio to a compute instance, you can't currently access data assets in the workspace from these applications on the compute instance. So for now, interactive work is best done in a Jupyter notebook.)
27
27
28
28
- Read tabular data from a registered data asset or datastore
29
29
- Install additional R libraries
30
30
- Save artifacts to the workspace file storage
31
31
32
-
-[Adapt your script](how-to-r-azure-ml-modify-script-for-production.md) to run as a production job in Azure Machine Learning
32
+
-[Adapt your script](how-to-r-modify-script-for-production.md) to run as a production job in Azure Machine Learning
33
33
34
34
- Remove any code that may require user interaction
35
35
- Add command line input parameters to the script as necessary
36
36
- Include and source the `azureml_utils.R` script in the same working directory of the R script to be executed
37
37
- Use `crate` to package the model
38
38
- Include the R/MLflow functions in the script to **log** artifacts, models, parameters, and/or tags to the job on MLflow
39
39
40
-
-[Submit remote asynchronous R jobs](how-to-r-azure-ml-train-model.md) (you submit jobs via the CLI or Python SDK, not R)
40
+
-[Submit remote asynchronous R jobs](how-to-r-train-model.md) (you submit jobs via the CLI or Python SDK, not R)
41
41
42
42
- Build an environment
43
43
- Log job artifacts, parameters, tags and models
44
44
45
-
-[Register your model](how-to-r-azure-ml-train-model.md#register-model) using Azure Machine Learning studio
46
-
-[Deploy registered R models](how-to-r-azure-ml-deploy-r-model.md) to managed online endpoints
45
+
-[Register your model](how-to-r-train-model.md#register-model) using Azure Machine Learning studio
46
+
-[Deploy registered R models](how-to-r-deploy-r-model.md) to managed online endpoints
47
47
- Use the deployed endpoints for real-time inferencing/scoring
48
48
49
49
## Known limitations
@@ -59,15 +59,15 @@ A typical workflow for using R with Azure Machine Learning:
59
59
| Programmatic model registering/recording from a running job with R isn't supported. ||
60
60
| Zero code deployment (that is, automatic deployment) of an R MLflow model is currently not supported. | Create a custom container with `plumber` for deployment. |
61
61
| Scoring an R model with batch endpoints isn't supported. ||
62
-
| AzureML online deployment yml can only use image URIs directly from the registry for the environment specification; not pre-built environments from the same Dockerfile. | Follow the steps in [How to deploy a registered R model to an online (real time) endpoint](how-to-r-azure-ml-deploy-r-model.md) for the correct way to deploy. |
62
+
| AzureML online deployment yml can only use image URIs directly from the registry for the environment specification; not pre-built environments from the same Dockerfile. | Follow the steps in [How to deploy a registered R model to an online (real time) endpoint](how-to-r-deploy-r-model.md) for the correct way to deploy. |
63
63
64
64
65
65
66
66
## Next steps
67
67
68
68
Learn more about R in Azure Machine Learning:
69
69
70
-
*[Interactive R development](how-to-r-azure-ml-interactive-development.md)
71
-
*[Adapt your R script to run in production](how-to-r-azure-ml-modify-script-for-production.md)
72
-
*[How to train R models in Azure Machine Learning](how-to-r-azure-ml-train-model.md)
73
-
*[How to deploy an R model to an online (real time) endpoint](how-to-r-azure-ml-deploy-r-model.md)
70
+
*[Interactive R development](how-to-r-interactive-development.md)
71
+
*[Adapt your R script to run in production](how-to-r-modify-script-for-production.md)
72
+
*[How to train R models in Azure Machine Learning](how-to-r-train-model.md)
73
+
*[How to deploy an R model to an online (real time) endpoint](how-to-r-deploy-r-model.md)
This article explains how to take the R script that you [adapted to run in production](how-to-r-azure-ml-modify-script-for-production.md) and set it up to run as an R job using the AzureML CLI V2.
18
+
This article explains how to take the R script that you [adapted to run in production](how-to-r-modify-script-for-production.md) and set it up to run as an R job using the AzureML CLI V2.
19
19
20
20
> [!NOTE]
21
21
> Although the title of this article refers to _training_ a model, you can actually run any kind of R script as long as it meets the requirements listed in the adapting article.
@@ -26,7 +26,7 @@ This article explains how to take the R script that you [adapted to run in produ
26
26
-[A registered data asset](how-to-create-data-assets.md) that your training job will use.
27
27
- 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 pre-installed.
28
28
-[A compute cluster](how-to-create-attach-compute-cluster.md) or [compute instance](quickstart-create-resources.md#create-compute-instance) to run your training job.
29
-
-[An R environment](how-to-r-azure-ml-modify-script-for-production.md#create-an-environment) for the compute cluster to use to run the job.
29
+
-[An R environment](how-to-r-modify-script-for-production.md#create-an-environment) for the compute cluster to use to run the job.
30
30
31
31
## Create a folder with this structure
32
32
@@ -44,7 +44,7 @@ Create this folder structure for your project:
44
44
> All source code goes in the `src` directory.
45
45
46
46
* The **r-source.R** file is the R script that you adapted to run in production
47
-
* The **azureml_utils.R** file is necessary. The source code is shown [here](how-to-r-azure-ml-modify-script-for-production.md#source-the-azureml_utilsr-helper-script)
47
+
* The **azureml_utils.R** file is necessary. The source code is shown [here](how-to-r-modify-script-for-production.md#source-the-azureml_utilsr-helper-script)
48
48
49
49
50
50
@@ -103,7 +103,7 @@ Find these values from [Azure Machine Learning studio](https://ml.azure.com):
103
103
1. In the upper right Azure Machine Learning studio toolbar, select your workspace name.
104
104
1. You can copy the values from the section that appears.
105
105
106
-
:::image type="content" source="media/how-to-r-azure-ml-train-model/find-values.png" alt-text="Screenshot: Find the values to use in your CLI command." lightbox="media/how-to-r-azure-ml-train-model/find-values.png":::
106
+
:::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":::
107
107
108
108
To submit the job, run the following commands in a terminal window:
109
109
@@ -165,4 +165,4 @@ You'll see a confirmation that the model is registered.
165
165
166
166
## Next steps
167
167
168
-
Now that you have a registered model, learn [How to deploy an R model to an online (real time) endpoint](how-to-r-azure-ml-deploy-r-model.md).
168
+
Now that you have a registered model, learn [How to deploy an R model to an online (real time) endpoint](how-to-r-deploy-r-model.md).
0 commit comments