Created tests for causal model data generation, and patched bugs in the counterfactual data generation method. Created MQNLI notebook to introduce DAS for a nested hierarchical causal model.
Description
Created files:
/tests/unit_tests/CausalModelTestCase.py - testing for causal_model.py.
cont_signature.json, empty_signature.json, neg_cont_signature.json, neg_signature.json, q_projectivity.json - helper files for the MQNLI notebook.
Edited files:
data_generators/causal_model.py - fixed minor bugs in factual and counterfactual data generation functions.
tutorials/advanced_tutorials/DAS_Main_Introduction.ipynb - updated to follow new structure in causal_model.py (only other file in repo that is currently using causal_model.py).
Testing Done
Introduced test cases for causal_model.py, ran MQNLI and DAS Introduction notebooks successfully.
Created tests for causal model data generation, and patched bugs in the counterfactual data generation method. Created MQNLI notebook to introduce DAS for a nested hierarchical causal model.
Description
Created files:
/tests/unit_tests/CausalModelTestCase.py
- testing forcausal_model.py
.tutorials/advanced_tutorials/MQNLI.ipynb
- notebook working through the MQNLI dataset introduced in Geiger, Cases, Karttunen, Potts (2019).cont_signature.json
,empty_signature.json
,neg_cont_signature.json
,neg_signature.json
,q_projectivity.json
- helper files for the MQNLI notebook.Edited files:
data_generators/causal_model.py
- fixed minor bugs in factual and counterfactual data generation functions.tutorials/advanced_tutorials/DAS_Main_Introduction.ipynb
- updated to follow new structure incausal_model.py
(only other file in repo that is currently usingcausal_model.py
).Testing Done
Introduced test cases for
causal_model.py
, ran MQNLI and DAS Introduction notebooks successfully.