Patch Time Series Transformer in Hugging Face
📰 Hugging Face Blog
Hugging Face introduces Patch Time Series Transformer for time series forecasting
Action Steps
- Install the PatchTST library
- Load and prepare a time series dataset
- Configure the PatchTST model
- Train the model for forecasting
Who Needs to Know This
Data scientists and machine learning engineers can benefit from this new model for improving forecasting accuracy in their projects
Key Insight
💡 PatchTST is a new model for time series forecasting that can be used for various applications
Share This
📈 Improve time series forecasting with PatchTST
Key Takeaways
Hugging Face introduces Patch Time Series Transformer for time series forecasting
Full Article
Published Time: 2024-02-01T00:00:00.330Z
# Patch Time Series Transformer in Hugging Face
[Hugging Face](https://huggingface.co/)
* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *
* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)
[Back to Articles](https://huggingface.co/blog)
# [](https://huggingface.co/blog/patchtst#patch-time-series-transformer-in-hugging-face---getting-started) Patch Time Series Transformer in Hugging Face - Getting Started
Published February 1, 2024
[Update on GitHub](https://github.com/huggingface/blog/blob/main/patchtst.md)
[- [x] Upvote 14](https://huggingface.co/login?next=%2Fblog%2Fpatchtst)
* [](https://huggingface.co/mineshj1291 "mineshj1291")
* [](https://huggingface.co/monoloco42 "monoloco42")
* [](https://huggingface.co/TheSilentOne "TheSilentOne")
* [](https://huggingface.co/georgeaustralia "georgeaustralia")
* [](https://huggingface.co/RichardForests "RichardForests")
* [](https://huggingface.co/cvel94 "cvel94")
* +8
[](https://huggingface.co/namctin)
[Nam Nguyen namctin Follow](https://huggingface.co/namctin)
guest
[](https://huggingface.co/wmgifford)
[Wesley M. Gifford wmgifford Follow](https://huggingface.co/wmgifford)
guest
[](https://huggingface.co/ajati)
[Arindam Jati ajati Follow](https://huggingface.co/ajati)
guest
[](https://huggingface.co/vijaye12)
[Vijay Ekambaram vijaye12 Follow](https://huggingface.co/vijaye12)
guest
[](https://huggingface.co/kashif)
[Kashif Rasul kashif Follow](https://huggingface.co/kashif)
[](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/patch_tst.ipynb)
* [Quick overview of PatchTST](https://huggingface.co/blog/patchtst#quick-overview-of-patchtst "Quick overview of PatchTST")
* [Installation](https://huggingface.co/blog/patchtst#installation "Installation")
* [Part 1: Forecasting on the Electricity dataset](https://huggingface.co/blog/patchtst#part-1-forecasting-on-the-electricity-dataset "Part 1: Forecasting on the Electricity dataset")
* [Set seed](https://huggingface.co/blog/patchtst#set-seed "Set seed")
* [Load and prepare datasets](https://huggingface.co/blog/patchtst#load-and-prepare-datasets "Load and prepare datasets")
* [Configure the PatchTST model](https://huggingface.co/blog/patchtst#configure-the-patchtst-model "Configure the PatchTST model")
* [Train model](https://huggingface.co/blog/patchtst#train-model "Train model")
# Patch Time Series Transformer in Hugging Face
[Hugging Face](https://huggingface.co/)
* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *
* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)
[Back to Articles](https://huggingface.co/blog)
# [](https://huggingface.co/blog/patchtst#patch-time-series-transformer-in-hugging-face---getting-started) Patch Time Series Transformer in Hugging Face - Getting Started
Published February 1, 2024
[Update on GitHub](https://github.com/huggingface/blog/blob/main/patchtst.md)
[- [x] Upvote 14](https://huggingface.co/login?next=%2Fblog%2Fpatchtst)
* [](https://huggingface.co/mineshj1291 "mineshj1291")
* [](https://huggingface.co/monoloco42 "monoloco42")
* [](https://huggingface.co/TheSilentOne "TheSilentOne")
* [](https://huggingface.co/georgeaustralia "georgeaustralia")
* [](https://huggingface.co/RichardForests "RichardForests")
* [](https://huggingface.co/cvel94 "cvel94")
* +8
[](https://huggingface.co/namctin)
[Nam Nguyen namctin Follow](https://huggingface.co/namctin)
guest
[](https://huggingface.co/wmgifford)
[Wesley M. Gifford wmgifford Follow](https://huggingface.co/wmgifford)
guest
[](https://huggingface.co/ajati)
[Arindam Jati ajati Follow](https://huggingface.co/ajati)
guest
[](https://huggingface.co/vijaye12)
[Vijay Ekambaram vijaye12 Follow](https://huggingface.co/vijaye12)
guest
[](https://huggingface.co/kashif)
[Kashif Rasul kashif Follow](https://huggingface.co/kashif)
[](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/patch_tst.ipynb)
* [Quick overview of PatchTST](https://huggingface.co/blog/patchtst#quick-overview-of-patchtst "Quick overview of PatchTST")
* [Installation](https://huggingface.co/blog/patchtst#installation "Installation")
* [Part 1: Forecasting on the Electricity dataset](https://huggingface.co/blog/patchtst#part-1-forecasting-on-the-electricity-dataset "Part 1: Forecasting on the Electricity dataset")
* [Set seed](https://huggingface.co/blog/patchtst#set-seed "Set seed")
* [Load and prepare datasets](https://huggingface.co/blog/patchtst#load-and-prepare-datasets "Load and prepare datasets")
* [Configure the PatchTST model](https://huggingface.co/blog/patchtst#configure-the-patchtst-model "Configure the PatchTST model")
* [Train model](https://huggingface.co/blog/patchtst#train-model "Train model")
DeepCamp AI