Inspired by this example:
[url:2rqpo334]https://youtu.be/-9H_eVZdtN8[/url:2rqpo334]
Here it is the TensorFlow neuronal network to solve it:
tf_nn.py
[code=fw:2rqpo334][/code:2rqpo334]
From a cmd window type:
python tf_nn.py
and you will see how the neuronal network learns (the error decreases) and finally when we test it, the right values appear!
[quote:2rqpo334]Epoch: 0491 error= 0.010902708
Epoch: 0492 error= 0.010839775
Epoch: 0493 error= 0.010745070
Epoch: 0494 error= 0.010681662
Epoch: 0495 error= 0.010590052
Epoch: 0496 error= 0.010513857
Epoch: 0497 error= 0.010433172
Epoch: 0498 error= 0.010375975
Epoch: 0499 error= 0.010283007
Epoch: 0500 error= 0.010227598
Optimization Finished
Testing:
0
1
2
3
4
5
6
7
8
9[/quote:2rqpo334]
↧