├── .gitignore ├── CEBaB-v1.1.zip ├── README.md ├── _config.yml ├── _layouts └── default.html ├── cebab_datasheet.md ├── code ├── README.md ├── causal_eval │ ├── .DS_Store │ └── experiments │ │ ├── .DS_Store │ │ ├── README.md │ │ ├── causalm.py │ │ ├── causalm_probing.py │ │ ├── concept_shap.py │ │ ├── inlp.py │ │ ├── methods │ │ ├── __init__.py │ │ ├── causalm │ │ │ ├── __init__.py │ │ │ ├── bert_causalm.py │ │ │ ├── configuration_causalm.py │ │ │ ├── trainer_causalm.py │ │ │ └── utils │ │ │ │ ├── __init__.py │ │ │ │ ├── causal_evaluation_paths.py │ │ │ │ ├── constants.py │ │ │ │ ├── cuda.py │ │ │ │ ├── data.py │ │ │ │ ├── data_utils.py │ │ │ │ ├── head_types.py │ │ │ │ ├── main_utils.py │ │ │ │ └── metrics.py │ │ ├── conceptSHAP │ │ │ ├── concept_shap_utils.py │ │ │ └── parse_results.py │ │ ├── embedding.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ ├── constants.py │ │ │ ├── data_utils.py │ │ │ ├── methods_utils.py │ │ │ └── modeling_utils.py │ │ ├── predictions.py │ │ ├── run_opentable.py │ │ ├── scripts │ │ ├── causalm.sh │ │ ├── concept_shap.sh │ │ ├── embedding.sh │ │ ├── inlp.sh │ │ ├── run_opentable.sh │ │ └── tcav.sh │ │ └── tcav.py ├── eval_pipeline │ ├── Readme.md │ ├── __init__.py │ ├── customized_models │ │ ├── __init__.py │ │ ├── bert.py │ │ ├── gpt2.py │ │ ├── lstm │ │ │ ├── embeddings.bin │ │ │ └── lstm.py │ │ └── roberta.py │ ├── example-pipeline.ipynb │ ├── explainers │ │ ├── __init__.py │ │ ├── abstract_explainer.py │ │ ├── causalm │ │ │ ├── __init__.py │ │ │ ├── data │ │ │ │ ├── __init__.py │ │ │ │ └── data_collator.py │ │ │ ├── explainer_causalm.py │ │ │ ├── modeling │ │ │ │ ├── __init__.py │ │ │ │ ├── bert │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── configuration_bert.py │ │ │ │ │ ├── modeling_bert.py │ │ │ │ │ └── supported_heads.py │ │ │ │ ├── configuration_causalm.py │ │ │ │ ├── gpt2 │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── configuration_gpt2.py │ │ │ │ │ ├── modeling_gpt2.py │ │ │ │ │ └── supported_heads.py │ │ │ │ ├── lstm │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── configuration_lstm.py │ │ │ │ │ ├── lstm_vanilla.py │ │ │ │ │ ├── modeling_lstm.py │ │ │ │ │ └── supported_heads.py │ │ │ │ └── roberta │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── configuration_roberta.py │ │ │ │ │ ├── modeling_roberta.py │ │ │ │ │ └── supported_heads.py │ │ │ ├── run_causalm_cebab.py │ │ │ ├── scripts │ │ │ │ ├── .DS_Store │ │ │ │ └── run_causalm_cebab.sh │ │ │ ├── trainer.py │ │ │ └── utils │ │ │ │ ├── .DS_Store │ │ │ │ ├── __init__.py │ │ │ │ ├── cebab_dataset.py │ │ │ │ ├── consts.py │ │ │ │ ├── lstm_embeddings.bin │ │ │ │ ├── paths.py │ │ │ │ └── supported_models.py │ │ ├── concept_shap │ │ │ ├── __init__.py │ │ │ ├── explainer_concept_shap.py │ │ │ └── utils_concept_shap.py │ │ ├── conexp.py │ │ ├── explainer_utils.py │ │ ├── inlp.py │ │ ├── lime │ │ │ ├── __init__.py │ │ │ ├── concept_lime.py │ │ │ ├── concept_lime2.py │ │ │ └── concept_lime3.py │ │ ├── random_explainer.py │ │ ├── s_learner.py │ │ └── tcav.py │ ├── main.py │ ├── models │ │ ├── __init__.py │ │ ├── abstract_model.py │ │ ├── bert.py │ │ ├── gpt2.py │ │ ├── lstm.py │ │ ├── roberta.py │ │ └── simple_lr.py │ ├── pipeline.py │ ├── requirements.txt │ ├── run_all.sh │ └── utils │ │ ├── __init__.py │ │ ├── constants.py │ │ ├── data_utils.py │ │ ├── main_utils.py │ │ └── metric_utils.py └── training │ ├── customized_models │ ├── bert.py │ ├── gpt2.py │ ├── lstm │ │ ├── embeddings.bin │ │ └── lstm.py │ └── t5.py │ ├── run_cebab.py │ ├── run_cebab_t5.py │ └── run_experiments.sh ├── favicon.ico ├── favicon.png └── index.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/.gitignore -------------------------------------------------------------------------------- /CEBaB-v1.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/CEBaB-v1.1.zip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/_config.yml -------------------------------------------------------------------------------- /_layouts/default.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/_layouts/default.html -------------------------------------------------------------------------------- /cebab_datasheet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/cebab_datasheet.md -------------------------------------------------------------------------------- /code/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/README.md -------------------------------------------------------------------------------- /code/causal_eval/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/.DS_Store -------------------------------------------------------------------------------- /code/causal_eval/experiments/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/.DS_Store -------------------------------------------------------------------------------- /code/causal_eval/experiments/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/README.md -------------------------------------------------------------------------------- /code/causal_eval/experiments/causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/causalm.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/causalm_probing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/causalm_probing.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/concept_shap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/concept_shap.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/inlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/inlp.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/__init__.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/bert_causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/bert_causalm.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/configuration_causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/configuration_causalm.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/trainer_causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/trainer_causalm.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/__init__.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/causal_evaluation_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/causal_evaluation_paths.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/constants.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/cuda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/cuda.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/data.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/data_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/head_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/head_types.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/main_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/main_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/causalm/utils/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/causalm/utils/metrics.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/conceptSHAP/concept_shap_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/conceptSHAP/concept_shap_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/conceptSHAP/parse_results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/conceptSHAP/parse_results.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/embedding.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/utils/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/utils/constants.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/utils/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/utils/data_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/utils/methods_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/utils/methods_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/methods/utils/modeling_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/methods/utils/modeling_utils.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/predictions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/predictions.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/run_opentable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/run_opentable.py -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/causalm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/scripts/causalm.sh -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/concept_shap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/scripts/concept_shap.sh -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/embedding.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/scripts/embedding.sh -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/inlp.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/run_opentable.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/scripts/run_opentable.sh -------------------------------------------------------------------------------- /code/causal_eval/experiments/scripts/tcav.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/causal_eval/experiments/tcav.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/causal_eval/experiments/tcav.py -------------------------------------------------------------------------------- /code/eval_pipeline/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/Readme.md -------------------------------------------------------------------------------- /code/eval_pipeline/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/bert.py -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/gpt2.py -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/lstm/embeddings.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/lstm/embeddings.bin -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/lstm/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/lstm/lstm.py -------------------------------------------------------------------------------- /code/eval_pipeline/customized_models/roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/customized_models/roberta.py -------------------------------------------------------------------------------- /code/eval_pipeline/example-pipeline.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/example-pipeline.ipynb -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/abstract_explainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/abstract_explainer.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/data/__init__.py: -------------------------------------------------------------------------------- 1 | from .data_collator import * 2 | -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/data/data_collator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/data/data_collator.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/explainer_causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/explainer_causalm.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/bert/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/bert/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/bert/configuration_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/bert/configuration_bert.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/bert/modeling_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/bert/modeling_bert.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/bert/supported_heads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/bert/supported_heads.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/configuration_causalm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/configuration_causalm.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/gpt2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/gpt2/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/gpt2/configuration_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/gpt2/configuration_gpt2.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/gpt2/modeling_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/gpt2/modeling_gpt2.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/gpt2/supported_heads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/gpt2/supported_heads.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/lstm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/lstm/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/lstm/configuration_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/lstm/configuration_lstm.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/lstm/lstm_vanilla.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/lstm/lstm_vanilla.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/lstm/modeling_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/lstm/modeling_lstm.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/lstm/supported_heads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/lstm/supported_heads.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/roberta/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/roberta/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/roberta/configuration_roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/roberta/configuration_roberta.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/roberta/modeling_roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/roberta/modeling_roberta.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/modeling/roberta/supported_heads.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/modeling/roberta/supported_heads.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/run_causalm_cebab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/run_causalm_cebab.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/scripts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/scripts/.DS_Store -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/scripts/run_causalm_cebab.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/scripts/run_causalm_cebab.sh -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/trainer.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/.DS_Store -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/cebab_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/cebab_dataset.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/consts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/consts.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/lstm_embeddings.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/lstm_embeddings.bin -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/causalm/utils/paths.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/causalm/utils/supported_models.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/concept_shap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/concept_shap/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/concept_shap/explainer_concept_shap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/concept_shap/explainer_concept_shap.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/concept_shap/utils_concept_shap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/concept_shap/utils_concept_shap.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/conexp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/conexp.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/explainer_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/explainer_utils.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/inlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/inlp.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/lime/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/lime/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/lime/concept_lime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/lime/concept_lime.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/lime/concept_lime2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/lime/concept_lime2.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/lime/concept_lime3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/lime/concept_lime3.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/random_explainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/random_explainer.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/s_learner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/s_learner.py -------------------------------------------------------------------------------- /code/eval_pipeline/explainers/tcav.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/explainers/tcav.py -------------------------------------------------------------------------------- /code/eval_pipeline/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/main.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/abstract_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/abstract_model.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/bert.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/gpt2.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/lstm.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/roberta.py -------------------------------------------------------------------------------- /code/eval_pipeline/models/simple_lr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/models/simple_lr.py -------------------------------------------------------------------------------- /code/eval_pipeline/pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/pipeline.py -------------------------------------------------------------------------------- /code/eval_pipeline/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/requirements.txt -------------------------------------------------------------------------------- /code/eval_pipeline/run_all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/run_all.sh -------------------------------------------------------------------------------- /code/eval_pipeline/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/utils/__init__.py -------------------------------------------------------------------------------- /code/eval_pipeline/utils/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/utils/constants.py -------------------------------------------------------------------------------- /code/eval_pipeline/utils/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/utils/data_utils.py -------------------------------------------------------------------------------- /code/eval_pipeline/utils/main_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/utils/main_utils.py -------------------------------------------------------------------------------- /code/eval_pipeline/utils/metric_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/eval_pipeline/utils/metric_utils.py -------------------------------------------------------------------------------- /code/training/customized_models/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/customized_models/bert.py -------------------------------------------------------------------------------- /code/training/customized_models/gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/customized_models/gpt2.py -------------------------------------------------------------------------------- /code/training/customized_models/lstm/embeddings.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/customized_models/lstm/embeddings.bin -------------------------------------------------------------------------------- /code/training/customized_models/lstm/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/customized_models/lstm/lstm.py -------------------------------------------------------------------------------- /code/training/customized_models/t5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/customized_models/t5.py -------------------------------------------------------------------------------- /code/training/run_cebab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/run_cebab.py -------------------------------------------------------------------------------- /code/training/run_cebab_t5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/run_cebab_t5.py -------------------------------------------------------------------------------- /code/training/run_experiments.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/code/training/run_experiments.sh -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/favicon.ico -------------------------------------------------------------------------------- /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/favicon.png -------------------------------------------------------------------------------- /index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CEBaBing/CEBaB/HEAD/index.md --------------------------------------------------------------------------------