samples/README.md

Azure ML samples

These samples are short code examples for using Azure Machine Learning with the R SDK. If you are new to the R SDK, we recommend that you first take a look at the more detailed end-to-end vignettes.

Before running a sample in RStudio, set the working directory to the folder that contains the sample script in RStudio using setwd(dirname) or Session -> Set Working Directory -> To Source File Location. Each vignette assumes that the data and scripts are in the current working directory.

  1. train-on-amlcompute: Train a model on a remote AmlCompute cluster.
  2. train-on-local: Train a model locally with Docker.
  3. deploy-to-aci: Deploy a model as a web service to Azure Container Instances (ACI).
  4. deploy-to-local: Deploy a model as a web service locally.

Before you run these samples, make sure you have an Azure Machine Learning workspace. You can follow the configuration vignette to set up a workspace. (You do not need to do this if you are running these examples on an Azure Machine Learning compute instance).

Troubleshooting

In order to submit an experiment, the Azure ML SDK must create a .zip file of the project directory to send to the service. However, the SDK does not have permission to write into the .Rproj.user subdirectory that is automatically created during an RStudio session. For this reason, the recommended best practice is to isolate project files into their own directory.



Azure/azureml-sdk-for-r documentation built on Sept. 21, 2022, 5:45 a.m.