gluonts
Probabilistic time series modeling in Python.
What it is and what it does
GluonTS is a Python package for building and training probabilistic time series forecasting models using deep learning. It provides high-level estimators that learn patterns in historical time series data and generate full probability distributions over future values, rather than single-point predictions. The package handles data loading, train-test splitting, model training, and forecast generation through a unified API.
Typical usage involves loading time series data into a dataset object, splitting it for training and evaluation, instantiating an estimator with forecast parameters, training on historical data, and then generating probabilistic predictions with confidence intervals. The package depends on numpy, pandas, pydantic, toolz, tqdm, and typing-extensions, making it compatible with standard data science workflows.
Use it for:
- Train a model on historical sales data to forecast demand with prediction intervals for inventory planning
- Build probabilistic forecasts for energy consumption to quantify uncertainty in grid load predictions
- Generate time series predictions for financial metrics where understanding forecast confidence is critical
- Benchmark multiple deep learning architectures on your own time series dataset using available estimators
- Integrate pretrained models for zero-shot forecasting on new time series without retraining
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
GluonTS provides deep learning models for probabilistic time series forecasting, built on PyTorch, enabling you to train and deploy models that generate probability distributions over future values rather than point estimates.
Yes. GluonTS is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It is the right choice if you need probabilistic deep learning forecasts with confidence intervals and want a mature, well-documented framework. Install it if your use case requires neural time series models; skip it if you need only classical statistical forecasting or simple point predictions.
Install
gluonts on PyPI
pip
pip install gluontsuv
uv add gluontspoetry
poetry add gluontsInstalling gluonts
Before you install
Low friction install with a pure-Python wheel. Active maintenance with a recent release (14 days old) and strong repository signals (5224 stars, last commit 2026-07-31). Requires Python 3.10–3.14; the package explicitly supports current Python versions.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production and research contexts.
Quickstart
pip install gluonts
import pandas as pd
from gluonts.dataset.pandas import PandasDataset
from gluonts.torch import DeepAREstimator
df = pd.read_csv('data.csv', index_col=0, parse_dates=True)
dataset = PandasDataset(df, target='value')
model = DeepAREstimator(prediction_length=12, freq='M').train(dataset)
forecasts = list(model.predict(dataset))
Requires Python 3.10–3.14. PyTorch must be available as a runtime dependency for model training.
Verify before relying
- Whether core functionality requires the [torch] extra or if CPU-only forecasting is viable without it
- Performance characteristics and scalability limits for large time series datasets
- Availability and quality of pretrained Chronos models mentioned in the description
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — numpy, pandas, pydantic, toolz, tqdm, typing-extensions |
| Maintenance | actively maintained — 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,522,129/month — #1,611 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gluonts-0.17.0-py3-none-any.whl
Keywords: deep learning, forecasting, machine learning, probabilistic forecasting, time series
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
chronos-forecastingChronos provides pretrained transformer-based…
permissive · top 15,000 on PyPI
pytorch-forecastingPyTorch Forecasting provides neural network…
permissive · top 15,000 on PyPI
autogluon.timeseriesAutoGluon TimeSeries automates machine learning…
permissive · top 15,000 on PyPI
dartsDarts provides forecasting and anomaly…
permissive · top 15,000 on PyPI
hierarchicalforecastReconciles hierarchical time-series forecasts…
permissive · top 15,000 on PyPI
pyro-pplPyro is a deep probabilistic programming…
permissive · top 5,000 on PyPI
autogluonAutoGluon automates machine learning model…
permissive · top 15,000 on PyPI
neuralforecastNeuralForecast provides a collection of neural…
permissive · top 15,000 on PyPI
neuralprophetNeuralProphet is a PyTorch-based framework for…
permissive · top 15,000 on PyPI
skforecastSkforecast is a Python library for time series…
permissive · top 15,000 on PyPI