Skip to content

Commit 14ecdfd

Browse files
Merge pull request #109460 from PeterCLu/plu-designer-updates
Designer updates
2 parents c58aff6 + bf74801 commit 14ecdfd

File tree

6 files changed

+45
-13
lines changed

6 files changed

+45
-13
lines changed

articles/machine-learning/how-to-debug-pipelines.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.date: 03/18/2020
1717
In this article, you learn how to debug and troubleshoot [machine learning pipelines](concept-ml-pipelines.md) in the [Azure Machine Learning SDK](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py) and [Azure Machine Learning designer (preview)](https://docs.microsoft.com/azure/machine-learning/concept-designer). Information is provided on how to:
1818

1919
* Debug using the Azure Machine Learning SDK
20-
* Debug using the Azure Machine Learning Designer
20+
* Debug using the Azure Machine Learning designer
2121
* Debug using Application Insights
2222
* Debug interactively using Visual Studio Code (VS Code) and the Python Tools for Visual Studio (PTVSD)
2323

@@ -88,7 +88,7 @@ The table below provides information for different debug options for pipelines.
8888
| Library | Type | Example | Destination | Resources |
8989
|----------------------------|--------|------------------------------------------------------------------|----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
9090
| Azure Machine Learning SDK | Metric | `run.log(name, val)` | Azure Machine Learning Portal UI | [How to track experiments](how-to-track-experiments.md#available-metrics-to-track)<br>[azureml.core.Run class](https://docs.microsoft.com/python/api/azureml-core/azureml.core.run(class)?view=experimental) |
91-
| Python printing/logging | Log | `print(val)`<br>`logging.info(message)` | Driver logs, Azure Machine Learning Designer | [How to track experiments](how-to-track-experiments.md#available-metrics-to-track)<br><br>[Python logging](https://docs.python.org/2/library/logging.html) |
91+
| Python printing/logging | Log | `print(val)`<br>`logging.info(message)` | Driver logs, Azure Machine Learning designer | [How to track experiments](how-to-track-experiments.md#available-metrics-to-track)<br><br>[Python logging](https://docs.python.org/2/library/logging.html) |
9292
| OpenCensus Python | Log | `logger.addHandler(AzureLogHandler())`<br>`logging.log(message)` | Application Insights - traces | [Debug pipelines in Application Insights](how-to-debug-pipelines-application-insights.md)<br><br>[OpenCensus Azure Monitor Exporters](https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-azure)<br>[Python logging cookbook](https://docs.python.org/3/howto/logging-cookbook.html) |
9393

9494
#### Logging options example
@@ -133,8 +133,8 @@ For pipelines created in the designer, you can find the **log files** on either
133133
When you submit a pipeline run and stay in the authoring page, you can find the log files generated for each module.
134134

135135
1. Select any module in the authoring canvas.
136-
1. In the right pane of the module, go to the **Outputs+ogs** tab.
137-
1. Select the log file `70_driver_log.txt`
136+
1. In the right pane of the module, go to the **Outputs + logs** tab.
137+
1. Select the log file `70_driver_log.txt`.
138138

139139
![Authoring page module logs](./media/how-to-debug-pipelines/pipelinerun-05.png)
140140

@@ -145,8 +145,8 @@ You can also find the log files of specific runs in the pipeline run detail page
145145
1. Select a pipeline run created in the designer.
146146
![Pipeline run page](./media/how-to-debug-pipelines/pipelinerun-04.png)
147147
1. Select any module in the preview pane.
148-
1. In the right pane of the module, go to the **Outputs+ogs** tab.
149-
1. Select the log file `70_driver_log.txt`
148+
1. In the right pane of the module, go to the **Outputs + logs** tab.
149+
1. Select the log file `70_driver_log.txt`.
150150

151151
## Debug and troubleshoot in Application Insights
152152
For more information on using the OpenCensus Python library in this manner, see this guide: [Debug and troubleshoot machine learning pipelines in Application Insights](how-to-debug-pipelines-application-insights.md)

articles/machine-learning/how-to-retrain-designer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ To retrain a model, you need an initial model. In this section, you learn how to
4949
For this example, the data is stored in an [Azure datastore](how-to-access-data.md). If you don't already have a datastore, you can create one now by selecting **New datastore**.
5050

5151
1. Specify the path to your data. You can also select **Browse path** to browse to your datastore.
52-
1. Select **Run** at the top of the canvas.
52+
1. Select **Submit** at the top of the canvas.
5353

5454
> [!NOTE]
5555
> If you have already set a default compute for this pipeline draft, the pipeline will run automatically. Otherwise, you can follow the prompts on the settings pane to set one now.
5656
5757
### Find your trained model
5858

59-
The designer saves all pipeline outputs, including trained models, to the default storage account. You can also access the trained model directly in the designer:
59+
The designer saves all pipeline outputs, including trained models, to the default storage account. However, you can also access trained models directly in the designer:
6060

6161
1. Wait for the pipeline to finish running.
6262
1. Select the **Train Model** module.

articles/machine-learning/samples-designer.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: sample
99

1010
author: peterclu
1111
ms.author: peterlu
12-
ms.date: 03/10/2020
12+
ms.date: 03/29/2020
1313
---
1414
# Designer sample pipelines
1515

@@ -25,6 +25,8 @@ Use the built-in examples in Azure Machine Learning designer to quickly get star
2525

2626
The designer saves a copy of the sample pipelines to your studio workspace. You can edit the pipeline to adapt it to your needs and save it as your own. Use them as a starting point to jumpstart your projects.
2727

28+
### Open a sample pipeline
29+
2830
1. Sign in to <a href="https://ml.azure.com?tabs=jre" target="_blank">ml.azure.com</a>, and select the workspace you want to work with.
2931

3032
1. Select **Designer**.
@@ -33,6 +35,31 @@ The designer saves a copy of the sample pipelines to your studio workspace. You
3335

3436
Select **Show more samples** for a complete list of samples.
3537

38+
### Submit a pipeline run
39+
40+
To run a pipeline, you first have to set default compute target to run the pipeline on.
41+
42+
1. In the **Settings** pane to the right of the canvas, select **Select compute target**.
43+
44+
1. In the dialog that appears, select an existing compute target or create a new one. Select **Save**.
45+
46+
1. Select **Submit** at the top of the canvas to submit a pipeline run.
47+
48+
Depending on the sample pipeline and compute settings, runs may take some time to complete. The default compute settings have a minimum node size of 0, which means that the designer must allocate resources after being idle. Repeated pipeline runs will take less time since the compute resources are already allocated. Additionally, the designer uses cached results for each module to further improve efficiency.
49+
50+
51+
### Review the results
52+
53+
After the pipeline finishes running, you can review the pipeline and view the output for each module to learn more.
54+
55+
Use the following steps to view module outputs:
56+
57+
1. Select a module in the canvas.
58+
59+
1. In the module details pane to the right of the canvas, select **Outputs + logs**. Select the graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to see the results of each module.
60+
61+
Use the samples as starting points for some of the most common machine learning scenarios.
62+
3663
## Regression samples
3764

3865
Learn more about the built-in regression samples.

articles/machine-learning/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
- name: Trigger a pipeline
356356
href: how-to-trigger-published-pipeline.md
357357
- name: Debug & troubleshoot pipelines
358+
displayName: designer
358359
href: how-to-debug-pipelines.md
359360
- name: Debug pipelines in Application Insights
360361
displayname: pipelines, log, monitor

articles/machine-learning/tutorial-designer-automobile-price-deploy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ To deploy your pipeline, you must first convert the training pipeline into a rea
5454
5555
1. Select **Submit**, and use the same compute target and experiment that you used in part one.
5656

57+
If is the first run, it may take up to 20 minutes for your pipeline to finish running. The default compute settings have a minimum node size of 0, which means that the designer must allocate resources after being idle. Repeated pipeline runs will take less time since the compute resources are already allocated. Additionally, the designer uses cached results for each module to further improve efficiency.
58+
5759
1. Select **Deploy**.
5860

5961
## Create an inferencing cluster

articles/machine-learning/tutorial-designer-automobile-price-train-score.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can visualize the data to understand the dataset that you'll use.
9999

100100
1. Select the **Automobile price data (Raw)** module.
101101

102-
1. In the module details pane to the right of the canvas, select **Outputs**.
102+
1. In the module details pane to the right of the canvas, select **Outputs + log**.
103103

104104
1. Select the graph icon to visualize the data.
105105

@@ -265,7 +265,7 @@ Use the **Evaluate Model** module to evaluate how well your model scored the tes
265265

266266
## Submit the pipeline
267267

268-
Now that your pipeline is all setup, you can submit a pipeline run to train your machine learning model. You can submit a pipeline run at any point while building pipelines in the designer. You can do this to check your work as you go to verify your pipeline works as expected.
268+
Now that your pipeline is all setup, you can submit a pipeline run to train your machine learning model. You can submit a valid pipeline run at any point, which can be used to review changes to your pipeline during development.
269269

270270
1. At the top of the canvas, select **Submit**.
271271

@@ -279,14 +279,16 @@ Now that your pipeline is all setup, you can submit a pipeline run to train your
279279
1. Select **Submit**.
280280

281281
You can view run status and details at the top right of the canvas.
282+
283+
If is the first run, it may take up to 20 minutes for your pipeline to finish running. The default compute settings have a minimum node size of 0, which means that the designer must allocate resources after being idle. Repeated pipeline runs will take less time since the compute resources are already allocated. Additionally, the designer uses cached results for each module to further improve efficiency.
282284

283285
### View scored labels
284286

285287
After the run completes, you can view the results of the pipeline run. First, look at the predictions generated by the regression model.
286288

287289
1. Select the **Score Model** module to view its output.
288290

289-
1. In the module details pane to the right of the canvas, select **Outputs** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
291+
1. In the module details pane to the right of the canvas, select **Outputs + logs** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
290292

291293
Here you can see the predicted prices and the actual prices from the testing data.
292294

@@ -298,7 +300,7 @@ Use the **Evaluate Model** to see how well the trained model performed on the te
298300

299301
1. Select the **Evaluate Model** module to view its output.
300302

301-
1. In the module details pane to the right of the canvas, select **Output** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
303+
1. In the module details pane to the right of the canvas, select **Outputs + logs** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
302304

303305
The following statistics are shown for your model:
304306

0 commit comments

Comments
 (0)