NeuralForecast is a Python library object that prepares time-series windows, batches data, trains forecasting models, and generates predictions through a simple interface. section 2.4 section 9.2.1
Use NeuralForecast to:
- Initialize models with a forecast horizon, input size, frequency, batch settings, and maximum training steps. section 2.4 section 9.2.1
- Fit models using gradient-update steps rather than dataset epochs. section 2.4
- Load pretrained models and produce zero-shot forecasts for new series. section 2.5
Listing 9.3 Initializing the NeuralForecast object
nf = NeuralForecast(
models=[timellm],
freq='W'
)
Shows the minimal initialization pattern: provide models and the dataset frequency before training or forecasting. section 9.2.1
