Make your hidden layers visible
With the help of this functions you will better understand your own network.
The network down here was trained on:
$samples = [[0,0,0],
[0,0,1],
[0,1,0],
[0,1,1],
[1,0,0],
[1,0,1],
[1,1,0],
[1,1,1]];
$targets = [[0,0],[0,0],[0,1],[0,1],[1,0],[1,0],[1,1],[1,1]];