Probabilistic time series modeling in Python.
Maintained. Last release 4 months ago, commits in 6 of the last 26 weeks. Weaker on issue handling.
pip install gluontsGluonTS - Probabilistic Time Series Modeling in Python
📢 BREAKING NEWS: We released Chronos, a suite of pretrained models for zero-shot time series forecasting. Chronos can generate accurate probabilistic predictions for new time series not seen during training. Check it out here!
GluonTS is a Python package for probabilistic time series modeling, focusing on deep learning based models, based on PyTorch.
Installation
GluonTS requires Python 3.10 to 3.14. We recommend using uv for managing environments:
# install with support for torch models
uv pip install "gluonts[torch]"
For development:
# clone the repository
git clone https://github.com/awslabs/gluonts.git
cd gluonts
# install with all development dependencies
uv sync --all-extras
You can also install via pip:
pip install "gluonts[torch]"
See the documentation for more info on how GluonTS can be installed.
Simple Example
To illustrate how to use GluonTS, we train a DeepAR-model and make predictions using the airpassengers dataset. The dataset consists of a single time series of monthly passenger numbers between 1949 and 1960. We train the model on the first nine years and make predictions for the remaining three years.
![[train-test]](https://ts.gluon.ai/static/README/forecasts.png)