Reformating, fixing many bugs
This commit is contained in:
parent
10baa1d443
commit
fbc685503c
14 changed files with 369 additions and 245 deletions
|
|
@ -37,12 +37,12 @@ def set_eixgnn_cfg(eixgnn_cfg):
|
|||
return eixgnn_cfg
|
||||
|
||||
eixgnn_cfg.seed = 0
|
||||
eixgnn_cfg.L = 50
|
||||
eixgnn_cfg.p = 0.5
|
||||
eixgnn_cfg.importance_sampling_strategy = "node"
|
||||
eixgnn_cfg.L = 5
|
||||
eixgnn_cfg.p = 0.1
|
||||
eixgnn_cfg.importance_sampling_strategy = "neighborhood"
|
||||
eixgnn_cfg.domain_similarity = "relative_edge_density"
|
||||
eixgnn_cfg.signal_similarity = "KL"
|
||||
eixgnn_cfg.shapley_value_approx = 100
|
||||
eixgnn_cfg.shapley_value_approx = 20
|
||||
|
||||
|
||||
def assert_eixgnn_cfg(eixgnn_cfg):
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ def set_scgnn_cfg(scgnn_cfg):
|
|||
scgnn_cfg.depth = "all"
|
||||
scgnn_cfg.interest_map_norm = True
|
||||
scgnn_cfg.score_map_norm = True
|
||||
scgnn_cfg.target_baseline = "inference"
|
||||
|
||||
|
||||
def assert_cfg(scgnn_cfg):
|
||||
|
|
|
|||
|
|
@ -57,9 +57,7 @@ def set_cfg(explaining_cfg):
|
|||
|
||||
explaining_cfg.dataset.name = "Cora"
|
||||
|
||||
explaining_cfg.dataset.items = None
|
||||
|
||||
explaining_cfg.run_topological_stat = True
|
||||
explaining_cfg.dataset.item = None
|
||||
|
||||
# ----------------------------------------------------------------------- #
|
||||
# Model options
|
||||
|
|
@ -116,7 +114,7 @@ def set_cfg(explaining_cfg):
|
|||
explaining_cfg.threshold.config.type = "all"
|
||||
|
||||
explaining_cfg.threshold.value = CN()
|
||||
explaining_cfg.threshold.value.hard = [i * 0.05 for i in range(21)]
|
||||
explaining_cfg.threshold.value.hard = [(i * 10) / 100 for i in range(1, 10)]
|
||||
explaining_cfg.threshold.value.topk = [2, 3, 5, 10, 20, 30, 50]
|
||||
|
||||
# which objectives metrics to computes, either all or one in particular if implemented
|
||||
|
|
@ -131,7 +129,7 @@ def set_cfg(explaining_cfg):
|
|||
# Whether or not recomputing metrics if they already exist
|
||||
|
||||
explaining_cfg.adjust = CN()
|
||||
explaining_cfg.adjust.strategy = "rpn"
|
||||
explaining_cfg.adjust.strategy = "rpns"
|
||||
|
||||
explaining_cfg.attack = CN()
|
||||
explaining_cfg.attack.name = "all"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue