gluonts 0.17.0


pip install gluonts

  Latest version

Released: Jul 31, 2026


Meta
Author: Amazon
Requires Python: <3.15,>=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Science/Research

License
  • OSI Approved :: Apache Software License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Scientific/Engineering
  • Scientific/Engineering :: Artificial Intelligence

GluonTS - Probabilistic Time Series Modeling in Python

PyPI GitHub Static Static PyPI Downloads

📢 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.

import pandas as pd
import matplotlib.pyplot as plt

from gluonts.dataset.pandas import PandasDataset
from gluonts.dataset.split import split
from gluonts.torch import DeepAREstimator

# Load data from a CSV file into a PandasDataset
df = pd.read_csv(
    "https://raw.githubusercontent.com/AileenNielsen/"
    "TimeSeriesAnalysisWithPython/master/data/AirPassengers.csv",
    index_col=0,
    parse_dates=True,
)
dataset = PandasDataset(df, target="#Passengers")

# Split the data for training and testing
training_data, test_gen = split(dataset, offset=-36)
test_data = test_gen.generate_instances(prediction_length=12, windows=3)

# Train the model and make predictions
model = DeepAREstimator(
    prediction_length=12, freq="M", trainer_kwargs={"max_epochs": 5}
).train(training_data)

forecasts = list(model.predict(test_data.input))

# Plot predictions
plt.plot(df["1954":], color="black")
for forecast in forecasts:
  forecast.plot()
plt.legend(["True values"], loc="upper left", fontsize="xx-large")
plt.show()

[train-test]

Note, the forecasts are displayed in terms of a probability distribution and the shaded areas represent the 50% and 90% prediction intervals.

Contributing

If you wish to contribute to the project, please refer to our contribution guidelines.

Citing

If you use GluonTS in a scientific publication, we encourage you to add the following references to the related papers, in addition to any model-specific references that are relevant for your work:

