Skip to content

Commit 373b7f4

Browse files
committed
edits
1 parent fcc79b8 commit 373b7f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/machine-learning/v1/how-to-auto-train-models-v1.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: UpdateFrequency5, devx-track-python, automl, sdkv1
1515
#customer intent: As a developer, I want to train a regression model with Automated ML, so I can use the Azure Machine Learning Python SDK.
1616
---
1717

18-
# Train a regression model with Automated ML and Python (SDK v1)
18+
# Train regression model with Automated ML and Python (SDK v1)
1919

2020
[!INCLUDE [sdk v1](../includes/machine-learning-sdk-v1.md)]
2121

@@ -170,7 +170,7 @@ ws = Workspace.from_config()
170170

171171
The `ws` object is used throughout the rest of the code in this tutorial.
172172

173-
## Split the data into train and test sets
173+
## Split data into train and test sets
174174

175175
Split the data into training and test sets by using the `train_test_split` function in the _scikit-learn_ library. This function segregates the data into the x (**features**) data set for model training and the y (**values to predict**) data set for testing.
176176

@@ -186,7 +186,7 @@ x_train, x_test = train_test_split(final_df, test_size=0.2, random_state=223)
186186

187187
The purpose of this step is to prepare data points to test the finished model that aren't used to train the model. These points are used to measure true accuracy. A well-trained model is one that can make accurate predictions from unseen data. You now have data prepared for autotraining a machine learning model.
188188

189-
## Automatically train a model
189+
## Automatically train model
190190

191191
To automatically train a model, take the following steps:
192192

@@ -239,7 +239,7 @@ automl_config = AutoMLConfig(task='regression',
239239
> [!NOTE]
240240
> Automated ML pre-processing steps (feature normalization, handling missing data, converting text to numeric, and so on) become part of the underlying model. When you use the model for predictions, the same pre-processing steps applied during training are applied to your input data automatically.
241241
242-
### Train the automatic regression model
242+
### Train automatic regression model
243243

244244
Create an experiment object in your workspace. An experiment acts as a container for your individual jobs. Pass the defined `automl_config` object to the experiment, and set the output to _True_ to view progress during the job.
245245

@@ -294,7 +294,7 @@ BEST: The best observed score thus far.
294294
19 StackEnsemble 0:00:27 0.9463 0.9471
295295
```
296296

297-
## Explore the results
297+
## Explore results
298298

299299
Explore the results of automatic training with a [Jupyter widget](/python/api/azureml-widgets/azureml.widgets). The widget allows you to see a graph and table of all individual job iterations, along with training accuracy metrics and metadata. Additionally, you can filter on different accuracy metrics than your primary metric with the dropdown selector.
300300

@@ -313,7 +313,7 @@ The plot chart for the Jupyter widget:
313313

314314
:::image type="content" source="./media/how-to-auto-train-models/automl-chart-output.png" alt-text="Screenshot that shows the Jupyter widget plot diagram in Azure Machine Learning studio." lightbox="./media/how-to-auto-train-models/automl-chart-output.png":::
315315

316-
### Retrieve the best model
316+
### Retrieve best model
317317

318318
The following code lets you select the best model from your iterations. The `get_output` function returns the best run and the fitted model for the last fit invocation. By using the overloads on the `get_output` function, you can retrieve the best run and fitted model for any logged metric or a particular iteration.
319319

@@ -323,7 +323,7 @@ print(best_run)
323323
print(fitted_model)
324324
```
325325

326-
### Test the best model accuracy
326+
### Test best model accuracy
327327

328328
Use the best model to run predictions on the test data set to predict taxi fares. The `predict` function uses the best model and predicts the values of y, **trip cost**, from the `x_test` data set.
329329

0 commit comments

Comments
 (0)