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-19Lines changed: 27 additions & 19 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: 2/24/2020
7
+
ms.date: 3/23/2020
8
8
ms.topic: tutorial
9
9
ms.service: iot-edge
10
10
services: iot-edge
@@ -94,7 +94,7 @@ Let's review the files you uploaded into your Azure Notebooks project. The activ
94
94
95
95
***Test\_FD003.txt:** This file contains the data we will use as our test set when validating our trained classifier. We chose to use the test data, as provided for the original contest, as our test set for its simplicity.
96
96
97
-
***RUL\_FD003.txt:** This file contains the RUL for the last cycle of each device in the Test\_FD003.txt file. See the readme.txt and the Damage Propagation Modeling.pdf files in the C:\\source\\IoTEdgeAndMlSample\\data\\Turbofan for a detailed explanation of the data.
97
+
***RUL\_FD003.txt:** This file contains the Remaining Useful Life (RUL) for the last cycle of each device in the Test\_FD003.txt file. See the readme.txt and the Damage Propagation Modeling.pdf files in the C:\\source\\IoTEdgeAndMlSample\\data\\Turbofan for a detailed explanation of the data.
98
98
99
99
***Utils.py:** Contains a set of Python utility functions for working with data. The first notebook contains a detailed explanation of the functions.
100
100
@@ -110,38 +110,36 @@ Now that the project is created, you can run the notebooks.
110
110
111
111
1. If the notebook is listed as **Not Trusted**, click on the **Not Trusted** widget in the top right of the notebook. When the dialog comes up, select **Trust**.
112
112
113
-
1.In the notebook, scroll down to the cell that follows the **Set global properties** instructions and that begins with the code `AZURE_SUBSCRIPTION_ID =` and fill in the values for your Azure subscription, settings, and resources.
113
+
1.For best results, read the documentation for each cell and run it individually. Select **Run** on the toolbar. Later on, you will find it expedient to run multiple cells. You can disregard upgrade and deprecation warnings.
114
114
115
-

116
-
117
-
1. Run that cell by selecting **Run** on the toolbar.
118
-
119
-
When a cell is running, it displays an asterisk between the square brackets ([\*]). When the cell's operation is complete, the asterisk is replaced with a number and relevant output may appear. The cells in a notebook build sequentially and only one can be running at a time.
115
+
When a cell is running, it displays an asterisk between the square brackets ([\*]). When the cell's operation is complete, the asterisk is replaced with a number and relevant output may appear. The cells in a notebook build sequentially and only one can be running at a time.
120
116
121
-
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.
117
+
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.
122
118
123
119
> [!TIP]
124
120
> For consistent cell operations, avoid running the same notebook from multiple tabs in your browser.
125
121
126
-
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
+
1. In the cell that follows the **Set global properties** instructions, write in the values for your Azure subscription, settings, and resources. Then run the cell.
123
+
124
+

125
+
126
+
1. In the cell previous to **Workspace details**, after it has run, look for the link that instructs you to sign in to authenticate:
127
127
128
128

129
129
130
130
Open the link and enter the specified code. This sign-in procedure authenticates the Jupyter notebook to access Azure resources using the Microsoft Azure Cross-Platform Command Line Interface.
131
131
132
132

133
133
134
-
1. At this point, you can run the rest of 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.
135
-
136
-
In the **Explore the data** section, you can review cells in the **Sensor readings and RUL** subsection that render scatterplots of sensor measurements.
134
+
1. In the cell that precedes **Explore the results**, copy the value from the run ID and paste it for the run ID in the cell that follows **Reconstitute a run**.

139
137
140
-
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.
138
+
1. Save the notebook and return to your project page.
141
139
142
-
1. Open **02-turbofan\_deploy\_model.ipynb** and repeat the steps in this procedure to run the second notebook.
140
+
1. Open **02-turbofan\_deploy\_model.ipynb** and run each cell. You will need to sign-into to authenticate in the cell that follows **Configure workspace**.
143
141
144
-
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.
142
+
1. Save the notebook and return to your project page.
145
143
146
144
### Verify success
147
145
@@ -157,11 +155,21 @@ To verify that the notebooks have completed successfully, verify that a few item
157
155
| ./aml_config/model_config.json | Configuration file that we will need to deploy the model in the **turbofanDemo** Machine Learning workspace in Azure. |
158
156
| myenv.yml| Provides information about the dependencies for the deployed Machine Learning model.|
159
157
160
-
1. Verify in the Azure portal that the **turboFanDemo** Machine Learning workspace exists in your resource group.
158
+
1. Verify that the following Azure resources were created:
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.
170
+
You can insert Python statements into the notebook for debugging, such as the `print()` command to show values. If you see variables or objects that are not defined, run the cells where they are first declared or instantiated.
171
+
172
+
You may have to delete previously created Azure resources if you need to redo the notebooks.
0 commit comments