Skip to content

Commit ebd2cf7

Browse files
committed
more updates
1 parent 159607e commit ebd2cf7

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

articles/iot-edge/tutorial-machine-learning-edge-04-train-model.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'In this tutorial, you will train a machine learning model using Az
44
author: kgremban
55
manager: philmea
66
ms.author: kgremban
7-
ms.date: 1/29/2020
7+
ms.date: 2/5/2020
88
ms.topic: tutorial
99
ms.service: iot-edge
1010
services: iot-edge
@@ -98,7 +98,7 @@ Let's review the files you uploaded into your Azure Notebooks project. The activ
9898

9999
## Run Azure Notebooks
100100

101-
Now that the project is created, run the **01-turbofan\_regression.ipynb** notebook.
101+
Now that the project is created, you can run the notebooks.
102102

103103
1. From your project page, select **01-turbofan\_regression.ipynb**.
104104

@@ -118,6 +118,9 @@ Now that the project is created, run the **01-turbofan\_regression.ipynb** noteb
118118

119119
Follow the instructions in the notebook. You can also use run options from the **Cell** menu, `Ctrl` + `Enter` to run a cell, and `Shift` + `Enter` to run a cell and advance to the next cell.
120120

121+
[!TIP]
122+
For consistent cell operations, avoid running the same notebook in multiple tabs in your browser.
123+
121124
1. Scroll down to the cell that immediately follows the **Create a workspace** overview text and run that cell. In the cell's output, look for the link that instructs you to sign in to authenticate.
122125

123126
![Sign in prompt for device authentication](media/tutorial-machine-learning-edge-04-train-model/sign-in-prompt.png)
@@ -126,22 +129,38 @@ Now that the project is created, run the **01-turbofan\_regression.ipynb** noteb
126129

127130
![Authenticate application on device confirmation](media/tutorial-machine-learning-edge-04-train-model/cross-platform-cli.png)
128131

129-
1. From the **Cell** menu, select **Run All**. Scroll back up through the notebook and review how the cell operations are completed.
132+
1. At this point, you can run the cells. It is optimal to run all the cells so that the code in the cells runs sequentially. Select **Run All** from the **Cell** menu. Scroll back up through the notebook and review how the cell operations are completed.
130133

131-
1. In the **Explore the data** section, you can review cells in the **Sensor readings and RUL** subsection that render scatterplots of sensor measurements.
134+
In the **Explore the data** section, you can review cells in the **Sensor readings and RUL** subsection that render scatterplots of sensor measurements.
132135

133136
![Sensor readings scatterplots](media/tutorial-machine-learning-edge-04-train-model/sensor-readings.png)
134137

135-
1. When you have finished running the **01-turbofan\_regression.ipynb** notebook, return to the project page.
138+
1. Save the notebook and return to your project page by clicking your project name in the upper-right corner of the notebook or going back in your browser.
139+
140+
1. Open **02-turbofan\_deploy\_model.ipynb** and repeat the steps in this procedure to run the second notebook.
141+
142+
1. Save the notebook and return to your project page by clicking your project name in the upper-right corner of the notebook or going back in your browser.
143+
144+
### Verify success
145+
146+
To verify that the notebooks have completed successfully, verify that a few items were created.
136147

137-
1. Open **02-turbofan\_deploy\_model.ipynb** and repeat the steps in this section to run the second notebook.
148+
1. On your Azure Notebooks project page, select **Show hidden items** so that item names that begin with a period appear.
149+
150+
1. Verify that the following files were created:
151+
152+
| File | Description |
153+
| --- | --- |
154+
| ./aml_config/.azureml/config.json | Configuration file used to create the Azure Machine Learning Workspace. |
155+
| ./aml_config/model_config.json | Configuration file that we will need to deploy the model in the **turbofanDemo** Machine Learning workspace in Azure. |
156+
| myenv.yml| Provides information about the dependencies for the deployed Machine Learning model.|
157+
158+
1. Verify in the Azure portal that the **turboFanDemo** Machine Learning workspace exists in your resource group.
138159

139160
### Debugging
140161

141162
You can inset Python statements into the notebook for debugging, mainly the `print()` command. If you see variables or objects that are not defined, run the cells where they are first declared or instantiated.
142163

143-
For information about debugging notebooks in Visual Studio Code, see [Debug notebooks using Visual Studio Code](../notebooks/tutorial-create-run-jupyter-notebook.md#debug-notebooks-using-visual-studio-code) and [Working with Jupyter Notebooks in Visual Studio Code](https://code.visualstudio.com/docs/python/jupyter-support).
144-
145164
## Next steps
146165

147166
In this article, we used two Jupyter Notebooks running in Azure Notebooks to use the data from the turbofan devices to train a remaining useful life (RUL) classifier, to save the classifier as a model, to create a container image, and to deploy and test the image as a web service.

0 commit comments

Comments
 (0)