Skip to content

Commit

Permalink
version2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydwivedi75 committed Jun 12, 2020
1 parent 8c491ea commit 95daca2
Show file tree
Hide file tree
Showing 347 changed files with 14,610 additions and 4,417 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,13 @@ data/TSP/*.pkl
data/TSP/*.zip
data/TSP/pyconcorde/

#COLLAB
data/COLLAB/*
dataset/

#CSL
data/CSL/*.pkl
data/CSL/*.zip
data/CSL/*.pt


11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@

<br>

## 5. Adding a new graph neural network
## 5. Adding a Message-passing GCN

[Step-by-step directions](./docs/05_add_gnn.md) to add a GNN to the benchmark.
[Step-by-step directions](./docs/05_add_mpgcn.md) to add a MP-GCN to the benchmark.


<br>

## 6. Adding a Weisfeiler-Lehman GNN

[Step-by-step directions](./docs/06_add_wlgnn.md) to add a WL-GNN to the benchmark.



<br>

## 6. Reference
## 7. Reference

```
@article{dwivedi2020benchmarkgnns,
Expand Down
38 changes: 38 additions & 0 deletions configs/COLLAB_edge_classification_GAT_40k.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GAT",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GAT/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 12
},

"net_params": {
"L": 3,
"hidden_dim": 19,
"out_dim": 76,
"residual": true,
"readout": "mean",
"n_heads": 4,
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"self_loop": false,
"layer_type": "dgl"
}
}
39 changes: 39 additions & 0 deletions configs/COLLAB_edge_classification_GAT_edgefeat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GAT",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GAT/edgefeat/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 24
},

"net_params": {
"L": 3,
"hidden_dim": 20,
"out_dim": 60,
"residual": true,
"readout": "mean",
"n_heads": 3,
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"self_loop": false,
"edge_feat": false,
"layer_type": "edgefeat"
}
}
39 changes: 39 additions & 0 deletions configs/COLLAB_edge_classification_GAT_edgereprfeat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GAT",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GAT/edgereprfeat/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 24
},

"net_params": {
"L": 3,
"hidden_dim": 13,
"out_dim": 39,
"residual": true,
"readout": "mean",
"n_heads": 3,
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"self_loop": false,
"edge_feat": false,
"layer_type": "edgereprfeat"
}
}
39 changes: 39 additions & 0 deletions configs/COLLAB_edge_classification_GAT_isotropic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GAT",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GAT/isotropic/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 24
},

"net_params": {
"L": 3,
"hidden_dim": 20,
"out_dim": 60,
"residual": true,
"readout": "mean",
"n_heads": 3,
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"self_loop": false,
"edge_feat": false,
"layer_type": "isotropic"
}
}
36 changes: 36 additions & 0 deletions configs/COLLAB_edge_classification_GCN_40k.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GCN",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GCN/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 12
},

"net_params": {
"L": 3,
"hidden_dim": 74,
"out_dim": 74,
"residual": true,
"readout": "mean",
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"self_loop": false
}
}
37 changes: 37 additions & 0 deletions configs/COLLAB_edge_classification_GIN_40k.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"gpu": {
"use": true,
"id": 1
},

"model": "GIN",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GIN/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 12
},

"net_params": {
"L": 3,
"hidden_dim": 60,
"residual": true,
"readout": "sum",
"n_mlp_GIN": 2,
"learn_eps_GIN": true,
"neighbor_aggr_GIN": "sum",
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true
}
}
38 changes: 38 additions & 0 deletions configs/COLLAB_edge_classification_GatedGCN_40k.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"gpu": {
"use": true,
"id": 3
},

"model": "GatedGCN",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GatedGCN/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 12
},

"net_params": {
"L": 3,
"hidden_dim": 44,
"out_dim": 44,
"residual": true,
"edge_feat": false,
"readout": "mean",
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"layer_type": "edgereprfeat",
"pos_enc": false
}
}
39 changes: 39 additions & 0 deletions configs/COLLAB_edge_classification_GatedGCN_PE_40k.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"gpu": {
"use": true,
"id": 3
},

"model": "GatedGCN",
"dataset": "OGBL-COLLAB",

"out_dir": "out/COLLAB_edge_classification/GatedGCN/",

"params": {
"seed": 41,
"epochs": 500,
"batch_size": 32768,
"init_lr": 0.001,
"lr_reduce_factor": 0.5,
"lr_schedule_patience": 10,
"min_lr": 1e-5,
"weight_decay": 0.0,
"print_epoch_interval": 1,
"max_time": 12
},

"net_params": {
"L": 3,
"hidden_dim": 44,
"out_dim": 44,
"residual": true,
"edge_feat": false,
"readout": "mean",
"in_feat_dropout": 0.0,
"dropout": 0.0,
"batch_norm": true,
"layer_type": "edgereprfeat",
"pos_enc": true,
"pos_enc_dim": 40
}
}
Loading

0 comments on commit 95daca2

Please sign in to comment.