witgaw commited on
Commit
c23a992
·
verified ·
1 Parent(s): 52e0b78

Upload MTGNN model trained on PEMS-BAY

Browse files
Files changed (5) hide show
  1. README.md +12 -9
  2. best_model.pth +1 -1
  3. config.json +17 -11
  4. metadata.json +5 -4
  5. model.pth +3 -0
README.md CHANGED
@@ -21,9 +21,10 @@ This model uses a graph neural network architecture that combines:
21
 
22
  ## Evaluation Metrics
23
 
24
- - **MAE (test split)**: 1.7949
25
- - **MAPE (test split)**: 0.0444
26
- - **RMSE (test split)**: 3.5008
 
27
 
28
 
29
  ## Dataset
@@ -33,13 +34,15 @@ This model uses a graph neural network architecture that combines:
33
  ## Usage
34
 
35
  ```python
36
- from utils.mtgnn import load_from_hub, get_model_and_data
37
 
38
- # Download checkpoint
39
- checkpoint_path = load_from_hub("your-username/mtgnn-pems-bay")
40
 
41
- # Load model (requires dataset and config)
42
- # See documentation for full loading example
 
 
43
  ```
44
 
45
  ## Training
@@ -50,7 +53,7 @@ Model was trained using the MTGNN implementation with default hyperparameters.
50
 
51
  If you use this model, please cite the original MTGNN paper:
52
 
53
- ```
54
  @inproceedings{wu2020connecting,
55
  title={Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks},
56
  author={Wu, Zonghan and Pan, Shirui and Long, Guodong and Jiang, Jing and Chang, Xiaojun and Zhang, Chengqi},
 
21
 
22
  ## Evaluation Metrics
23
 
24
+ - **Validation MAE**: 1.5766
25
+ - **Test MAE**: 31.9022
26
+ - **Test MAPE**: inf
27
+ - **Test RMSE**: 44.5574
28
 
29
 
30
  ## Dataset
 
34
  ## Usage
35
 
36
  ```python
37
+ from utils.mtgnn 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, 2, 207, 12) # (batch, features, nodes, seq_len)
45
+ predictions = model.predict(x)
46
  ```
47
 
48
  ## Training
 
53
 
54
  If you use this model, please cite the original MTGNN paper:
55
 
56
+ ```bibtex
57
  @inproceedings{wu2020connecting,
58
  title={Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networks},
59
  author={Wu, Zonghan and Pan, Shirui and Long, Guodong and Jiang, Jing and Chang, Xiaojun and Zhang, Chengqi},
best_model.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f606e09fc7b56bdf201dececffac393dc0819b0eaf0c2c2c6016d698eb5d5093
3
  size 2326709
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52615ac439b7d032295df2f186026c4d35506ab385a1ee4864aa0cedea4b4e88
3
  size 2326709
config.json CHANGED
@@ -1,6 +1,5 @@
1
  {
2
- "gcn_true": true,
3
- "buildA_true": true,
4
  "gcn_depth": 2,
5
  "dropout": 0.3,
6
  "subgraph_size": 20,
@@ -10,19 +9,26 @@
10
  "residual_channels": 32,
11
  "skip_channels": 64,
12
  "end_channels": 128,
13
- "seq_length": 12,
14
  "in_dim": 2,
15
- "out_dim": 12,
 
16
  "layers": 3,
17
  "propalpha": 0.05,
18
- "tanhalpha": 3,
19
- "layer_norm_affline": true,
 
 
20
  "learning_rate": 0.001,
21
  "weight_decay": 0.0001,
22
  "clip": 5,
23
- "step_size": 100,
24
- "epochs": 100,
25
- "batch_size": 64,
26
- "save_iter": 1,
27
- "num_nodes": 325
 
 
 
 
 
28
  }
 
1
  {
2
+ "num_nodes": 325,
 
3
  "gcn_depth": 2,
4
  "dropout": 0.3,
5
  "subgraph_size": 20,
 
9
  "residual_channels": 32,
10
  "skip_channels": 64,
11
  "end_channels": 128,
 
12
  "in_dim": 2,
13
+ "seq_in_len": 12,
14
+ "seq_out_len": 12,
15
  "layers": 3,
16
  "propalpha": 0.05,
17
+ "tanhalpha": 3.0,
18
+ "batch_size": 64,
19
+ "val_batch_size": 8,
20
+ "epochs": 100,
21
  "learning_rate": 0.001,
22
  "weight_decay": 0.0001,
23
  "clip": 5,
24
+ "step_size1": 2500,
25
+ "step_size2": 100,
26
+ "gcn_true": true,
27
+ "buildA_true": true,
28
+ "cl": true,
29
+ "device": "cuda",
30
+ "seed": 101,
31
+ "print_every": 999999,
32
+ "save": "models/mtgnn_pems-bay/",
33
+ "dataset_name": "PEMS-BAY"
34
  }
metadata.json CHANGED
@@ -1,10 +1,11 @@
1
  {
2
  "dataset": "PEMS-BAY",
3
- "upload_date": "2025-11-05T20:28:34.444690",
4
  "metrics": {
5
- "MAE (test split)": 1.7948928273018496,
6
- "MAPE (test split)": 0.04443478034119363,
7
- "RMSE (test split)": 3.5007667902075212
 
8
  },
9
  "framework": "PyTorch",
10
  "model_type": "MTGNN"
 
1
  {
2
  "dataset": "PEMS-BAY",
3
+ "upload_date": "2025-11-07T19:05:10.987707",
4
  "metrics": {
5
+ "Validation MAE": 1.5765657424926758,
6
+ "Test MAE": 31.90218734741211,
7
+ "Test MAPE": Infinity,
8
+ "Test RMSE": 44.55735397338867
9
  },
10
  "framework": "PyTorch",
11
  "model_type": "MTGNN"
model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:684a3a01da0d8ae181ea69bb969637bea3f025a72bcd2287316e55e712062be9
3
+ size 2755777