stanfordnlp / pyvene

Stanford NLP Python Library for Understanding and Improving PyTorch Models via Interventions
http://pyvene.ai
Apache License 2.0
652 stars 63 forks source link

Test Cases for Causal Model, MQNLI Intro Notebook #131

Closed amirzur2023 closed 8 months ago

amirzur2023 commented 8 months ago

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:

Edited files:

Testing Done

Introduced test cases for causal_model.py, ran MQNLI and DAS Introduction notebooks successfully.