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

Bug in code for PGMExplainer #73

Open
AdamWhiteXAI opened this issue Jan 18, 2024 · 0 comments
Open

Bug in code for PGMExplainer #73

AdamWhiteXAI opened this issue Jan 18, 2024 · 0 comments

Comments

@AdamWhiteXAI
Copy link

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:

  1. It returns: x, pert_mask
    where x which is the input to the function, rather than the perturbed values
  2. It actually should be returning: x_new and pert_mask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant