Thanks to visit codestin.com
Credit goes to github.com

Skip to content

laibajiu/STLAformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Position-Aware Unified Embedding with Linear Attention for Distinguishable Flow Modeling

Tao Cui, Yudong Lu, Di Dong, Chongguang Ren, Zhijian Qu, Panjing Li. Transportation Research Part C: Emerging Technologies, 2026.

This is a PyTorch implementation of STLAformer, as described in our paper:
https://doi.org/10.1016/j.trc.2025.105423


Framework of STLAformer


Performance on Traffic Forecasting Benchmarks

Evaluations of STLAformer


Citation

@article{cui2026linear,
  title={Position-Aware Unified Embedding with Linear Attention for Distinguishable Flow Modeling},
  author={Cui, Tao and Lu, Yudong and Dong, Di and Ren, Chongguang and Qu, Zhijian and Li, Panjing},
  journal={Transportation Research Part C: Emerging Technologies},
  pages={105423},
  year={2026},
  publisher={Elsevier}
}

Required Packages

pytorch>=1.11
numpy
pandas
matplotlib
pyyaml
pickle
torchinfo

PeMSD3 & PeMSD4 & PeMSD7 & PeMSD8


Training Commands

cd model/  
python train.py --d {dataset} --g {gpu_id}  

Testing Commands

Select TestPreTrained.py, choose the dataset to be tested, and import the trained model parameters from {DATASET_NAME}.pth in the pre-trained folder.  

About

STLAformer for traffic flow forecasting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages