Time Series Forecasting
Chronos
Safetensors
t5
time series
forecasting
foundation models
pretrained models
Instructions to use amazon/chronos-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chronos
How to use amazon/chronos-2 with Chronos:
pip install chronos-forecasting
import pandas as pd from chronos import BaseChronosPipeline pipeline = BaseChronosPipeline.from_pretrained("amazon/chronos-2", 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
Fix the tag in the SageMaker notebook link
#10
by abderrahmane11 - opened
README.md
CHANGED
|
@@ -155,7 +155,7 @@ payload = {
|
|
| 155 |
forecast = predictor.predict(payload)["predictions"]
|
| 156 |
```
|
| 157 |
|
| 158 |
-
For more details about the endpoint API, check out the [example notebook](https://github.com/amazon-science/chronos-forecasting/blob/
|
| 159 |
|
| 160 |
|
| 161 |
## Training data
|
|
|
|
| 155 |
forecast = predictor.predict(payload)["predictions"]
|
| 156 |
```
|
| 157 |
|
| 158 |
+
For more details about the endpoint API, check out the [example notebook](https://github.com/amazon-science/chronos-forecasting/blob/v2.2.2/notebooks/deploy-chronos-to-amazon-sagemaker.ipynb).
|
| 159 |
|
| 160 |
|
| 161 |
## Training data
|