divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.84k stars 281 forks source link

how to run set sparsity for subgraphx #137

Closed Usama113 closed 2 years ago

Usama113 commented 2 years ago

Hi, I am running experiments on dig-stable branch trying to reproduce the results in figure 6 and figure 7. I am running subgraphx.py code in benchmark/xgraph . I see in the config file, for subgraphx, there is no sparsity parameter like other exlpainers have. How can I control the sparsity for subgraphx. Thanks in advance.

Oceanusity commented 2 years ago

Hello, the sparsity is controlled by the parameter max_nodes. which is called config.explainers.max_ex_size in the configuration files.