Python 中的概率时间序列建模
重磅新闻:我们发布了 Chronos,这是一套用于零样本时间序列预测的预训练模型。Chronos 可以为训练中未见过的新时间序列生成准确的概率预测。点击这里了解更多!
GluonTS 是一个用于概率时间序列建模的 Python 软件包,专注于基于 深度学习 的模型, 基于 PyTorch 构建。
GluonTS 需要 Python 3.10 至 3.14。我们推荐使用
# install with support for torch models
uv pip install "gluonts[torch]"用于开发环境:
# clone the repository
git clone https://github.com/awslabs/gluonts.git
cd gluonts
# install with all development dependencies
uv sync --all-extras你也可以通过 pip 安装:
pip install "gluonts[torch]"有关 GluonTS 安装方法的更多信息,请参阅文档。
为了说明如何使用 GluonTS,我们使用 airpassengers 数据集训练一个 DeepAR 模型并进行预测。该数据集包含 1949 年至 1960 年间每月乘客数量的单一时间序列。我们在前九年的数据上训练模型,并对剩余的三年进行预测。
…![[train-test]](https://ts.gluon.ai/static/README/forecasts.png)
注意,预测结果以概率分布的形式展示,阴影区域表示 50% 和 90% 的预测区间。
如果您希望为该项目做出贡献,请参阅我们的
如果您在科学出版物中使用 GluonTS,我们建议您在相关论文中添加以下参考文献,此外还可添加与您的工作相关的任何特定模型的参考文献:
@article{gluonts_jmlr,
author = {Alexander Alexandrov and Konstantinos Benidis and Michael Bohlke-Schneider
and Valentin Flunkert and Jan Gasthaus and Ti
[uv](https://github.com/astral-sh/uv) for managing environments:
[contribution guidelines](https://github.com/awslabs/gluonts/tree/dev/CONTRIBUTING.md).暂无开放 Issues,或尚未同步最近议题。