NeuralForecast is a Python library with many neural models for time series forecasting. It emphasizes usable implementations, sklearn-style fit and predict, and ties to the Nixtla forecasting stack.
Overview
NeuralForecast gathers neural forecasting models in one Python package, from classical recurrent networks through transformer-style architectures. The focus stated in the source is accuracy, usability, and robustness rather than research-only code paths.
You install it from PyPI or conda and work with a familiar sklearn-like API: construct a NeuralForecast object, call fit on panel time series data, then predict. Inputs and outputs align with StatsForecast, MLForecast, and HierarchicalForecast for mixed statistical and neural pipelines.
Documented capabilities include exogenous and static covariates, probabilistic forecasting via quantile losses and parametric distributions, multiple train and evaluation loss types, and interpretability for trend, seasonality, and exogenous components on selected models. Ray and Optuna integrations support distributed hyperparameter tuning.
Companion packages utilsforecast and coreforecast help with plotting and data preparation. Saved models from recent releases use safetensors and JSON metadata instead of pickle by default, with migration paths for older checkpoints.
Key features
- 30+ neural forecasting model implementations
- Sklearn-style fit and predict interface
- Exogenous and static covariate support
- Probabilistic and quantile forecasting
- Hyperparameter tuning via Ray or Optuna
- Unified interface with StatsForecast and MLForecast
- Interpretability for trend and seasonality
- Hierarchical forecasting support
Use cases
- Neural time series demand forecasting
- Probabilistic prediction intervals
- Pipelines with exogenous regressors
- Automatic model and hyperparameter search
- Mixed statistical and neural forecasts