Skip to content

Commit ff7a05d

Browse files
authored
Merge pull request #102099 from PeterCLu/plu-tutorial-updates
Update designer tutorial
2 parents 94bb5d7 + 39d4b51 commit ff7a05d

File tree

5 files changed

+36
-30
lines changed

5 files changed

+36
-30
lines changed
-67 Bytes
Loading
-89.4 KB
Loading
427 Bytes
Loading

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ To deploy your pipeline, you must first convert the training pipeline into a rea
5252
5353
1. Select **Run**, and use the same compute target and experiment that you used in part one.
5454

55-
1. Select the **Score Model** module.
56-
57-
1. In the properties pane, select **Outputs** > **Visualize** to verify the model is still working. You can see the original data is displayed along with the predicted price ("Scored Labels").
58-
5955
1. Select **Deploy**.
6056

6157
## Create an inferencing cluster

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

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ ms.date: 11/04/2019
1515
# Tutorial: Predict automobile price with the designer (preview)
1616
[!INCLUDE [applies-to-skus](../../includes/aml-applies-to-enterprise-sku.md)]
1717

18-
In this two-part tutorial, you learn how to use the Azure Machine Learning designer to develop and deploy a predictive analytics solution that predicts the price of any car.
19-
20-
In part one, you set up your environment, drag modules onto an interactive canvas, and connect them together to create an Azure Machine Learning pipeline.
18+
In this two-part tutorial, you learn how to use the Azure Machine Learning designer to develop and deploy a predictive analytics solution that predicts the price of any car.
2119

2220
In part one of the tutorial, you'll learn how to:
2321

@@ -28,7 +26,7 @@ In part one of the tutorial, you'll learn how to:
2826
> * Train a machine learning model.
2927
> * Evaluate a machine learning model.
3028
31-
In [part two](tutorial-designer-automobile-price-deploy.md) of the tutorial, you'll learn how to deploy your predictive model as a real-time inferencing endpoint to predict the price of any car based on technical specifications you send it.
29+
In [part two](tutorial-designer-automobile-price-deploy.md) of the tutorial, you'll deploy your model as a real-time inferencing endpoint to predict the price of any car based on technical specifications you send it.
3230

3331
> [!NOTE]
3432
>A completed version of this tutorial is available as a sample pipeline.
@@ -37,7 +35,9 @@ In [part two](tutorial-designer-automobile-price-deploy.md) of the tutorial, you
3735
3836
## Create a new pipeline
3937

40-
Azure Machine Learning pipelines organize multiple, dependent machine learning and data processing steps into a single resource. Pipelines help you organize, manage, and reuse complex machine learning workflows across projects and users. To create an Azure Machine Learning pipeline, you need an Azure Machine Learning workspace. In this section, you learn how to create both these resources.
38+
Azure Machine Learning pipelines organize multiple machine learning and data processing steps into a single resource. Pipelines let you organize, manage, and reuse complex machine learning workflows across projects and users.
39+
40+
To create an Azure Machine Learning pipeline, you need an Azure Machine Learning workspace. In this section, you learn how to create both these resources.
4141

4242
### Create a new workspace
4343

