Skip to content

Commit 9ab175f

Browse files
Merge pull request #275905 from sdgilley/sdg-freshness
freshness pass - resync with notebook
2 parents 708fdd0 + 85a1744 commit 9ab175f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

articles/machine-learning/tutorial-pipeline-python-sdk.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
99
author: likebupt
1010
ms.author: keli19
1111
ms.reviewer: lagayhar
12-
ms.date: 10/20/2023
12+
ms.date: 05/15/2024
1313
ms.custom:
1414
- sdkv2
1515
- build-2023
@@ -66,7 +66,7 @@ This video shows how to get started in Azure Machine Learning studio so that you
6666

6767
[!INCLUDE [notebook set kernel](includes/prereq-set-kernel.md)]
6868

69-
<!-- nbstart https://raw.githubusercontent.com/Azure/azureml-examples/sdg-serverless/tutorials/get-started-notebooks/pipeline.ipynb -->
69+
<!-- nbstart https://raw.githubusercontent.com/Azure/azureml-examples/main/tutorials/get-started-notebooks/pipeline.ipynb -->
7070

7171

7272
## Set up the pipeline resources
@@ -98,9 +98,9 @@ from azure.identity import DefaultAzureCredential
9898
# authenticate
9999
credential = DefaultAzureCredential()
100100

101-
SUBSCRIPTION="<SUBSCRIPTION_ID>"
102-
RESOURCE_GROUP="<RESOURCE_GROUP>"
103-
WS_NAME="<AML_WORKSPACE_NAME>"
101+
SUBSCRIPTION = "<SUBSCRIPTION_ID>"
102+
RESOURCE_GROUP = "<RESOURCE_GROUP>"
103+
WS_NAME = "<AML_WORKSPACE_NAME>"
104104
# Get a handle to the workspace
105105
ml_client = MLClient(
106106
credential=credential,
@@ -113,14 +113,14 @@ ml_client = MLClient(
113113
> [!NOTE]
114114
> Creating MLClient will not connect to the workspace. The client initialization is lazy, it will wait for the first time it needs to make a call (this will happen in the next code cell).
115115
116-
Verify the connection by making a call to `ml_client`. Since this is the first time that you're making a call to the workspace, you might be asked to authenticate.
116+
Verify the connection by making a call to `ml_client`. Since this is the first time that you're making a call to the workspace, you may be asked to authenticate.
117117

118118

119119
```python
120-
# Verify that the handle works correctly.
120+
# Verify that the handle works correctly.
121121
# If you ge an error here, modify your SUBSCRIPTION, RESOURCE_GROUP, and WS_NAME in the previous cell.
122122
ws = ml_client.workspaces.get(WS_NAME)
123-
print(ws.location,":", ws.resource_group)
123+
print(ws.location, ":", ws.resource_group)
124124
```
125125

126126
## Access the registered data asset
@@ -476,7 +476,7 @@ outputs:
476476
code: .
477477
environment:
478478
# for this step, we'll use an AzureML curate environment
479-
azureml:AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:1
479+
azureml://registries/azureml/environments/sklearn-1.0/labels/latest
480480
command: >-
481481
python train.py
482482
--train_data ${{inputs.train_data}}
@@ -593,7 +593,7 @@ pipeline_job = ml_client.jobs.create_or_update(
593593
ml_client.jobs.stream(pipeline_job.name)
594594
```
595595

596-
You can track the progress of your pipeline, by using the link generated in the previous cell. When you first select this link, you might see that the pipeline is still running. Once it's complete, you can examine each component's results.
596+
You can track the progress of your pipeline, by using the link generated in the previous cell. When you first select this link, you may see that the pipeline is still running. Once it's complete, you can examine each component's results.
597597

598598
Double-click the **Train Credit Defaults Model** component.
599599

@@ -614,6 +614,7 @@ To learn how to deploy your model to an online endpoint, see [Deploy a model as
614614
<!-- nbend -->
615615

616616

617+
617618
## Clean up resources
618619

619620
If you plan to continue now to other tutorials, skip to [Next steps](#next-steps).

0 commit comments

Comments
 (0)