witgaw commited on
Commit
765f977
·
verified ·
1 Parent(s): cfb8367

Upload Graph-WaveNet model trained on PEMS-BAY

Browse files
Files changed (4) hide show
  1. README.md +68 -0
  2. config.json +17 -0
  3. metadata.json +11 -0
  4. model.pth +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - traffic-forecasting
4
+ - time-series
5
+ - graph-neural-network
6
+ - graph-wavenet
7
+ datasets:
8
+ - pems-bay
9
+ ---
10
+
11
+ # Graph-WaveNet Model - PEMS-BAY
12
+
13
+ Graph WaveNet for traffic speed forecasting, combining graph convolution with dilated causal convolution.
14
+
15
+ ## Model Description
16
+
17
+ This model uses a graph neural network architecture that combines:
18
+ - Adaptive adjacency matrix learning
19
+ - Spatial graph convolution for capturing spatial dependencies
20
+ - Temporal convolution with dilated causal convolutions
21
+ - Multi-scale temporal receptive field
22
+
23
+ ## Evaluation Metrics
24
+
25
+ - **Test MAE**: 1.5771
26
+ - **Test MAPE**: inf
27
+ - **Test RMSE**: 3.6337
28
+
29
+
30
+ ## Dataset
31
+
32
+ **PEMS-BAY**: Traffic speed data from highway sensors.
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ from utils.gwnet import load_from_hub
38
+
39
+ # Load model from Hub
40
+ model = load_from_hub("PEMS-BAY")
41
+
42
+ # Get predictions
43
+ import numpy as np
44
+ x = np.random.randn(10, 12, 207, 2) # (batch, seq_len, nodes, features)
45
+ predictions = model.predict(x)
46
+ ```
47
+
48
+ ## Training
49
+
50
+ Model was trained using the Graph-WaveNet implementation with default hyperparameters.
51
+
52
+ ## Citation
53
+
54
+ If you use this model, please cite the original Graph WaveNet paper:
55
+
56
+ ```bibtex
57
+ @inproceedings{wu2019graph,
58
+ title={Graph WaveNet for Deep Spatial-Temporal Graph Modeling},
59
+ author={Wu, Zonghan and Pan, Shirui and Long, Guodong and Jiang, Jing and Zhang, Chengqi},
60
+ booktitle={Proceedings of the 28th International Joint Conference on Artificial Intelligence},
61
+ pages={1907--1913},
62
+ year={2019}
63
+ }
64
+ ```
65
+
66
+ ## License
67
+
68
+ This model checkpoint is released under the same license as the training code.
config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "num_nodes": 325,
3
+ "seq_length": 12,
4
+ "horizon": 12,
5
+ "input_dim": 2,
6
+ "output_dim": 1,
7
+ "nhid": 32,
8
+ "epochs": 100,
9
+ "batch_size": 64,
10
+ "learning_rate": 0.001,
11
+ "weight_decay": 0.0001,
12
+ "dropout": 0.3,
13
+ "device": "cuda",
14
+ "gcn_bool": true,
15
+ "addaptadj": true,
16
+ "adjtype": "doubletransition"
17
+ }
metadata.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "PEMS-BAY",
3
+ "upload_date": "2025-11-09T16:48:12.130449",
4
+ "metrics": {
5
+ "Test MAE": 1.5771052837371826,
6
+ "Test MAPE": Infinity,
7
+ "Test RMSE": 3.6337056159973145
8
+ },
9
+ "framework": "PyTorch",
10
+ "model_type": "Graph-WaveNet"
11
+ }
model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c6fd73514b0a0c99feed492ef5ed00472bfd260db817c390e459413d97f84c5
3
+ size 1284851