Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lesept777 authored May 10, 2020
1 parent d7c934a commit eec2cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/MLP_HighLow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ This example shows how to classify 2D data compared to a sine curve.
First a dataset is created with random input data chosen in the [0,1]x[0,1] square, and output set to 0 if the point is under the sine curve and 1 if above.

## Training
Training parameters are set and the optimization is run. Results are give in the file [Output.txt](https://github.com/lesept777/MLP-for-ESP32/blob/master/examples/MLP_HighLow/Output.txt). The goal is reached in less than 33 seconds, with 3 iterations.
Training parameters are set and the optimization is run. Results are given in the file [Output.txt](https://github.com/lesept777/MLP-for-ESP32/blob/master/examples/MLP_HighLow/Output.txt). The goal is reached in less than 33 seconds, with 3 iterations.

The results are satisfying, and the net's paramaters are stored in a file in the SPIFFS.
The results are satisfying, and the net's parameters are stored in a file in the SPIFFS.
```
Net.netSave(networkFile);
```
Expand All @@ -22,7 +22,7 @@ And run the sketch again. These 2 lines:
...
Net.setHeurInitialize(initialize); // No need to init a new network if we read it from SPIFFS
```
make sure that the network is loaded frome the file and that the optimization begins with the loaded parameters (i.e. the weights are not randomly set this time).
make sure that the network is loaded from the file and that the optimization begins with the loaded parameters (i.e. the weights are not randomly set this time).

The improved results are shown in the file [OtherOutput.txt](https://github.com/lesept777/MLP-for-ESP32/blob/master/examples/MLP_HighLow/OtherOutput.txt). After 393 new epochs (3.3 seconds), the testing error is below 0.05

Expand Down

0 comments on commit eec2cd4

Please sign in to comment.