Time to see the learning in practice!
Let's work on a very simple yet illustrative example. Suppose you want a single neuron neural network to learn how to fit a simple linear function such as the following:
This is quite easy even for those who have little math background, so guess what? It is a nice start for our simplest neural network to prove its learning ability!
Teaching the neural network – the training dataset
We;re going to structure the dataset for the neural network to learn using the following code, which you can find in the main method ...