I am training a neural network to learn to calculate moving averages. The input is 5 day values and the output is moving average of the 5 days. But the NN is unable to learn