├── LICENSE.txt ├── README.md ├── models ├── data_loader.py ├── model_builder.py ├── saliency_utils.py ├── train_imdb.py ├── train_lstm_cnn.py ├── train_transformers.py └── train_twitter.py ├── preprocessing ├── dataset_stat.py ├── imdb.py └── tweet.py ├── requirements.txt ├── sal_example.png ├── saliency_eval ├── confidence.py ├── consist_data.py ├── consist_data_sample_instance_pairs.py ├── consistency_precompute.py ├── consistency_rats.py ├── faithfulness.py └── human_agreement.py └── saliency_gen ├── generate_random_sal.py ├── interpret_grads_occ.py ├── interpret_lime.py ├── interpret_shap.py └── preds.py /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/README.md -------------------------------------------------------------------------------- /models/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/data_loader.py -------------------------------------------------------------------------------- /models/model_builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/model_builder.py -------------------------------------------------------------------------------- /models/saliency_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/saliency_utils.py -------------------------------------------------------------------------------- /models/train_imdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/train_imdb.py -------------------------------------------------------------------------------- /models/train_lstm_cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/train_lstm_cnn.py -------------------------------------------------------------------------------- /models/train_transformers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/train_transformers.py -------------------------------------------------------------------------------- /models/train_twitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/models/train_twitter.py -------------------------------------------------------------------------------- /preprocessing/dataset_stat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/preprocessing/dataset_stat.py -------------------------------------------------------------------------------- /preprocessing/imdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/preprocessing/imdb.py -------------------------------------------------------------------------------- /preprocessing/tweet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/preprocessing/tweet.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/requirements.txt -------------------------------------------------------------------------------- /sal_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/sal_example.png -------------------------------------------------------------------------------- /saliency_eval/confidence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/confidence.py -------------------------------------------------------------------------------- /saliency_eval/consist_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/consist_data.py -------------------------------------------------------------------------------- /saliency_eval/consist_data_sample_instance_pairs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/consist_data_sample_instance_pairs.py -------------------------------------------------------------------------------- /saliency_eval/consistency_precompute.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/consistency_precompute.py -------------------------------------------------------------------------------- /saliency_eval/consistency_rats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/consistency_rats.py -------------------------------------------------------------------------------- /saliency_eval/faithfulness.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/faithfulness.py -------------------------------------------------------------------------------- /saliency_eval/human_agreement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_eval/human_agreement.py -------------------------------------------------------------------------------- /saliency_gen/generate_random_sal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_gen/generate_random_sal.py -------------------------------------------------------------------------------- /saliency_gen/interpret_grads_occ.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_gen/interpret_grads_occ.py -------------------------------------------------------------------------------- /saliency_gen/interpret_lime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_gen/interpret_lime.py -------------------------------------------------------------------------------- /saliency_gen/interpret_shap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_gen/interpret_shap.py -------------------------------------------------------------------------------- /saliency_gen/preds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/copenlu/xai-benchmark/HEAD/saliency_gen/preds.py --------------------------------------------------------------------------------