Skip to content

Commit 37a3e01

Browse files
committed
submission configs OBS and iRand
1 parent 4427c96 commit 37a3e01

20 files changed

+72
-60
lines changed

config/snippets/datasets/GCounteRGANcentr_and_weights.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

config/snippets/datasets/CLEARpadding_centr_and_weights_and_causality.json renamed to config/snippets/datasets/centr_weights_causality_multpadding.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manipulators": [
3-
{ "class": "src.dataset.manipulators.CLEAR_manipulator.CLEARPadding", "parameters": {} },
3+
{ "class": "src.dataset.manipulators.multpadding.PaddingGCounteRGAN", "parameters": {} },
44
{ "class": "src.dataset.manipulators.causality.Causality", "parameters": {} },
55
{ "class": "src.dataset.manipulators.centralities.NodeCentrality", "parameters": {} },
66
{ "class": "src.dataset.manipulators.weights.EdgeWeights", "parameters": {} }

config/snippets/do-pairs/DBLP_v1_GCN.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"oracle": {
1212
"class": "src.oracle.nn.torch.OracleTorch",
1313
"parameters": {
14-
"epochs": 100,
14+
"epochs": 200,
1515
"batch_size": 64,
1616
"optimizer": {
1717
"class": "torch.optim.AdamW",
1818
"parameters": {
19-
"lr":0.005597827355896938,
20-
"weight_decay":0.022451620056299467
19+
"lr":0.004,
20+
"weight_decay":0
2121
}
2222
},
2323
"loss_fn": {
@@ -29,10 +29,10 @@
2929
"model": {
3030
"class": "src.oracle.nn.gcn.DownstreamGCN",
3131
"parameters": {
32-
"num_conv_layers":5,
33-
"num_dense_layers":9,
34-
"conv_booster":2,
35-
"linear_decay":0.3211868888719398
32+
"num_conv_layers":4,
33+
"num_dense_layers":2,
34+
"conv_booster":5,
35+
"linear_decay":1
3636
}
3737
}
3838
}

config/submission/DBLP_v1_GCN_OBS_fold0.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 0, "retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1,"retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights_and_causality.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_OBS_fold1.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 1, "retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1,"retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights_and_causality.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_OBS_fold2.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 2, "retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1,"retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights_and_causality.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_OBS_fold3.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 3, "retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1,"retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights_and_causality.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_OBS_fold4.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 4, "retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1,"retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights_and_causality.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_iRand_fold0.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 0,"retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1, "retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_iRand_fold1.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 1,"retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1, "retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_iRand_fold2.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 2,"retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1, "retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_iRand_fold3.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 3,"retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1, "retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

config/submission/DBLP_v1_GCN_iRand_fold4.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"experiment" : {
3-
"scope": "dblp_v1_configs",
3+
"scope": "dblp_v1_submission",
44
"parameters" : {
55
"lock_release_tout":120,
66
"propagate":[
77
{"in_sections" : ["explainers"],"params" : {"fold_id": 4,"retrain": false}},
88
{"in_sections" : ["do-pairs/oracle"],"params" : {"fold_id": -1, "retrain": false}},
9-
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_and_weights.json"}}
9+
{"in_sections": ["do-pairs/dataset"],"params": {"compose_man" : "config/snippets/datasets/centr_weights_causality_multpadding.json"}}
1010
]
1111
}
1212
},

environment.yml

4.06 KB
Binary file not shown.

hpsearch/config/DBLP_v1_GCN.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"dataset": {
3+
"class": "src.dataset.dataset_base.Dataset",
4+
"parameters": {
5+
"generator": {
6+
"class": "src.dataset.generators.dblp_v1.DBLP",
7+
"parameters": {"data_dir": "data/datasets/DBLP_v1/", "dataset_name": "DBLP_v1"}
8+
}
9+
}
10+
},
11+
"oracle":{
12+
"class": "src.oracle.nn.torch.OracleTorch",
13+
"parameters": {
14+
"epochs": 200,
15+
"batch_size": 64,
16+
"optimizer": {
17+
"class": "torch.optim.AdamW",
18+
"parameters": {
19+
"lr":0.004,
20+
"weight_decay":0
21+
}
22+
},
23+
"loss_fn": {
24+
"class": "torch.nn.CrossEntropyLoss",
25+
"parameters": {
26+
"reduction":"mean"
27+
}
28+
},
29+
"model": {
30+
"class": "src.oracle.nn.gcn.DownstreamGCN",
31+
"parameters": {
32+
"num_conv_layers":4,
33+
"num_dense_layers":2,
34+
"conv_booster":5,
35+
"linear_decay":1
36+
}
37+
}
38+
}
39+
}
40+
}

src/dataset/generators/dblp_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ def get_node_features(self, readme_path, nl_file_path):
149149
node_features['value'] = self.normalize(node_features['value'])
150150
assert np.all(node_features['value'].between(0,1)) #values are in [0,1]
151151

152-
return node_features[['type', 'value']].values
152+
return node_features[['type', 'value']].to_numpy()

src/dataset/manipulators/CLEAR_manipulator.py

Lines changed: 0 additions & 15 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import networkx as nx
21
import numpy as np
32
from src.dataset.manipulators.base import BaseManipulator
43

54
class PaddingGCounteRGAN(BaseManipulator):
65

76

87
def node_info(self, instance):
9-
adj = instance.data
10-
n_nodes=adj.shape[0]
8+
9+
n_nodes=instance.num_nodes
1110
mult=4
1211

1312
if (n_nodes==0):
@@ -18,5 +17,4 @@ def node_info(self, instance):
1817
instance.data=np.pad(instance.data,((0,num_padding),(0,num_padding)),'constant',constant_values=0)
1918
instance.node_features=np.pad(instance.node_features,((0,num_padding),(0,0)),'constant',constant_values=0)
2019

21-
return {}
22-
20+
return {}

src/dataset/manipulators/padding.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import numpy as np
42

53
from src.dataset.manipulators.base import BaseManipulator

src/dataset/manipulators/weights.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import numpy as np
42

53
from src.dataset.manipulators.base import BaseManipulator

0 commit comments

Comments
 (0)