@@ -55,7 +55,7 @@ If you have an Azure Machine Learning workspace with an Enterprise edition, [ski
5555

5656
1. Select **Easy-to-use prebuilt modules**.
5757

58-
1. Select the default pipeline name **Pipeline-Created-on** at the top of the canvas. Rename it to something meaningful. An example is *Automobile price prediction*. The name doesn't need to be unique.
58+
1. At the top of the canvas, select the default pipeline name **Pipeline-Created-on**. Rename it to *Automobile price prediction*. The name doesn't need to be unique.
5959

6060
## Import data
6161

@@ -105,7 +105,7 @@ When you train a model, you have to do something about the data that's missing.
105105

106106
1. Select the **Select Columns in Dataset** module.
107107

108-
1. In the properties pane to the right of the canvas, select **Parameters** > **Edit column**.
108+
1. In the properties pane to the right of the canvas, select **All columns**.
109109

110110
1. Select the **+** to add a new rule.
111111

@@ -116,12 +116,12 @@ When you train a model, you have to do something about the data that's missing.
116116
1. In the lower right, select **Save** to close the column selector.
117117

118118
![Exclude a column](./media/tutorial-designer-automobile-price-train-score/exclude-column.png)
119-
120-
The properties pane shows that the **normalized-losses** column is excluded.
121119

122120
1. Select the **Select Columns in Dataset** module.
123121

124-
1. In the properties pane, select **Parameters** > **Comment** and enter *Exclude normalized losses*.
122+
1. In the properties pane, select the **Comment** text box and enter *Exclude normalized losses*.
123+
124+
Comments will appear on the graph to help you organize your pipeline.
125125

126126
### Clean missing data
127127

@@ -144,31 +144,30 @@ Your dataset still has missing values after you remove the **normalized-losses**
144144

145145
## Train a machine learning model
146146

147-
Now that the data is processed, you can train a predictive model.
148-
149-
### Select an algorithm
150-
151-
*Classification* and *regression* are two types of supervised machine learning algorithms. Classification predicts an answer from a defined set of categories, such as a color like red, blue, or green. Regression is used to predict a number.
147+
Now that you have the modules in place to process the data, you can set up the training modules.
152148

153149
Because you want to predict price, which is a number, you can use a regression algorithm. For this example, you use a linear regression model.
154150

155151
### Split the data
156152

157-
Split your data into two separate datasets for training the model and testing it.
153+
Splitting data is a common task in machine learning. You will split your data into two separate datasets. One dataset will train the model and the other will test how well the model performed.
154+
155+
1. Enter **split data** in the search box to find the **Split Data** module. Connect the left port of the **Clean Missing Data** module to the **Split Data** module.
158156

159-
1. Enter **split data** in the search box to find the **Split Data** module. Connect it to the left port of the **Clean Missing Data** module.
157+
> [!IMPORTANT]
158+
> Be sure that the left output ports of **Clean Missing Data** connects to **Split Data**. The left port contains the the cleaned data. The right port contains the discarted data.
160159
161160
1. Select the **Split Data** module.
162161

163162
1. In the properties pane, set the **Fraction of rows in the first output dataset** to 0.7.
164163

165-
This option splits 70 percent of the data to train the model and 30 percent for testing it.
164+
This option splits 70 percent of the data to train the model and 30 percent for testing it. The 70 percent dataset will be accessible through the left output port. The remaining data will be available through the right output port.
166165

167166
1. In the properties pane **Comment** box, enter *Split the dataset into training set (0.7) and test set (0.3)*.
168167

169168
### Train the model
170169

171-
Train the model by giving it a set of data that includes the price. The model scans through the data and looks for correlations between a car's features and its price to construct a model.
170+
Train the model by giving it a dataset that includes the price. The algorithm constructs a model that explains the relationship between the features and the price as presented by the training data.
172171

173172
1. To select the learning algorithm, clear your module palette search box.
174173

@@ -183,6 +182,9 @@ Train the model by giving it a set of data that includes the price. The model sc
183182
1. Connect the output of the **Linear Regression** module to the left input of the **Train Model** module.
184183

185184
1. Connect the training data output (left port) of the **Split Data** module to the right input of the **Train Model** module.
185+
186+
> [!IMPORTANT]
187+
> Be sure that the left output ports of **Split Data** connects to **Train Model**. The left port contains the the training set. The right port contains the test set.
186188
187189
![Screenshot showing the correct configuration of the Train Model module. The Linear Regression module connects to left port of Train Model module and the Split Data module connects to right port of Train Model](./media/tutorial-designer-automobile-price-train-score/pipeline-train-model.png)
188190

@@ -192,20 +194,24 @@ Train the model by giving it a set of data that includes the price. The model sc
192194

193195
1. In the **Label column** dialog box, expand the drop-down menu and select **Column names**.
194196

195-
1. In the text box, enter *price*. Price is the value that your model is going to predict.
197+
1. In the text box, enter *price* to specify the value that your model is going to predict.
196198

197199
Your pipeline should look like this:
198200

199201
![Screenshot showing the correct configuration of the pipeline after adding the Train Model module.](./media/tutorial-designer-automobile-price-train-score/pipeline-train-graph.png)
200202

201-
## Evaluate a machine learning model
203+
## Score a machine learning model
202204

203205
After you train your model by using 70 percent of the data, you can use it to score the other 30 percent to see how well your model functions.
204206

205207
1. Enter *score model* in the search box to find the **Score Model** module. Drag the module to the pipeline canvas.
206208

207209
1. Connect the output of the **Train Model** module to the left input port of **Score Model**. Connect the test data output (right port) of the **Split Data** module to the right input port of **Score Model**.
208210

211+
## Evaluate a machine learning model
212+
213+
Use the **Evaluate Model** module to evaluate how well your model scored the test dataset.
214+
209215
1. Enter *evaluate* in the search box to find the **Evaluate Model** module. Drag the module to the pipeline canvas.
210216

211217
1. Connect the output of the **Score Model** module to the left input of **Evaluate Model**.
@@ -214,25 +220,29 @@ After you train your model by using 70 percent of the data, you can use it to sc
214220

215221
![Screenshot showing the correct configuration of the pipeline.](./media/tutorial-designer-automobile-price-train-score/pipeline-final-graph.png)
216222

217-
### Run the pipeline
223+
## Run the pipeline
218224

219225
[!INCLUDE [aml-ui-create-training-compute](../../includes/aml-ui-create-training-compute.md)]
220226

221-
### View results
227+
### View scored labels
222228

223-
After the run completes, you can view the results of the pipeline run.
229+
After the run completes, you can view the results of the pipeline run. First, look at the predictions generated by the regression model.
224230

225231
1. Select the **Score Model** module to view its output.
226232

227-
1. In the properties pane, select **Outputs** > **Visualize**.
233+
1. In the properties pane, select **Outputs** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
228234

229235
Here you can see the predicted prices and the actual prices from the testing data.
230236

231237
![Screenshot of the output visualization highlighting the Scored Label column](./media/tutorial-designer-automobile-price-train-score/score-result.png)
232238

239+
### Evaluate models
240+
241+
Use the **Evaluate Model** to see how well the trained model performed on the test dataset.
242+
233243
1. Select the **Evaluate Model** module to view its output.
234244

235-
1. In the properties pane, select **Output** > **Visualize**.
245+
1. In the properties pane, select **Output** > graph icon ![visualize icon](./media/tutorial-designer-automobile-price-train-score/visualize-icon.png) to view results.
236246

237247
The following statistics are shown for your model:
238248

0 commit comments

Comments
 (0)