Skip to content

Commit b18b0e4

Browse files
authored
Merge pull request #285412 from fbsolo-ms1/update-pii-6
Remove PII for image remediation . . .
2 parents ca27291 + da23e1d commit b18b0e4

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

articles/machine-learning/how-to-access-data-interactive.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ path_on_datastore = '<path>'
6868
uri = f'azureml://subscriptions/{subscription}/resourcegroups/{resource_group}/workspaces/{workspace}/datastores/{datastore_name}/paths/{path_on_datastore}'.
6969
```
7070
71-
These Datastore URIs are a known implementation of the [Filesystem spec](https://filesystem-spec.readthedocs.io/en/latest/index.html) (`fsspec`): a unified pythonic interface to local, remote, and embedded file systems and bytes storage. First, pip install the `azureml-fsspec` package and its dependency `azureml-dataprep` package. Then, you can use the Azure Machine Learning Datastore `fsspec` implementation.
71+
These Datastore URIs are a known implementation of the [Filesystem spec](https://filesystem-spec.readthedocs.io/en/latest/index.html) (`fsspec`): a unified pythonic interface to local, remote, and embedded file systems and bytes storage. First, use pip to install the `azureml-fsspec` package and its dependency `azureml-dataprep` package. Then, you can use the Azure Machine Learning Datastore `fsspec` implementation.
7272

7373
The Azure Machine Learning Datastore `fsspec` implementation automatically handles the credential/identity passthrough that the Azure Machine Learning datastore uses. You can avoid both account key exposure in your scripts, and extra sign-in procedures, on a compute instance.
7474

@@ -86,7 +86,7 @@ df.head()
8686
> 1. Select **Data** from the left-hand menu, then select the **Datastores** tab.
8787
> 1. Select your datastore name, and then **Browse**.
8888
> 1. Find the file/folder you want to read into Pandas, and select the ellipsis (**...**) next to it. Select **Copy URI** from the menu. You can select the **Datastore URI** to copy into your notebook/script.
89-
> :::image type="content" source="media/how-to-access-data-ci/datastore_uri_copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
89+
> :::image type="content" source="media/how-to-access-data-interactive/datastore-uri-copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
9090
9191
You can also instantiate an Azure Machine Learning filesystem, to handle filesystem-like commands - for example `ls`, `glob`, `exists`, `open`.
9292
- The `ls()` method lists files in a specific directory. You can use ls(), ls(.), ls (<<folder_level_1>/<folder_level_2>) to list files. We support both '.' and '..', in relative paths.
@@ -197,7 +197,7 @@ df.head()
197197
#### Read a folder of parquet files into Pandas
198198
As part of an ETL process, Parquet files are typically written to a folder, which can then emit files relevant to the ETL such as progress, commits, etc. This example shows files created from an ETL process (files beginning with `_`) which then produce a parquet file of data.
199199

200-
:::image type="content" source="media/how-to-access-data-ci/parquet-auxillary.png" alt-text="Screenshot showing the parquet ETL process.":::
200+
:::image type="content" source="media/how-to-access-data-interactive/parquet-auxillary.png" alt-text="Screenshot showing the parquet ETL process.":::
201201

202202
In these scenarios, you only read the parquet files in the folder, and ignore the ETL process files. This code sample shows how glob patterns can read only parquet files in a folder:
203203

@@ -491,7 +491,7 @@ df.head()
491491
> 1. Select **Data** from the left-hand menu, then select the **Datastores** tab.
492492
> 1. Select your datastore name, and then **Browse**.
493493
> 1. Find the file/folder you want to read into Pandas, and select the ellipsis (**...**) next to it. Select **Copy URI** from the menu. You can select the **Datastore URI** to copy into your notebook/script.
494-
> :::image type="content" source="media/how-to-access-data-ci/datastore_uri_copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
494+
> :::image type="content" source="media/how-to-access-data-interactive/datastore-uri-copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
495495

496496
##### [HTTP Server](#tab/http)
497497
```python
@@ -564,7 +564,7 @@ df.head()
564564
> 1. Select **Data** from the left-hand menu, then select the **Datastores** tab.
565565
> 1. Select your datastore name, and then **Browse**.
566566
> 1. Find the file/folder you want to read into Pandas, and select the ellipsis (**...**) next to it. Select **Copy URI** from the menu. You can select the **Datastore URI** to copy into your notebook/script.
567-
> :::image type="content" source="media/how-to-access-data-ci/datastore_uri_copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
567+
> :::image type="content" source="media/how-to-access-data-interactive/datastore-uri-copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
568568

569569
##### [HTTP Server](#tab/http)
570570

articles/machine-learning/how-to-r-interactive-development.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ ms.devlang: r
1616

1717
[!INCLUDE [dev v2](includes/machine-learning-dev-v2.md)]
1818

19-
This article shows how to use R on a compute instance in Azure Machine Learning studio, that runs an R kernel in a Jupyter notebook.
19+
This article shows how to use R in Azure Machine Learning studio on a compute instance that runs an R kernel in a Jupyter notebook.
2020

21-
The popular RStudio IDE also works. You can install RStudio or Posit Workbench in a custom container on a compute instance. However, this has limitations in reading and writing to your Azure Machine Learning workspace.
21+
The popular RStudio IDE also works. You can install RStudio or Posit Workbench in a custom container on a compute instance. However, this has limitations in reading and writing to your Azure Machine Learning workspace.
2222

2323
> [!IMPORTANT]
24-
> The code shown in this article works on an Azure Machine Learning compute instance. The compute instance has an environment and configuration file necessary for the code to run successfully.
24+
> The code shown in this article works on an Azure Machine Learning compute instance. The compute instance has an environment and configuration file necessary for the code to run successfully.
2525
2626
## Prerequisites
2727

