Skip to content

Commit

Permalink
Merge pull request #187 from Michael1015198808/patch-1
Browse files Browse the repository at this point in the history
Fix bugs in `Tutorial for GNN Explainability`
  • Loading branch information
Oceanusity authored Apr 3, 2023
2 parents b54e27e + 7ed1646 commit 8d7b020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorials/subgraphx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Since the graph model is a two-layer GNN model, the information only aggregates
from dig.xgraph.method.subgraphx import PlotUtils
from dig.xgraph.method.subgraphx import MCTS
from torch_geometric.utils import to_networkx
from torch_geometric.data import Data
subgraph_x, subgraph_edge_index, subset, edge_mask, kwargs = \
MCTS.__subgraph__(node_idx, data.x, data.edge_index, num_hops=2)
Expand Down Expand Up @@ -130,8 +131,7 @@ After MCTS searching and Shapley value computation, the subgraph with the highes
result = find_closest_node_result(explanation_results[prediction], max_nodes=max_nodes)
plotutils = PlotUtils(dataset_name='ba_shapes')
explainer.visualization(explanation_results,
prediction,
explainer.visualization(explanation_results[prediction],
max_nodes=max_nodes,
plot_utils=plotutils,
y=data.y)
Expand Down

0 comments on commit 8d7b020

Please sign in to comment.