Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
iTransformer: Rust Implementation
An iTransformer implementation in Rust, inspired by the lucidrains iTransformer repository, and based on the original research and implementation from Tsinghua University's iTransformer repository.
📚 What is iTransformer?
iTransformer introduces an inverted Transformer architecture designed for multivariate time series forecasting (MTSF). By reversing the conventional structure of Transformers, iTransformer achieves state-of-the-art results in handling complex multivariate time series data.
🚀 Key Features:
- Inverted Transformer Architecture: Captures multivariate correlations efficiently.
- Layer Normalization & Feed-Forward Networks: Optimized for time series representation.
- Flexible Prediction Lengths: Supports predictions at multiple horizons (e.g., 12, 24, 36, 48 steps ahead).
- Scalability: Handles hundreds of variates with efficiency.
- Zero-Shot Generalization: Train on partial variates and generalize to unseen variates.
- Efficient Attention Mechanisms: Compatible with advanced techniques like FlashAttention.
🛠️ Architecture Overview
iTransformer treats each time series variate as a token, applying attention mechanisms across variates, followed by feed-forward networks and normalization layers.
📊 Key Benefits:
- State-of-the-Art Performance: On benchmarks such as Traffic, Weather, and Electricity datasets.
- Improved Interpretability: Multivariate self-attention reveals meaningful correlations.
- Scalable and Efficient Training: Can accommodate long time series without performance degradation.
📈 Performance Highlights:
iTransformer consistently outperforms other Transformer-based architectures in multivariate time series forecasting benchmarks.
📥 Installation
To get started, ensure you have Rust and Cargo installed. Then:
# Add iTransformer to your project dependencies
📝 Usage
use ;
📖 References
- Paper: iTransformer: Inverted Transformers Are Effective for Time Series Forecasting
- Original Implementation: thuml/iTransformer
- Inspired by: lucidrains/iTransformer
🏆 Acknowledgments
This work draws inspiration and insights from the following projects:
Special thanks to the contributors and researchers behind iTransformer for their pioneering work.
📑 Citation
🌟 Contributing
Contributions are welcome! Please follow the standard GitHub pull request process and ensure your code adheres to Rust best practices.
This repository is a Rust adaptation of the cutting-edge iTransformer model, aiming to bring efficient and scalable time series forecasting capabilities to the Rust ecosystem.