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
Copy file name to clipboardExpand all lines: articles/machine-learning/tutorial-designer-automobile-price-deploy.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,6 @@ To deploy your pipeline, you must first convert the training pipeline into a rea
52
52
53
53
1. Select **Run**, and use the same compute target and experiment that you used in part one.
54
54
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").
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.
21
19
22
20
In part one of the tutorial, you'll learn how to:
23
21
@@ -28,7 +26,7 @@ In part one of the tutorial, you'll learn how to:
28
26
> * Train a machine learning model.
29
27
> * Evaluate a machine learning model.
30
28
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.
32
30
33
31
> [!NOTE]
34
32
>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
37
35
38
36
## Create a new pipeline
39
37
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.
41
41
42
42
### Create a new workspace
43
43
@@ -55,7 +55,7 @@ If you have an Azure Machine Learning workspace with an Enterprise edition, [ski
55
55
56
56
1. Select **Easy-to-use prebuilt modules**.
57
57
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.
59
59
60
60
## Import data
61
61
@@ -105,7 +105,7 @@ When you train a model, you have to do something about the data that's missing.
105
105
106
106
1. Select the **Select Columns in Dataset** module.
107
107
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**.
109
109
110
110
1. Select the **+** to add a new rule.
111
111
@@ -116,12 +116,12 @@ When you train a model, you have to do something about the data that's missing.
116
116
1. In the lower right, select **Save** to close the column selector.
117
117
118
118

119
-
120
-
The properties pane shows that the **normalized-losses** column is excluded.
121
119
122
120
1. Select the **Select Columns in Dataset** module.
123
121
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.
125
125
126
126
### Clean missing data
127
127
@@ -144,31 +144,30 @@ Your dataset still has missing values after you remove the **normalized-losses**
144
144
145
145
## Train a machine learning model
146
146
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.
152
148
153
149
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.
154
150
155
151
### Split the data
156
152
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.
158
156
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.
160
159
161
160
1. Select the **Split Data** module.
162
161
163
162
1. In the properties pane, set the **Fraction of rows in the first output dataset** to 0.7.
164
163
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.
166
165
167
166
1. In the properties pane **Comment** box, enter *Split the dataset into training set (0.7) and test set (0.3)*.
168
167
169
168
### Train the model
170
169
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.
172
171
173
172
1. To select the learning algorithm, clear your module palette search box.
174
173
@@ -183,6 +182,9 @@ Train the model by giving it a set of data that includes the price. The model sc
183
182
1. Connect the output of the **Linear Regression** module to the left input of the **Train Model** module.
184
183
185
184
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.
186
188
187
189

188
190
@@ -192,20 +194,24 @@ Train the model by giving it a set of data that includes the price. The model sc
192
194
193
195
1. In the **Label column** dialog box, expand the drop-down menu and select **Column names**.
194
196
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.
196
198
197
199
Your pipeline should look like this:
198
200
199
201

200
202
201
-
## Evaluate a machine learning model
203
+
## Score a machine learning model
202
204
203
205
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.
204
206
205
207
1. Enter *score model* in the search box to find the **Score Model** module. Drag the module to the pipeline canvas.
206
208
207
209
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**.
208
210
211
+
## Evaluate a machine learning model
212
+
213
+
Use the **Evaluate Model** module to evaluate how well your model scored the test dataset.
214
+
209
215
1. Enter *evaluate* in the search box to find the **Evaluate Model** module. Drag the module to the pipeline canvas.
210
216
211
217
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
214
220
215
221

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.
224
230
225
231
1. Select the **Score Model** module to view its output.
226
232
227
-
1. In the properties pane, select **Outputs** > **Visualize**.
233
+
1. In the properties pane, select **Outputs** > graph icon  to view results.
228
234
229
235
Here you can see the predicted prices and the actual prices from the testing data.
230
236
231
237

232
238
239
+
### Evaluate models
240
+
241
+
Use the **Evaluate Model** to see how well the trained model performed on the test dataset.
242
+
233
243
1. Select the **Evaluate Model** module to view its output.
234
244
235
-
1. In the properties pane, select **Output** > **Visualize**.
245
+
1. In the properties pane, select **Output** > graph icon  to view results.
236
246
237
247
The following statistics are shown for your model:
0 commit comments