Hi,
There is a looping statement “for l in range(1, L):”. This loop covers all hidden layers.
My question is, surely this should be “for l in range(1, L**-1**):” ? In this way the loop would cover all except the final output layer which itself is covered by the sigmoid code in the next statement?
Best wishes,
Brett