Neural network for time series forecasting