2828
- If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/) today
2929
- An [Azure Machine Learning workspace and a compute instance](quickstart-create-resources.md)
30-
- A basic understand of using Jupyter notebooks in Azure Machine Learning studio. See [Model development on a cloud workstation](tutorial-cloud-workstation.md) for more information.
30+
- A basic understand of using Jupyter notebooks in Azure Machine Learning studio. Visit the [Model development on a cloud workstation](tutorial-cloud-workstation.md) resource for more information.
3131

3232
## Run R in a notebook in studio
3333

34-
You'll use a notebook in your Azure Machine Learning workspace, on a compute instance.
34+
You'll use a notebook in your Azure Machine Learning workspace, on a compute instance.
3535

3636
1. Sign in to [Azure Machine Learning studio](https://ml.azure.com)
3737
1. Open your workspace if it isn't already open
@@ -42,7 +42,7 @@ You'll use a notebook in your Azure Machine Learning workspace, on a compute ins
4242
> If you're not sure how to create and work with notebooks in studio, review [Run Jupyter notebooks in your workspace](how-to-run-jupyter-notebooks.md)
4343
4444
1. Select the notebook.
45-
1. On the notebook toolbar, make sure your compute instance is running. If not, start it now.
45+
1. On the notebook toolbar, make sure your compute instance is running. If not, start it now.
4646
1. On the notebook toolbar, switch the kernel to **R**.
4747

4848
:::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":::
@@ -57,7 +57,7 @@ This section describes how to use Python and the `reticulate` package to load yo
5757

5858
To install these packages:
5959

60-
1. Create a new file on the compute instance, called **setup.sh**.
60+
1. Create a new file on the compute instance, called **setup.sh**.
6161
1. Copy this code into the file:
6262

6363
:::code language="bash" source="~/azureml-examples-mavaisma-r-azureml/tutorials/using-r-with-azureml/01-setup-compute-instance-for-interactive-r/setup-ci-for-interactive-data-reads.sh":::
@@ -75,7 +75,7 @@ For data stored in a data asset [created in Azure Machine Learning](how-to-creat
7575
> [!NOTE]
7676
> Reading a file with `reticulate` only works with tabular data.
7777
78-
1. Ensure you have the correct version of `reticulate`. For a version less than 1.26, try to use a newer compute instance.
78+
1. Ensure you have the correct version of `reticulate`. For a version less than 1.26, try to use a newer compute instance.
7979

8080
```r
8181
packageVersion("reticulate")
@@ -99,11 +99,11 @@ For data stored in a data asset [created in Azure Machine Learning](how-to-creat
9999

100100
[!Notebook-r[](~/azureml-examples-mavaisma-r-azureml/tutorials/using-r-with-azureml/02-develop-in-interactive-r/work-with-data-assets.ipynb?name=get-uri)]
101101

102-
1. Run the code to retrieve the URI.
102+
1. To retrieve the URI, run the code.
103103

104104
[!Notebook-r[](~/azureml-examples-mavaisma-r-azureml/tutorials/using-r-with-azureml/02-develop-in-interactive-r/work-with-data-assets.ipynb?name=py_run_string)]
105105

106-
1. Use Pandas read functions to read the file(s) into the R environment
106+
1. Use Pandas read functions to read the file or files into the R environment.
107107

108108
[!Notebook-r[](~/azureml-examples-mavaisma-r-azureml/tutorials/using-r-with-azureml/02-develop-in-interactive-r/work-with-data-assets.ipynb?name=read-uri)]
109109

@@ -120,17 +120,17 @@ You can also use a Datastore URI to access different files on a registered Datas
120120

121121
uri <- paste0("azureml://subscriptions/", subscription, "/resourcegroups/", resource_group, "/workspaces/", workspace, "/datastores/", datastore_name, "/paths/", path_on_datastore)
122122
```
123-
123+
124124
> [!TIP]
125125
> Instead of remembering the datastore URI format, you can copy-and-paste the datastore URI from the Studio UI, if you know the datastore where your file is located:
126126
> 1. Navigate to the file/folder you want to read into R
127-
> 1. Select the elipsis (**...**) next to it.
127+
> 1. Select the elipsis (**...**) next to it.
128128
> 1. Select from the menu **Copy URI**.
129129
> 1. Select the **Datastore URI** to copy into your notebook/script.
130130
> Note that you must create a variable for `<path>` in the code.
131-
> :::image type="content" source="media/how-to-access-data-ci/datastore_uri_copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
131+
> :::image type="content" source="media/how-to-r-interactive-development/datastore-uri-copy.png" alt-text="Screenshot highlighting the copy of the datastore URI.":::
132132

133-
2. Create a filestore object using the aforementioned URI:
133+
2. Create a filestore object using the previously mentioned URI:
134134
```r
135135
fs <- azureml.fsspec$AzureMachineLearningFileSystem(uri, sep = "")
136136
```
@@ -173,7 +173,7 @@ Add `/home/azureuser` to the R library path.
173173
```
174174

175175
> [!TIP]
176-
> You must update the `.libPaths` in each interactive R script to access user installed libraries. Add this code to the top of each interactive R script or notebook.
176+
> You must update the `.libPaths` in each interactive R script to access user installed libraries. Add this code to the top of each interactive R script or notebook.
177177
178178
Once the libPath is updated, load libraries as usual.
179179

Binary file not shown.
Binary file not shown.
38.8 KB
Loading
31.9 KB
Loading
38.8 KB
Loading

0 commit comments

Comments
 (0)