Closed simoons95 closed 1 year ago
Hello, thank you for your issue.
For the GNNExplainer, I think you can take None
to replace the edge_masks
as the input of eval_related_pred
. Since the parameter related_preds
is the key for calculating metrics, it's okay not to feed the explanation mask to eval_related_pred
.
This is the same situation for the SubgraphX
, you can just save and use the related_pred
value.
Hello,
I try to use the dig library, but I am unable to use the call function of SubgraphX. The error is that it saves a
list of results
, which is turned into alist of list of MCTSNode
, which in turn is used infind_closest_node_result
as if it was alist of MCTSNode
, with thex.coalition
on line 27 of /DIG/dig/xgraph/method/subgraphx.py returning an error asx
is alist
. I also have a cache problem with GNNExplainer, with theedge_masks
kwarg being used as the name of the cache as well as when calling theself.eval_related_pred
function. I think you should simply removeedge_masks
from the kwargs once it has been used.