stanfordnlp / pyvene

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

Test Cases for Causal Model, MQNLI Intro Notebook #131

Closed amirzur2023 closed 3 months ago

amirzur2023 commented 3 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.