Downloads · 30 days
5
8% of all-time downloads
Phoenix21/distance-aware-chronos-t
distance-aware-chronos-t is a machine learning model from Phoenix21. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This is a distance-aware enhancement of the Chronos time series forecasting model.
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
65
Public
Repo size
195 MB
Likes
0
Public
Click a slice to open those files.
.safetensors185 MB · 95%
From the Hugging Face model README
This is a distance-aware enhancement of the Chronos time series forecasting model.
This model extends the original Chronos architecture with distance-aware loss functions and output layers that explicitly consider the ordinal nature of quantized time series bins.
Base Model: amazon/chronos-t5-small
Number of Bins: 4096
Training Epoch: 10
Validation Loss: 2.4703
pip install torch transformers chronos
from distance_aware_chronos import DistanceAwareChronos
import numpy as np
# Load model
model = DistanceAwareChronos.from_pretrained("Phoenix21/distance-aware-chronos-t")
# Prepare your time series
context = np.array([1.0, 2.0, 3.0, 4.0, 5.0]) # Your historical data
# Generate forecasts
predictions = model.predict(context, horizon=24, num_samples=100)
print(f"Forecast shape: {predictions.shape}")
Trained on the Chronos datasets from HuggingFace.
If you use this model, please cite:
@article{chronos2024,
title={Chronos: Learning the Language of Time Series},
author={Ansari, Abdul Fatir et al.},
journal={Transactions on Machine Learning Research},
year={2024}
}
Apache 2.0