LTSF-Linear

(★ 2,506)

[AAAI-23 Oral] Official implementation of the paper "Are Transformers Effective for Time Series Forecasting?"

File Explorer

  • .gitignore
  • LICENSE
  • LTSF-Benchmark.md
  • README.md
  • requirements.txt
  • run_longExp.py
  • run_stat.py
  • weight_plot.py

# Installation Guide

python
Prerequisites

Setup Steps

conda create -n LTSF_Linear python=3.6.9

Create a conda virtual environment.

conda activate LTSF_Linear

Activate the conda environment.

pip install -r requirements.txt

Install required python packages.

mkdir dataset

Create the dataset directory.

sh scripts/EXP-LongForecasting/Linear/exchange_rate.sh

Start training the model on the exchange rate dataset.

Key Commands

pip install -r requirements.txt

Install python libraries required for the project.

sh scripts/EXP-LongForecasting/Linear/exchange_rate.sh

Run LTSF-Linear model training via the specified shell script.

python weight_plot.py

Run weight visualization for the trained model.

Datasets must be downloaded from Google Drive and placed in the ./dataset directory.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

// repository documentation