Upload MTGNN model trained on PEMS-BAY
Browse files- README.md +12 -9
- best_model.pth +1 -1
- config.json +17 -11
- metadata.json +5 -4
- 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 |
-
- **
|
| 25 |
-
- **
|
| 26 |
-
- **
|
|
|
|
| 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
|
| 37 |
|
| 38 |
-
#
|
| 39 |
-
|
| 40 |
|
| 41 |
-
#
|
| 42 |
-
|
|
|
|
|
|
|
| 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:
|
| 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 |
-
"
|
| 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 |
-
"
|
|
|
|
| 16 |
"layers": 3,
|
| 17 |
"propalpha": 0.05,
|
| 18 |
-
"tanhalpha": 3,
|
| 19 |
-
"
|
|
|
|
|
|
|
| 20 |
"learning_rate": 0.001,
|
| 21 |
"weight_decay": 0.0001,
|
| 22 |
"clip": 5,
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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-
|
| 4 |
"metrics": {
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
| 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
|