PatchTST
is a transformer-based model for time series modeling tasks, including forecasting, regression, and classification. This repository contains a pre-trained
PatchTST
model encompassing all seven channels of the
ETTh1
dataset.
This particular pre-trained model produces a Mean Squared Error (MSE) of 0.3881 on the
test
split of the
ETTh1
dataset when forecasting 96 hours into the future with a historical data window of 512 hours.
For training and evaluating a
PatchTST
model, you can refer to this
demo notebook
.
At a high level the model vectorizes time series into patches of a given size and encodes the resulting sequence of vectors via a Transformer that then outputs the prediction length forecast via an appropriate head.
The model is based on two key components: (i) segmentation of time series into subseries-level patches which are served as input tokens to Transformer; (ii) channel-independence where each channel contains a single univariate time series that shares the same embedding and Transformer weights across all the series. The patching design naturally has three-fold benefit: local semantic information is retained in the embedding; computation and memory usage of the attention maps are quadratically reduced given the same look-back window; and the model can attend longer history. Our channel-independent patch time series Transformer (PatchTST) can improve the long-term forecasting accuracy significantly when compared with that of SOTA Transformer-based models.
In addition, PatchTST has a modular design to seamlessly support masked time series pre-training as well as direct time series forecasting, classification, and regression.
This pre-trained model can be employed for fine-tuning or evaluation using any Electrical Transformer dataset that has the same channels as the
ETTh1
dataset, specifically:
HUFL, HULL, MUFL, MULL, LUFL, LULL, OT
. The model is designed to predict the next 96 hours based on the input values from the preceding 512 hours. It is crucial to normalize the data. For a more comprehensive understanding of data pre-processing, please consult the paper or the demo.
It achieves a MSE of 0.3881 on the evaluation dataset.
Hardware
1 NVIDIA A100 GPU
Framework versions
Transformers 4.36.0.dev0
Pytorch 2.0.1
Datasets 2.14.4
Tokenizers 0.14.1
Citation
BibTeX:
@misc{nie2023time,
title={A Time Series is Worth 64 Words: Long-term Forecasting with Transformers},
author={Yuqi Nie and Nam H. Nguyen and Phanwadee Sinthong and Jayant Kalagnanam},
year={2023},
eprint={2211.14730},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
APA:
Nie, Y., Nguyen, N., Sinthong, P., & Kalagnanam, J. (2023). A Time Series is Worth 64 Words: Long-term Forecasting with Transformers. arXiv preprint arXiv:2211.14730.
Runs of ibm-granite granite-timeseries-patchtst on huggingface.co
13.6K
Total runs
0
24-hour runs
-448
3-day runs
-1.3K
7-day runs
-18.9K
30-day runs
More Information About granite-timeseries-patchtst huggingface.co Model
More granite-timeseries-patchtst license Visit here:
granite-timeseries-patchtst huggingface.co is an AI model on huggingface.co that provides granite-timeseries-patchtst's model effect (), which can be used instantly with this ibm-granite granite-timeseries-patchtst model. huggingface.co supports a free trial of the granite-timeseries-patchtst model, and also provides paid use of the granite-timeseries-patchtst. Support call granite-timeseries-patchtst model through api, including Node.js, Python, http.
granite-timeseries-patchtst huggingface.co is an online trial and call api platform, which integrates granite-timeseries-patchtst's modeling effects, including api services, and provides a free online trial of granite-timeseries-patchtst, you can try granite-timeseries-patchtst online for free by clicking the link below.
ibm-granite granite-timeseries-patchtst online free url in huggingface.co:
granite-timeseries-patchtst is an open source model from GitHub that offers a free installation service, and any user can find granite-timeseries-patchtst on GitHub to install. At the same time, huggingface.co provides the effect of granite-timeseries-patchtst install, users can directly use granite-timeseries-patchtst installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
granite-timeseries-patchtst install url in huggingface.co: