This repository implements paper "RoCourseNet: Distributionally Robust Training of a Prediction Aware Recourse Model" (submitted to Neurips 2022).
- install pytorch
- install all dependencies
pip install -e
# train RoCourseNet
python -m scripts.train_cfnet --n_steps 13
# train CounterNet
python -m scripts.train_cfnet --model_name CounterNet
# train RoCourseNet on the German Credit dataset
python -m scripts.train_cfnet --data_name german_credit
python -m scripts.eval_cf_baselines
python -m scripts.eval_attacker --data_name "loan" --model_name AdvCounterNet
See assets/weights
nbdev_build_lib
nbdev_update_lib
nbdev_clean_nbs