Skip to content

Bug in code for PGMExplainer  #73

Description

@AdamWhiteXAI

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions