My neural network, which uses the back-propagation technique and the sigmoid activation function, should 'learn' the sine function.
The following code should train the network with 1000 datasets:
I hope, someone could give me a hint. Thank you.
The problem was solved (see answer by Richard Hardy). I made this interactive website for testing the network: http://norizon.li/repo/neural-net/