Skip to content

Commit ded8600

Browse files
committed
Acrolinx checks
1 parent 62a0e1c commit ded8600

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

articles/machine-learning/tutorial-deploy-model.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
99
author: dem108
1010
ms.author: sehan
1111
ms.reviewer: mopeakande
12-
ms.date: 03/01/2024
12+
ms.date: 03/04/2024
1313
ms.custom: mlops, devx-track-python #add more custom tags
1414
#Customer intent: This tutorial is intended to show users what is needed for deployment and present a high-level overview of how Azure Machine Learning handles deployment. Deployment isn't typically done by a data scientist, so the tutorial won't use Azure CLI examples. We will link to existing articles that use Azure CLI as needed. The code in the tutorial will use SDK v2. The tutorial will continue where the "Create reusable pipelines" tutorial stops.
1515
---
@@ -19,9 +19,9 @@ ms.custom: mlops, devx-track-python #add more custom tags
1919
[!INCLUDE [sdk v2](includes/machine-learning-sdk-v2.md)]
2020
Learn to deploy a model to an online endpoint, using Azure Machine Learning Python SDK v2.
2121

22-
In this tutorial, you use a model trained to predict the likelihood of defaulting on a credit card payment. The goal is to deploy this model and show its use.
22+
In this tutorial, you deploy and use a model that predicts the likelihood of a customer defaulting on a credit card payment.
2323

24-
The steps you'll take are:
24+
The steps you take are:
2525

2626
> [!div class="checklist"]
2727
> * Register your model
@@ -35,7 +35,7 @@ The steps you'll take are:
3535
> * Get details of the second deployment
3636
> * Roll out the new deployment and delete the first one
3737
38-
This video shows how to get started in Azure Machine Learning studio so that you can follow the steps in the tutorial. The video shows how to create a notebook, create a compute instance, and clone the notebook. The steps are also described in the following sections.
38+
This video shows how to get started in Azure Machine Learning studio so that you can follow the steps in the tutorial. The video shows how to create a notebook, create a compute instance, and clone the notebook. The steps are also described in the following sections.
3939

4040
> [!VIDEO https://learn-video.azurefd.net/vod/player?id=7d0e09a5-c319-4e6a-85e2-c9601a0fba68]
4141
@@ -61,12 +61,12 @@ This video shows how to get started in Azure Machine Learning studio so that you
6161

6262
## Create handle to workspace
6363

64-
Before you dive in the code, you need a way to reference your workspace. For this, you create `ml_client` for a handle to the workspace and use the `ml_client` to manage resources and jobs.
64+
Before you dive in the code, you need a way to reference your workspace. Create `ml_client` for a handle to the workspace and use the `ml_client` to manage resources and jobs.
6565

66-
In the next cell, enter your Subscription ID, Resource Group name and Workspace name. To find these values:
66+
In the next cell, enter your Subscription ID, Resource Group name, and Workspace name. To find these values:
6767

6868
1. In the upper right Azure Machine Learning studio toolbar, select your workspace name.
69-
1. Copy the value for workspace, resource group and subscription ID into the code.
69+
1. Copy the value for workspace, resource group, and subscription ID into the code.
7070
1. You need to copy one value, close the area and paste, then come back for the next one.
7171

7272

@@ -92,11 +92,11 @@ ml_client = MLClient(
9292

9393
## Register the model
9494

95-
If you already completed the earlier training tutorial, [Train a model](tutorial-train-model.md), you've registered an MLflow model as part of the training script and can skip to the next section.
95+
If you already completed the earlier training tutorial, [Train a model](tutorial-train-model.md), you registered an MLflow model as part of the training script and can skip to the next section.
9696

9797
If you didn't complete the training tutorial, you need to register the model. Registering your model before deployment is a recommended best practice.
9898

99-
The following code specifies the `path` (where to upload files from) inline. If you [cloned the tutorials folder](quickstart-create-resources.md#learn-from-sample-notebooks), then run the following code as-is. Otherwise, [download the files and metadata for the model to deploy](https://azuremlexampledata.blob.core.windows.net/datasets/credit_defaults_model.zip). Update the path to the location on your local computer where you've unzipped the model's files.
99+
The following code specifies the `path` (where to upload files from) inline. If you [cloned the tutorials folder](quickstart-create-resources.md#learn-from-sample-notebooks), then run the following code as-is. Otherwise, [download the files and metadata for the model to deploy](https://azuremlexampledata.blob.core.windows.net/datasets/credit_defaults_model.zip) and unzip the files. Update the path to the location of the unzipped files on your local computer.
100100

101101
The SDK automatically uploads the files and registers the model.
102102

@@ -127,7 +127,7 @@ You can check the **Models** page in [Azure Machine Learning studio](https://ml.
127127

128128
:::image type="content" source="media/tutorial-deploy-model/registered-model-in-studio.png" alt-text="Screenshot shows the registered model in studio.":::
129129

130-
Alternatively, the code below retrieves the latest version number for you to use.
130+
Alternatively, the following code retrieves the latest version number for you to use.
131131

132132

133133
```python
@@ -147,7 +147,7 @@ Now that you have a registered model, you can create an endpoint and deployment.
147147

148148
After you train a machine learning model, you need to deploy it so that others can use it for inferencing. For this purpose, Azure Machine Learning allows you to create **endpoints** and add **deployments** to them.
149149

150-
An **endpoint**, in this context, is an HTTPS path that provides an interface for clients to send requests (input data) to a trained model and receive the inferencing (scoring) results back from the model. An endpoint provides:
150+
An **endpoint**, in this context, is an HTTPS path that provides an interface for clients to send requests (input data) to a trained model and receive the inferencing (scoring) results from the model. An endpoint provides:
151151

152152
- Authentication using "key or token" based auth
153153
- [TLS(SSL)](https://simple.wikipedia.org/wiki/Transport_Layer_Security) termination
@@ -368,7 +368,7 @@ print(logs)
368368
```
369369

370370
## Create a second deployment
371-
Deploy the model as a second deployment called `green`. In practice, you can create several deployments and compare their performance. These deployments could use a different version of the same model, a completely different model, or a more powerful compute instance.
371+
Deploy the model as a second deployment called `green`. In practice, you can create several deployments and compare their performance. These deployments could use a different version of the same model, a different model, or a more powerful compute instance.
372372

373373
In this example, you deploy the same model version, using a more powerful compute instance that could potentially improve performance.
374374

0 commit comments

Comments
 (0)