Counterfactual Explanations and How to Find Them
- cf_eval contains definition of the metrics used to evaluate the counterfactual explainers
- experiments contains the file to run to repeat the experiments
- sace contains the custom implementation of some counterfactual explainers
- Python > 3.7
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txtAdding Scamandar package directory to pythonpath so that we can import the experiments as is
cat >> .venv/bin/activate <<'BASH'
export PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
BASHIn case the venv is active, you have to run deactivate and source .venv/bin/activate again to take effect.
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txt