thuml/TimesNet
thuml/TimesNet has 1,121 GitHub stars and 91 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 09:37 UTC. Last push 2024-04-02.
About Code release for "TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis" (ICLR 2023), https://openreview.net/pdf?id=ju_Uqw384Oq
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].
:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].
:triangular_flag_on_post: The complete code and scripts of TimesNet have been included in [Time-Series-Library].
TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis [ICLR 2023]
In this paper, we present TimesNet as a powerful foundation model for general time series analysis, which can
- 🏆 Achieve the consistent state-of-the-art in five main-stream tasks: Long- and Short-term Forecasting, Imputation, Anomaly Detection and Classification.
- 🌟 Directly take advantage of booming vision backbones by transforming the 1D time series into 2D space.
Temporal 1D-Variation vs. 2D-Variation
Temporal variation modeling is the common key problem of extensive analysis tasks. Previous methods attempt to accomplish this directly from the 1D time series, which is extremely challenging due to the intricate temporal patterns. Based on the observation of multi-periodicity in time series, we present the TimesNet to transform the origianl 1D-timeseries into 2D Space, which can unfiy the intraperiod- and interperiod-variations.
General Representation Learning Capacity
To demonstrate the model capacity in representation learning, we calculate the CKA similarity between representations from the bottom and top layer of each model. A smaller CKA similarity means that the representations of bottom and top layer are more distinct, indicating the hierarchical representations. From this representation analysis, We find that:
- Forecasting and anomaly detection tasks require the low-level representations.
- Imputation and classification tasks expect the hierarchical representations.
Benefiting from 2D kernel design, TimesNet (marked by red stars) can learn appropriate representations for different tasks, demonstrating its task generality as a foundation model.
Leaderboard for Time Series Analysis
In this paper, we also provide a comprehensive benchmark to evaluate different backbones. More than 15 advanced baselines are compared. Till February 2023, the top three models for five different tasks are:
| Model Ranking |
Long-term Forecasting |
Short-term Forecasting |
Imputation | Classification | Anomaly Detection |
|---|---|---|---|---|---|
| 🥇 1st | TimesNet | TimesNet | TimesNet | TimesNet | TimesNet |
| 🥈 2nd | DLinear | Non-stationary Transformer |
Non-stationary Transformer |
Non-stationary Transformer |
FEDformer |
| 🥉 3rd | Non-stationary Transformer |
FEDformer | Autoformer | Informer | Autoformer |
See our paper for the comprehensive benchmark.
Citation
If you find this repo useful, please cite our paper.
@inproceedings{wu2023timesnet,
title={TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis},
author={Haixu Wu and Tengge Hu and Yong Liu and Hang Zhou and Jianmin Wang and Mingsheng Long},
booktitle={International Conference on Learning Representations},
year={2023},
}
Contact
If you have any questions, please contact [email protected].
Acknowledgement
We appreciate the following github repos for their valuable codebase:
Forecasting: https://github.com/thuml/Autoformer
Anomaly Detection: https://github.com/thuml/Anomaly-Transformer
Classification: https://github.com/thuml/Flowformer
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,321 starspublic-apis/public-apis
A collective list of free APIs
497,569 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
446,496 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,246 stars