Using a vision MAE for time series forecasting.
Project description
VisionTS
Visual Masked Autoencoders Are Free-Lunch Zero-Shot Time Series Forecasters
📃 Paper | 🔍 About | 🔨 Setup | 🚀 Quick Start | 📊 Evaluation | 🔗 Citation
🔍 About
-
We propose VisionTS, a time series forecasting (TSF) foundation model building from rich, high-quality natural images 🖼️.
- This TSF foundation model is conceptually different from the existing models (text-based 📝 or time series-based 📈), but it shows a comparable or even better performance without any adaptation on time series data.
- We reformulate the TSF task as an image reconstruction task, which is further processed by a visual masked autoencoder (MAE).
🔨 Setup
Our repository is built on Time-Series-Library, MAE, and GluonTS. Please install the dependencies through requirements.txt
.
🚀 Quick Start
Please refer to demo.ipynb for a quick start on how to forecast time series using VisionTS, with a clear visualization of the image reconstruction. Our main code is under the visionts directory, which can be imported to your project for use.
📊 Evaluation
Long-Term TSF Benchmarks (Zero-Shot)
We evaluate our methods on 6 long-term TSF benchmarks for zero-shot forecasting. The scripts are under long_term_tsf/scripts/vision_ts_zeroshot
. Before running, you should first follow the instructions of Time-Series-Library to download datasets into long_term_tsf/dataset
. Using the following command for reproduction:
cd long_term_tsf/
bash scripts/vision_ts_zeroshot/$SOME_DATASET.sh
Monash (Zero-Shot)
We evaluate our methods on 29 Monash TSF benchmarks. Using the following command for reproduction, where the benchmarks will be automatically downloaded.
cd monash/
python run.py
Long-Term TSF Benchmarks (Full-Shot)
We evaluate our methods on 8 long-term TSF benchmarks for full-shot forecasting. The scripts are under long_term_tsf/scripts/vision_ts_fullshot
. Using the following command for reproduction:
cd long_term_tsf/
bash scripts/vision_ts_fullshot/$SOME_DATASET.sh
🔗 Citation
@misc{chen2024visionts,
title={VisionTS: Visual Masked Autoencoders Are Free-Lunch Zero-Shot Time Series Forecasters},
author={Mouxiang Chen and Lefei Shen and Zhuo Li and Xiaoyun Joy Wang and Jianling Sun and Chenghao Liu},
year={2024},
eprint={2408.17253},
archivePrefix={arXiv},
url={https://arxiv.org/abs/2408.17253},
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file visionts-0.1.0.tar.gz
.
File metadata
- Download URL: visionts-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aef467c6b79f15922e1b6188bb6c1907bc3a3431096818da15b157d6400f5dd |
|
MD5 | 4a575e811d8e5225204f247a0ce65d2c |
|
BLAKE2b-256 | dc9e6fe9e61084793c22ba4cff419fe4c1c61225b3502633c5a94fadbd9a4c13 |
File details
Details for the file visionts-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: visionts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a058dab4aa206e0e6cb69e473de6a4352167982679e6563b0683006bb209b873 |
|
MD5 | 93b7cfc7910b2c800003fd256b5c21d7 |
|
BLAKE2b-256 | 86ba053d3de5d8f4b82e1163a2079061556d009a9f0ab57202abe2ea744a63b4 |