Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f03a21

Browse files
committedMay 11, 2022
blanca's changes
1 parent eb19b27 commit 9f03a21

17 files changed

+18
-17
lines changed
 

‎articles/machine-learning/how-to-create-component-pipeline-python.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In this article, you learn how to build an [Azure Machine Learning pipeline](con
2020

2121
The example trains a small [Keras](https://keras.io/) convolutional neural network to classify images in the [Fashion MNIST](https://github.com/zalandoresearch/fashion-mnist) dataset. The pipeline looks like following.
2222

23-
:::image type="content" source="./media/how-to-create-component-pipeline-python-v2/pipeline-graph.png" alt-text="Screenshot showing pipeline graph of the image classification Keras example." lightbox ="./media/how-to-create-component-pipeline-python-v2/pipeline-graph.png":::
23+
:::image type="content" source="./media/how-to-create-component-pipeline-python/pipeline-graph.png" alt-text="Screenshot showing pipeline graph of the image classification Keras example." lightbox ="./media/how-to-create-component-pipeline-python/pipeline-graph.png":::
2424

2525

2626
In this article, you complete the following tasks:
@@ -53,7 +53,7 @@ If you don't have an Azure subscription, create a free account before you begin.
5353

5454
This article uses the Python SDK for Azure ML to create and control an Azure Machine Learning pipeline. The article assumes that you'll be running the code snippets interactively in either a Python REPL environment or a Jupyter notebook.
5555

56-
This article is based on the `image_classification_keras_minist_convnet.ipynb` notebook found in the `sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet` directory of the [AzureML Examples](https://github.com/azure/azureml-examples) repository.
56+
This article is based on the [image_classification_keras_minist_convnet.ipynb](https://github.com/Azure/azureml-examples/blob/sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/image_classification_keras_minist_convnet.ipynb) notebook found in the `sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet` directory of the [AzureML Examples](https://github.com/azure/azureml-examples) repository.
5757

5858
## Import required libraries
5959

@@ -103,8 +103,7 @@ If you're following along with the example in the [AzureML Examples repo](https:
103103
104104
By using command_component() function as a decorator, you can easily define the component's interface, metadata and code to execute from a python function. Each decorated Python function will be transformed into a single static specification (YAML) that the pipeline service can process.
105105

106-
107-
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/prep_dsl_component.py":::
106+
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/prep_component.py":::
108107

109108
The code above define a component with display name `Prep Data` using `@command_component` decorator:
110109

@@ -122,14 +121,13 @@ Following is what a component looks like in the studio UI.
122121
- A component is a block in a pipeline graph.
123122
- The `input_data`, `training_data` and `test_data` are ports of the component, which connects to other components for data streaming.
124123
125-
:::image type="content" source="./media/how-to-create-component-pipeline-python-v2/prep-data-component.png" alt-text="Screenshot of the Prep Data component in the UI and code." lightbox ="./media/how-to-create-component-pipeline-python-v2/prep-data-component.png":::
124+
:::image type="content" source="./media/how-to-create-component-pipeline-python/prep-data-component.png" alt-text="Screenshot of the Prep Data component in the UI and code." lightbox ="./media/how-to-create-component-pipeline-python/prep-data-component.png":::
126125
127126
#### Specify component run-time environment
128127
129128
You'll need to modify the runtime environment in which your component runs.
130129

131-
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/prep_dsl_component.py" range="5-10":::
132-
130+
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/prep_component.py" range="5-10":::
133131

134132
The above code creates an object of `Environment` class, which represents the runtime environment in which the component runs.
135133

@@ -161,7 +159,7 @@ The `train.py` file contains a normal python function, which performs the traini
161159

162160
After defining the training function successfully, you can use @command_component in Azure Machine Learning SDK v2 to wrap your function as a component, which can be used in AML pipelines.
163161

164-
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/train/train_dsl_component.py":::
162+
:::code language="python" source="~/azureml-examples-sdk-preview/sdk/jobs/pipelines/2e_image_classification_keras_minist_convnet/train/train_component.py":::
165163

166164
The code above define a component with display name `Train Image Classification Keras` using `@command_component`:
167165

@@ -175,7 +173,6 @@ The train-model component has a slightly more complex configuration than the pre
175173
176174
Now, you've prepared all source files for the `Train Image Classification Keras` component.
177175
178-
179176
### Create the score-model component
180177
181178
In this section, other than the previous components, you'll create a component to score the trained model via Yaml specification and script.
@@ -303,9 +300,9 @@ You can monitor the pipeline run by opening the link or you can block until it c
303300
304301
You can open the `Link to Azure Machine Learning studio`, which is the job detail page of your pipeline. You'll see the pipeline graph like following.
305302
306-
:::image type="content" source="./media/how-to-create-component-pipeline-python-v2/pipeline-ui.png" alt-text="Screenshot of the pipeline job detail page." lightbox ="./media/how-to-create-component-pipeline-python-v2/pipeline-ui.png":::
303+
:::image type="content" source="./media/how-to-create-component-pipeline-python/pipeline-ui.png" alt-text="Screenshot of the pipeline job detail page." lightbox ="./media/how-to-create-component-pipeline-python/pipeline-ui.png":::
307304
308-
You can check the logs and outputs of each component by right clicking the component, or select the component to open its detail pane. To learn more about how to debug your pipeline in UI, you can refer to [this article](how-to-use-pipeline-ui.md).
305+
You can check the logs and outputs of each component by right clicking the component, or select the component to open its detail pane. To learn more about how to debug your pipeline in UI, see [How to use studio UI to build and debug Azure ML pipelines](how-to-use-pipeline-ui.md).
309306
310307
## (Optional) Register components to workspace
311308

‎articles/machine-learning/how-to-create-component-pipelines-ui.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In this article, you'll learn how to create and run [machine learning pipelines]
3838
3939
## Register component in your workspace
4040
41-
To build pipeline using components in UI, you need to register components to your workspace first. You can use CLI or SDK to register components to your workspace, so that you can share and resue the component within the workspace. Registered components support automatic versioning so you can update the component but assure that pipelines that require an older version will continue to work.
41+
To build pipeline using components in UI, you need to register components to your workspace first. You can use CLI or SDK to register components to your workspace, so that you can share and reuse the component within the workspace. Registered components support automatic versioning so you can update the component but assure that pipelines that require an older version will continue to work.
4242
4343
In the example below take using CLI for example. If you want to learn more about how to build a component, see [Create and run pipelines using components with CLI](how-to-create-component-pipelines-cli.md).
4444
@@ -58,16 +58,20 @@ In the example below take using CLI for example. If you want to learn more about
5858
5959
## Create pipeline using registered component
6060
61-
1. Create a new pipeline in the designer. You can change the pipeline name.
61+
1. Create a new pipeline in the designer.
62+
63+
:::image type="content" source="./media/how-to-create-component-pipelines-ui/new-pipeline.png" alt-text="Screenshot showing creating new pipeline in designer homepage." lightbox ="./media/how-to-create-component-pipelines-ui/new-pipeline.png":::
6264
6365
1. Set the default compute target of the pipeline.
6466
65-
Next to the pipeline name, select the **Gear icon** ![Screenshot of the gear icon that is in the UI.](./media/tutorial-designer-automobile-price-train-score/gear-icon.png) at the top of the canvas to open the **Settings** pane. Select the default compute target for your pipeline.
67+
Select the **Gear icon** ![Screenshot of the gear icon that is in the UI.](./media/tutorial-designer-automobile-price-train-score/gear-icon.png) at the top right of the canvas to open the **Settings** pane. Select the default compute target for your pipeline.
68+
69+
:::image type="content" source="./media/how-to-create-component-pipelines-ui/set-default-compute.png" alt-text="Screenshot showing setting default compute for the pipeline." lightbox ="./media/how-to-create-component-pipelines-ui/set-default-compute.png":::
6670
6771
> [!Important]
6872
> Attached compute is not supported, use [compute instances or clusters](concept-compute-target.md#azure-machine-learning-compute-managed) instead.
6973
70-
1. In asset library, you can see the components registered from previous section.
74+
1. In asset library, you can see **Data assets** and **Components** tabs. Switch to **Components** tab, you can see the components registered from previous section.
7175
7276
:::image type="content" source="./media/how-to-create-component-pipelines-ui/asset-library.png" alt-text="Screenshot showing registered component in asset library." lightbox ="./media/how-to-create-component-pipelines-ui/asset-library.png":::
7377

‎articles/machine-learning/how-to-use-pipeline-ui.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This article will introduce how to use the studio UI to build and debug machine
2323

2424
### Drag and drop components to build pipeline
2525

26-
In the designer homepage, you can select "New" to open a blank pipeline draft.
26+
In the designer homepage, you can select **New pipeline** to open a blank pipeline draft.
2727

2828
In the asset library left of the canvas, there are **Data assets** and **Components** tabs, which contain components and data registered to the workspace. For what is component and how to create custom component, you can refer to the [component concept article](concept-component.md).
2929

@@ -73,7 +73,7 @@ You can filter failed or completed nodes, and filter by only components or datas
7373

7474
:::image type="content" source="./media/how-to-use-pipeline-ui/quick-filter.png" alt-text="Screenshot showing the quick filter by in outline > search." lightbox= "./media/how-to-use-pipeline-ui/quick-filter.png":::
7575

76-
You can also sort the filter nodes.
76+
You can also sort the filtered nodes.
7777

7878
:::image type="content" source="./media/how-to-use-pipeline-ui/sort.png" alt-text="Screenshot of sorting search result in outline > search." lightbox= "./media/how-to-use-pipeline-ui/sort.png":::
7979

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.