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
This tutorial is an introduction to some of the most used features of the Azure Machine Learning service. In it, you will create, register and deploy a model. This tutorial will help you become familiar with the core concepts of Azure Machine Learning and their most common usage.
25
+
This tutorial is an introduction to some of the most used features of the Azure Machine Learning service. In it, you create, register, and deploy a model. This tutorial helps you become familiar with the core concepts of Azure Machine Learning and their most common usage.
26
26
27
-
You'll learn how to run a training job on a scalable compute resource, then deploy it, and finally test the deployment.
27
+
You learn how to run a training job on a scalable compute resource, then deploy it, and finally test the deployment.
28
28
29
-
You'll create a training script to handle the data preparation, train and register a model. Once you train the model, you'll *deploy* it as an *endpoint*, then call the endpoint for *inferencing*.
29
+
You create a training script to handle the data preparation, train, and register a model. Once you train the model, youdeploy it as an *endpoint*, then call the endpoint for *inferencing*.
30
30
31
-
The steps you'll take are:
31
+
The steps you take are:
32
32
33
33
> [!div class="checklist"]
34
34
> * Set up a handle to your Azure Machine Learning workspace
@@ -61,13 +61,13 @@ Watch this video for an overview of the steps in this quickstart.
61
61
62
62
Before we dive in the code, you need a way to reference your workspace. The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning.
63
63
64
-
You'll create `ml_client` for a handle to the workspace. You'll then use `ml_client` to manage resources and jobs.
64
+
You create `ml_client` for a handle to the workspace. You then use `ml_client` to manage resources and jobs.
65
65
66
66
In the next cell, enter your Subscription ID, Resource Group name and Workspace name. To find these values:
67
67
68
68
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.
70
-
1. You'll need to copy one value, close the area and paste, then come back for the next one.
69
+
1. Copy the value for workspace, resource group and subscription ID into the code.
70
+
1. You need to copy one value, close the area and paste, then come back for the next one.
71
71
72
72
:::image type="content" source="media/tutorial-azure-ml-in-a-day/find-credentials.png" alt-text="Screenshot: find the credentials for your code in the upper right of the toolbar.":::
This script handles the preprocessing of the data, splitting it into test and train data. It then consumes this data to train a tree based model and return the output model.
119
119
120
-
[MLFlow](how-to-log-mlflow-models.md)will be used to log the parameters and metrics during our pipeline run.
120
+
[MLFlow](how-to-log-mlflow-models.md)is used to log the parameters and metrics during our pipeline run.
121
121
122
122
The cell below uses IPython magic to write the training script into the directory you just created.
123
123
@@ -235,13 +235,13 @@ You might need to select **Refresh** to see the new folder and script in your **
235
235
236
236
## Configure the command
237
237
238
-
Now that you have a script that can perform the desired tasks, and a compute cluster to run the script, you'll use a general purpose **command** that can run command line actions. This command line action can directly call system commands or run a script.
238
+
Now that you have a script that can perform the desired tasks, and a compute cluster to run the script, you use a general purpose **command** that can run command line actions. This command line action can directly call system commands or run a script.
239
239
240
-
Here, you'll create input variables to specify the input data, split ratio, learning rate and registered model name. The command script will:
241
-
* Use an *environment* that defines software and runtime libraries needed for the training script. Azure Machine Learning provides many curated or ready-made environments, which are useful for common training and inference scenarios. You'll use one of those environments here. In [Tutorial: Train a model in Azure Machine Learning](tutorial-train-model.md), you'll learn how to create a custom environment.
240
+
Here, you create input variables to specify the input data, split ratio, learning rate and registered model name. The command script will:
241
+
* Use an *environment* that defines software and runtime libraries needed for the training script. Azure Machine Learning provides many curated or ready-made environments, which are useful for common training and inference scenarios. You use one of those environments here. In [Tutorial: Train a model in Azure Machine Learning](tutorial-train-model.md), you learn how to create a custom environment.
242
242
* Configure the command line action itself - `python main.py` in this case. The inputs/outputs are accessible in the command via the `${{ ... }}` notation.
243
243
* In this sample, we access the data from a file on the internet.
244
-
* Since a compute resource was not specified, the script will be run on a [serverless compute cluster](how-to-use-serverless-compute.md) that is automatically created.
244
+
* Since a compute resource wasn't specified, the script is run on a [serverless compute cluster](how-to-use-serverless-compute.md) that is automatically created.
245
245
246
246
247
247
```python
@@ -269,7 +269,7 @@ job = command(
269
269
270
270
## Submit the job
271
271
272
-
It's now time to submit the job to run in Azure Machine Learning. This time you'll use `create_or_update` on `ml_client`.
272
+
It's now time to submit the job to run in Azure Machine Learning. This time you use `create_or_update` on `ml_client`.
View the job in Azure Machine Learning studio by selecting the link in the output of the previous cell.
282
282
283
-
The output of this job will look like this in the Azure Machine Learning studio. Explore the tabs for various details like metrics, outputs etc. Once completed, the job will register a model in your workspace as a result of training.
283
+
The output of this job looks like this in the Azure Machine Learning studio. Explore the tabs for various details like metrics, outputs etc. Once completed, the job registers a model in your workspace as a result of training.
284
284
285
285
:::image type="content" source="media/tutorial-azure-ml-in-a-day/view-job.gif" alt-text="Screenshot shows the overview page for the job.":::
286
286
@@ -291,11 +291,11 @@ The output of this job will look like this in the Azure Machine Learning studio.
291
291
292
292
Now deploy your machine learning model as a web service in the Azure cloud, an [`online endpoint`](concept-endpoints.md).
293
293
294
-
To deploy a machine learning service, you'll use the model you registered.
294
+
To deploy a machine learning service, you use the model you registered.
295
295
296
296
## Create a new online endpoint
297
297
298
-
Now that you have a registered model, it's time to create your online endpoint. The endpoint name needs to be unique in the entire Azure region. For this tutorial, you'll create a unique name using [`UUID`](https://en.wikipedia.org/wiki/Universally_unique_identifier).
298
+
Now that you have a registered model, it's time to create your online endpoint. The endpoint name needs to be unique in the entire Azure region. For this tutorial, you create a unique name using [`UUID`](https://en.wikipedia.org/wiki/Universally_unique_identifier).
299
299
300
300
301
301
```python
@@ -349,9 +349,9 @@ print(
349
349
350
350
## Deploy the model to the endpoint
351
351
352
-
Once the endpoint is created, deploy the model with the entry script. Each endpoint can have multiple deployments. Direct traffic to these deployments can be specified using rules. Here you'll create a single deployment that handles 100% of the incoming traffic. We have chosen a color name for the deployment, for example, *blue*, *green*, *red* deployments, which is arbitrary.
352
+
Once the endpoint is created, deploy the model with the entry script. Each endpoint can have multiple deployments. Direct traffic to these deployments can be specified using rules. Here you create a single deployment that handles 100% of the incoming traffic. We chose a color name for the deployment, for example, *blue*, *green*, *red* deployments, which is arbitrary.
353
353
354
-
You can check the **Models** page on Azure Machine Learning studio, to identify the latest version of your registered model. Alternatively, the code below will retrieve the latest version number for you to use.
354
+
You can check the **Models** page on Azure Machine Learning studio, to identify the latest version of your registered model. Alternatively, the code below retrieves the latest version number for you to use.
355
355
356
356
357
357
```python
@@ -362,7 +362,7 @@ latest_model_version = max(
362
362
print(f'Latest model is version "{latest_model_version}" ')
If you're not going to use the endpoint, delete it to stop using the resource. Make sure no other deployments are using an endpoint before you delete it.
431
+
If you're not going to use the endpoint, delete it to stop using the resource. Make sure no other deployments are using an endpoint before you delete it.
432
432
433
433
434
434
> [!NOTE]
@@ -461,7 +461,7 @@ Now that you have an idea of what's involved in training and deploying a model,
461
461
462
462
|Tutorial |Description |
463
463
|---------|---------|
464
-
|[Upload, access and explore your data in Azure Machine Learning](tutorial-explore-data.md)| Store large data in the cloud and retrieve it from notebooks and scripts |
464
+
|[Upload, access, and explore your data in Azure Machine Learning](tutorial-explore-data.md)| Store large data in the cloud and retrieve it from notebooks and scripts |
465
465
|[Model development on a cloud workstation](tutorial-cloud-workstation.md)| Start prototyping and developing machine learning models |
466
466
|[Train a model in Azure Machine Learning](tutorial-train-model.md)| Dive in to the details of training a model |
467
467
|[Deploy a model as an online endpoint](tutorial-deploy-model.md)| Dive in to the details of deploying a model |
0 commit comments