Skip to content

Commit 29e28b4

Browse files
committed
misc fixes and updates
1 parent 646104f commit 29e28b4

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed
83 KB
Loading

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

Lines changed: 27 additions & 19 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: 2/24/2020
7+
ms.date: 3/23/2020
88
ms.topic: tutorial
99
ms.service: iot-edge
1010
services: iot-edge
@@ -94,7 +94,7 @@ Let's review the files you uploaded into your Azure Notebooks project. The activ
9494

9595
* **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.
9696

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.
9898

9999
* **Utils.py:** Contains a set of Python utility functions for working with data. The first notebook contains a detailed explanation of the functions.
100100

@@ -110,38 +110,36 @@ Now that the project is created, you can run the notebooks.
110110

111111
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**.
112112

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.
114114

115-
![Set global properties in the notebook](media/tutorial-machine-learning-edge-04-train-model/set-global-properties.png)
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.
120116

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.
122118

123119
> [!TIP]
124120
> For consistent cell operations, avoid running the same notebook from multiple tabs in your browser.
125121
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+
![Set global properties in the notebook](media/tutorial-machine-learning-edge-04-train-model/set-global-properties.png)
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:
127127

128128
![Sign in prompt for device authentication](media/tutorial-machine-learning-edge-04-train-model/sign-in-prompt.png)
129129

130130
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.
131131

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

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**.
137135

138-
![Sensor readings scatterplots](media/tutorial-machine-learning-edge-04-train-model/sensor-readings.png)
136+
![Copy the run ID between cells](media/tutorial-machine-learning-edge-04-train-model/automl-id.png)
139137

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.
141139

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**.
143141

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.
145143

146144
### Verify success
147145

@@ -157,11 +155,21 @@ To verify that the notebooks have completed successfully, verify that a few item
157155
| ./aml_config/model_config.json | Configuration file that we will need to deploy the model in the **turbofanDemo** Machine Learning workspace in Azure. |
158156
| myenv.yml| Provides information about the dependencies for the deployed Machine Learning model.|
159157

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:
159+
160+
| Azure resource | Name |
161+
| --- | --- |
162+
| Machine Learning workspace | turborfanDemo |
163+
| Container Registry | turbofandemo51b64ead |
164+
| Applications Insights | turbofaninsightsbdb29344 |
165+
| Key Vault | turbofankeyvaultbfbcaaf5 |
166+
| Storage | turbofanstorage3bc195b1d |
161167

162168
### Debugging
163169

164-
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.
165173

166174
## Next steps
167175

0 commit comments

Comments
 (0)