A few days ago I wrote about neural networks, trying to explain in a simple way how they work and why this type of technology is called "artificial intelligence."
The important thing about this technique and what makes it so revolutionary is the concept of training, but it is often difficult to imagine how this happens and how the parameters affect the result.
To help us out, our friends at TensorFlow created a graphical tool that shows us the training process of a neural network, available at http://playground.tensorflow.org/
For those who don’t really know how to interpret the application, I’ll explain the basic components. To do that, I’ll use the following screenshot as an example:

For the impatient who already want to see the app: If you press the "play" button, it will start training the neural network to predict the colors of the dots on the right.
For the more geeky ones, the explanation begins here (I was impatient too). The application is divided into 5 sections: the top menu (in white), DATA, INPUT, HIDDEN LAYERS, and OUTPUT. The orange colors represent negative values, while the blue ones represent positive values. A white color means something close to 0.
DATA contains parameters about the sample to train the neural network. First, you can choose the general shape of the data, then the percentage of data left to test the model (see OUTPUT section), a noise factor to make the work more "real" for the neural network, and finally the number of cases that will enter each training cycle.
INPUT is the second section, and it is for choosing the variables that will enter the model. x1 and x2 are predefined, representing the vertical and horizontal axes of the OUTPUT section, but you can also choose transformations on these, such as x1*x2, sin(x1), or sin(x2). The lines coming out of each box correspond to the value of the constant associated with the parameter input in the activation or response function.
HIDDEN LAYERS is for configuring the connections the neural network will have. In the boxes, you can see the shape the function takes as x1 and x2 move. The lines connecting them represent the value of the constant associated with the data coming from the previous function/neuron. In other words, if it is thick, it means it has high impact, and if it is blue, it has a positive constant, while if it is orange, it is negative.
OUTPUT shows the contrast between the value obtained by the neural network and the data it should fit (read the same way as the boxes in HIDDEN LAYER). When you start training, above the large graph, you will see a smaller graph that shows how the error percentage of the neural network evolves for both the control group and the training group. Below the large graph, you can choose to discretize (orange or blue) the network output and also show the control group. The control group is used to measure the model’s predictiveness; the network is never trained on these.
Top Menu is where the magic happens. To start training, you must press the play button and everything will begin. In "Interactions," you see how many times it has trained with the entire sample of dots. Then come the parameters:
- Learning Rate: Power of the impulse or learning of the networks.
- Activation: Shape of the neurons’ objective function; by default it is the tanh or S-curve, the most used in this type of model.
- Regularization: Honestly, I don’t know what this is… I hope someone can help me below; I imagine it is to simulate "forgetting," when a negative stimulus is not received in a number of cycles, it should forget.
- Regularization Rate: Speed parameter for the above…
- Problem Type: Type of problem, whether it is classification or generating an objective function.
Now you can play around with this web page. However, you should know that using neural networks is more magic than science, and in general you simply have to try different parameters for each problem, train, have a coffee, and try again.
If you are very lost, I recommend reading my previous article on neural networks.
If you liked it, follow us on any of our channels; all posts will appear there.
And don’t forget to share on your social media; your visits are my motivation.

Leave a Reply