File size: 1,485 Bytes
09747aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
tags:
- traffic-forecasting
- time-series
- graph-neural-network
- stgformer_pretrained
datasets:
- pems-bay
---

# Spatial-Temporal Graph Transformer (Pretrained) - PEMS-BAY

Spatial-Temporal Graph Transformer (Pretrained) (STGFORMER_PRETRAINED) trained on PEMS-BAY dataset for traffic speed forecasting.

## Model Description

STGFormer pretrained checkpoint for PEMS-BAY. This checkpoint contains pretrained model weights and imputation head from masked node pretraining. Use with load_from config option.



## Dataset

**PEMS-BAY**: Traffic speed data from highway sensors.

## Usage

```python
from utils.stgformer import load_from_hub

# Load model from Hub
model, scaler = load_from_hub("PEMS-BAY", hf_repo_prefix="STGFORMER_PRETRAINED")

# Get predictions
from utils.stgformer import get_predictions
predictions = get_predictions(model, scaler, test_dataset)
```

## Training

Model was trained using the STGFORMER_PRETRAINED implementation with default hyperparameters.

## Citation

If you use this model, please cite the original STGFORMER_PRETRAINED paper:

```bibtex
@inproceedings{lan2022stgformer,
  title={STGformer: Spatial-Temporal Graph Transformer for Traffic Forecasting},
  author={Lan, Shengnan and Ma, Yong and Huang, Weijia and Wang, Wanwei and Yang, Hui and Li, Peng},
  booktitle={IEEE Transactions on Neural Networks and Learning Systems},
  year={2022}
}
```

## License

This model checkpoint is released under the same license as the training code.