py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
6.88k stars 916 forks source link

Fixes #1028: Updated argument calling for refutation methods #1159

Closed amit-sharma closed 2 months ago

amit-sharma commented 2 months ago

Fixes #1028

When calling fit inside refutation methods, the effect_modifier_names was passed without name. Now it is a named parameter and avoids getting mixed up with other parameters. Also generalized econml_fit_params to fit_params since other methods can also have fit_params.