This repository contains the demo code for PnP XAI system.
All Python dependencies are listed in environment.yml
. To set up the environment, follow these steps:
- Install the Anaconda environment by running the following command:
conda env create -f environment.yml
- Activate
pnp_xai
environment:conda activate pnp_xai
- Install the codebase by running:
pip install -e .
You can use the following command to run the explanation code:
python -W ignore -m scripts.SCRIPT
The placeholder should be replaced wit hthe appropriate script file:
SCRIPT
: A script code that defines a model and data to be explained with PnP XAI. Explanation results will be saved at$pnp_xai/results/{model}/{dataset}/{sample_idx}.png
.