I believe there is a significant error for PGMExplainer.
The comments for function 'PGM_perturb_node_features' (in GraphXAI/graphxai/utils/perturb/perturb.py) state that it should return:
x_pert (torch.Tensor, [n x d]): perturbed feature matrix
node_mask (torch.Tensor, [n]): Boolean mask of perturbed nodes
However:
- It returns: x, pert_mask
where x which is the input to the function, rather than the perturbed values
- It actually should be returning: x_new and pert_mask
I believe there is a significant error for PGMExplainer.
The comments for function 'PGM_perturb_node_features' (in GraphXAI/graphxai/utils/perturb/perturb.py) state that it should return:
However:
where x which is the input to the function, rather than the perturbed values