@article{gluonts_jmlr,
  author  = {Alexander Alexandrov and Konstantinos Benidis and Michael Bohlke-Schneider
    and Valentin Flunkert and Jan Gasthaus and Tim Januschowski and Danielle C. Maddix
    and Syama Rangapuram and David Salinas and Jasper Schulz and Lorenzo Stella and
    Ali Caner Türkmen and Yuyang Wang},
  title   = {{GluonTS: Probabilistic and Neural Time Series Modeling in Python}},
  journal = {Journal of Machine Learning Research},
  year    = {2020},
  volume  = {21},
  number  = {116},
  pages   = {1-6},
  url     = {http://jmlr.org/papers/v21/19-820.html}
}
@article{gluonts_arxiv,
  author  = {Alexandrov, A. and Benidis, K. and Bohlke-Schneider, M. and
    Flunkert, V. and Gasthaus, J. and Januschowski, T. and Maddix, D. C.
    and Rangapuram, S. and Salinas, D. and Schulz, J. and Stella, L. and
    Türkmen, A. C. and Wang, Y.},
  title   = {{GluonTS: Probabilistic Time Series Modeling in Python}},
  journal = {arXiv preprint arXiv:1906.05264},
  year    = {2019}
}

Links

Documentation

References

Tutorials and Workshops

0.17.0 Jul 31, 2026
0.17.0rc1 Jul 22, 2026
0.16.3 Jun 29, 2026
0.16.2 Jun 27, 2025
0.16.1 Apr 08, 2025
0.16.0 Nov 11, 2024
0.16.0rc1 Oct 21, 2024
0.15.1 Jun 03, 2024
0.15.0 May 27, 2024
0.14.4 Feb 02, 2024
0.14.3 Dec 07, 2023
0.14.2 Nov 27, 2023
0.14.1 Nov 14, 2023
0.14.0 Oct 27, 2023
0.14.0rc2 Oct 27, 2023
0.14.0rc1 Oct 16, 2023
0.13.9 Dec 07, 2023
0.13.8 Nov 14, 2023
0.13.7 Oct 18, 2023
0.13.6 Oct 16, 2023
0.13.5 Sep 18, 2023
0.13.4 Aug 31, 2023
0.13.3 Aug 07, 2023
0.13.2 Jun 07, 2023
0.13.1 May 24, 2023
0.13.0 May 18, 2023
0.13.0rc1 May 11, 2023
0.12.8 May 11, 2023
0.12.7 Apr 20, 2023
0.12.6 Apr 05, 2023
0.12.5 Mar 20, 2023
0.12.4 Mar 16, 2023
0.12.3 Feb 20, 2023
0.12.2 Feb 15, 2023
0.12.1 Feb 08, 2023
0.12.0 Feb 02, 2023
0.12.0rc1 Jan 26, 2023
0.11.12 Apr 05, 2023
0.11.11 Feb 20, 2023
0.11.10 Feb 15, 2023
0.11.9 Jan 30, 2023
0.11.8 Jan 17, 2023
0.11.7 Jan 03, 2023
0.11.6 Dec 20, 2022
0.11.5 Dec 13, 2022
0.11.4 Dec 05, 2022
0.11.3 Nov 24, 2022
0.11.3rc1 Nov 24, 2022
0.11.2 Nov 21, 2022
0.11.1 Oct 28, 2022
0.11.0 Oct 10, 2022
0.10.10 Feb 15, 2023
0.10.9 Feb 06, 2023
0.10.8 Oct 28, 2022
0.10.7 Sep 27, 2022
0.10.6 Sep 06, 2022
0.10.5 Aug 26, 2022
0.10.4 Aug 14, 2022
0.10.3 Aug 08, 2022
0.10.2 Jul 14, 2022
0.10.1 Jul 08, 2022
0.10.0 Jun 30, 2022
0.10.0rc1 Jun 24, 2022
0.9.10 Feb 15, 2023
0.9.9 Aug 26, 2022
0.9.8 Aug 14, 2022
0.9.7 Aug 08, 2022
0.9.6 Jun 30, 2022
0.9.5 Jun 14, 2022
0.9.4 Apr 28, 2022
0.9.3 Apr 12, 2022
0.9.2 Mar 16, 2022
0.9.1 Feb 28, 2022
0.9.0 Feb 18, 2022
0.8.1 Aug 12, 2021
0.8.0 Jul 05, 2021
0.7.7 Aug 12, 2021
0.7.6 Jun 15, 2021
0.7.5 Jun 03, 2021
0.7.4 Jun 01, 2021
0.7.3 May 18, 2021
0.7.2 May 11, 2021
0.7.1 May 04, 2021
0.7.0 Apr 27, 2021
0.6.9 May 11, 2021
0.6.8 May 04, 2021
0.6.7 Feb 18, 2021
0.6.6 Feb 10, 2021
0.6.5 Feb 01, 2021
0.6.4 Dec 08, 2020
0.6.3 Dec 01, 2020
0.6.2 Nov 24, 2020
0.6.1 Nov 19, 2020
0.6.0 Nov 10, 2020
0.5.2 Sep 01, 2020
0.5.1 Aug 04, 2020
0.5.0 May 12, 2020
0.4.3 Apr 23, 2020
0.4.2 Nov 26, 2019
0.4.1 Nov 15, 2019
0.4.0 Nov 08, 2019
0.3.3 Aug 28, 2019
0.3.2 Aug 13, 2019
0.3.1 Aug 01, 2019
0.3.0 Jul 22, 2019
0.2.3 Jul 10, 2019
0.2.2 Jul 10, 2019
0.2.1 Jul 08, 2019
0.2.0 Jul 05, 2019
0.1.4 Jun 14, 2019
0.1.3 Jun 13, 2019
0.1.2 Jun 07, 2019
0.1.1 Jun 03, 2019
0 Nov 11, 2021

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
numpy (<3,>=1.16)
numpy (<3,>=1.24)
pandas (<3,>=1.4)
pydantic (<3,>=1.7)
toolz (~=0.10)
tqdm (~=4.23)
typing-extensions (~=4.0)