Time Series Forecasting
Chronos
Safetensors
t5
time series
forecasting
pretrained models
foundation models
time series foundation models
time-series
Instructions to use amazon/chronos-t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chronos
How to use amazon/chronos-t5-base with Chronos:
pip install chronos-forecasting
import pandas as pd from chronos import BaseChronosPipeline pipeline = BaseChronosPipeline.from_pretrained("amazon/chronos-t5-base", device_map="cuda") # Load historical data context_df = pd.read_csv("https://autogluon.s3.us-west-2.amazonaws.com/datasets/timeseries/misc/AirPassengers.csv") # Generate predictions pred_df = pipeline.predict_df( context_df, prediction_length=36, # Number of steps to forecast quantile_levels=[0.1, 0.5, 0.9], # Quantiles for probabilistic forecast id_column="item_id", # Column identifying different time series timestamp_column="Month", # Column with datetime information target="#Passengers", # Column(s) with time series values to predict ) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix: Add missing matplotlib installation in example code
Verified signature## Description The example code fails with `ModuleNotFoundError: No module named 'matplotlib'` when run in a clean environment. This is due to the `matplotlib` package not being pre-installed. ## Changes Added the following line at the beginning of the script to ensure all required dependencies are available: ```python !{sys.executable} -m pip install matplotlib ``` ## Testing The code has been successfully tested and runs without error. ## Note This contribution is part of an ongoing research initiative to systematically identify and correct faulty example code in Hugging Face Model Cards. We would appreciate a timely review and integration of this patch to support code reliability and enhance reproducibility for downstream users.032b050
-
Update README.md
Verified signaturea07f719 -
Update README.md
Verified signature97ae579
-
Update README
dc471fd
-
Add pipeline for forecasting (#4)
Verified signature- Add pipeline for forecasting (9e66abf9868a69856c3e9de1e3be9194000d7c69) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>b674837
-
Delete pytorch_model.bin (#3)
Verified signature- Delete pytorch_model.bin (04355b36a070cb893b6aa083e96dac11cab85edd)5e85074
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (45d3b2421f623c7239897e753976bc883cb522d0) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>98d45c1
-
initial commit
c735c3b