Learning Deep Time-index Models for Time Series Forecasting