Skip to content

Select subset of features for perturbations [Counterfactuals Guided by Prototypes] #327

Open
@gibranhasan14

Description

@gibranhasan14

Hello,

I'm new to alibi and am loving it so far! I've been going through the Counterfactual Proto examples and wanted to ask how I could specify which input features should be perturbed for the counterfactual instances?

My dataset includes many features (Categorial & Numerical), but only a select few can realistically be altered.

Using the Counterfactual explanations with one-hot encoded categorical variables for the adult dataset as an example:

After training and fitting the Neural Net, if I only wanted to select features "Education" and "Age" as the instances to attack, what changes would I need to make? Would it make sense to just select the desired features in the sample instance from X_train?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BlockedIssue is blocked by some bigger issueType: BugSomething isn't workingType: EnhancementA better way of doing thingsType: Method extensionExtensions to existing methods

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions