Recurrent neural networks for time series forecasting