divelab / DIG

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

Subgraphx mismatch number of nodes for `BA2Motifs` dataset #146

Closed alirezadizaji closed 1 year ago

alirezadizaji commented 1 year ago

Hi, I have tried subgraphx on ba2motif dataset to capture 50% of nodes, it mostly works well but sometimes it didn't like the following image. 603_X here is my subgraphx config: SubgraphX(self.model, num_classes=2, device=..., explain_graph=True, reward_method='mc_l_shapley', min_atoms=12, high2low=True, subgraph_building_method='split', verbose=True)

alirezadizaji commented 1 year ago

I have fixed it by replacing 'mc_shapley' with 'mc_l_shapley' for reward_method

alirezadizaji commented 1 year ago

Sorry the problem still remains with changing reward method

Oceanusity commented 1 year ago

Hello, you can refer to our new tutorial materials, and it provides example to visualize results on ba_shapes dataset. https://github.com/divelab/DIG/blob/dig-stable/tutorials/KDD2022/xgraph_code_tutorial.ipynb