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/iot-edge/tutorial-machine-learning-edge-04-train-model.md
+27-8Lines changed: 27 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: 'In this tutorial, you will train a machine learning model using Az
4
4
author: kgremban
5
5
manager: philmea
6
6
ms.author: kgremban
7
-
ms.date: 1/29/2020
7
+
ms.date: 2/5/2020
8
8
ms.topic: tutorial
9
9
ms.service: iot-edge
10
10
services: iot-edge
@@ -98,7 +98,7 @@ Let's review the files you uploaded into your Azure Notebooks project. The activ
98
98
99
99
## Run Azure Notebooks
100
100
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.
102
102
103
103
1. From your project page, select **01-turbofan\_regression.ipynb**.
104
104
@@ -118,6 +118,9 @@ Now that the project is created, run the **01-turbofan\_regression.ipynb** noteb
118
118
119
119
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.
120
120
121
+
[!TIP]
122
+
For consistent cell operations, avoid running the same notebook in multiple tabs in your browser.
123
+
121
124
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.
122
125
123
126

@@ -126,22 +129,38 @@ Now that the project is created, run the **01-turbofan\_regression.ipynb** noteb
126
129
127
130

128
131
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.
130
133
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.
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.
136
147
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.
138
159
139
160
### Debugging
140
161
141
162
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.
142
163
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
-
145
164
## Next steps
146
165
147
166
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