Difference: TheHelloWorld (1 vs. 2)

Revision 22023-12-18 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TinyML"

The Hello World example

Introduction

Line: 9 to 9
 
  • how a neural network regression model can be implemented and trained
  • how the trained model can be converted into a model that can run on a micro-controller
  • and it shows that the infrastructure for building and employing ML models on the ESP32 is in place and is working correctly.
Changed:
<
<

Creating the data-set

>
>

Different versions of the Hello World example found on the Internet

The example program comes in different version

  -- Uli Raich - 2022-01-31

Comments

Changed:
<
<
<--/commentPlugin-->
>
>

<--/commentPlugin-->

Revision 12022-01-31 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TinyML"

The Hello World example

Introduction

The Hello World example demonstrates a regression model implemented as a neural network with an input layer of a single scalar value (the x parameter of y=sin(x)) , a hidden layer of 16 neurons and an output layer, again of a single scalar value (the y in y=sin(x)). To train the network a data set of 1000 values of the sin function is used onto which a small random noise is added. Once trained we can predict sin(x) for any value of x.

Like most "Hello World" type programs this is pretty useless since we can get the precise value of sin(x) very easily, but it shows the principles of

  • how a neural network regression model can be implemented and trained
  • how the trained model can be converted into a model that can run on a micro-controller
  • and it shows that the infrastructure for building and employing ML models on the ESP32 is in place and is working correctly.

Creating the data-set

-- Uli Raich - 2022-01-31

Comments

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback