Recurrent neural networks - predicting periodic signals