Open jcreinhold opened 1 year ago
As a workaround, for anyone facing this same issue, setting the method_params
(for estimate_effect
) to the following seems to work and replicate the original, intended functionality:
from dowhy.causal_estimators.linear_regression_estimator import LinearRegressionEstimator
method_params = {"init_params": {"second_stage_model": LinearRegressionEstimator}}
Describe the bug When the second-stage regression model is not provided and is being created, it looks like a piece of code overwrites the
backdoor
method setting and the backdoor variables which is being done directly above. I can't imagine this is anything other than a typo, but please correct me if I'm mistaken. Otherwise, I'm happy to provide more details as needed.Steps to reproduce the behavior
nonparametric-nie
as the estimand type, andmediation.two_stage_regression
and the method.estimate_effect
.Expected behavior The estimation to complete without errors.
Version information:
Additional context Error that's produced