I have developed a deep learning neural network which analyzes the heating pattern of alternators. I am feeding around 3900 data points as input and an equal no. as target sets. The network is able to retrace the non linear curve (as indicated in the picture), but at the end of each learning iteration, it only generalizes for the last 100-200 points . The same case happens when I test it. It gives accurate values only for the last 100-200 data points. How do I improve on this?