Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Model] Implemented SubgraphX Explainer for Homogeneous graph #5315

Merged
merged 16 commits into from
Feb 23, 2023
Prev Previous commit
Next Next commit
test paramter adj to complete the test under 20s
  • Loading branch information
kxm180046 committed Feb 22, 2023
commit 5dcc863835f6ef70bdcd003aac72c46259bdb468
2 changes: 1 addition & 1 deletion tests/python/pytorch/nn/test_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ def forward(self, g, h):

model = Model(feat.shape[1], n_classes)
model = model.to(ctx)
explainer = nn.SubgraphX(model, num_hops=1)
explainer = nn.SubgraphX(model, num_hops=1, shapley_steps=20, num_rollouts=5, coef=2.0)
explainer.explain_graph(g, feat, target_class=0)


Expand Down