Here are data and codes for the paper News Recommender Favors Liberals: Estimating Algorithmic Bias through Causal Inference.
- Download the MIND dataset from https://msnews.github.io/.
- Unzip the files
MINDlarge_train.zip
andMINDlarge_dev.zip
. - Put the folders
MINDlarge_train
andMINDlarge_dev
intodata/mind
. - Run
chmod 777 prepare_data.sh
and./prepare_data.sh
indata/mind
.
- Run
chmod 777 run.sh
and./run.sh
incode
to get the effects used in the paper. For convinience, we have already prepared them in./code/get_effect/result/mind
. - All the figures and results presented in our paper and SI can be reproduced by running
./code/figures.ipynb
. You can cancel comments withplt.savefig()
and the corresponding figures will be automatedly saved in./figures
.
Thanks for using our code!