Closed yiwei-ang closed 1 year ago
@yiwei-ang This is because no effect modifiers are specified in the dataset. If you change your dataset to include effect modifiers (using num_effect_modifiers
), you will start seeing multiple CATE values. Alternatively, you can provide a graph as input and DoWhy can infer the effect modifiers.
data = dowhy.datasets.linear_dataset(beta=10,
num_common_causes=5,
num_effect_modifiers=1,
num_samples=5000,
treatment_is_binary=True,
stddev_treatment_noise=10,
num_discrete_common_causes=1)
Describe the bug In dowhy >= 0.9, fitting dml from EconML only produces one CATE
Steps to reproduce the behavior
This can also include a verbatim copy of outputs, or screenshots.
Expected behavior
dml_estimate.cate_estimates
is expected to have 5000 rows of CATE values in dowhy < 0.9. However in dowhy >= 0.9, this only produces the mean value.Version information:
Additional context I'm not sure if EconML should update its package to fulfil latest change in dowhy. It's because when I run
est_dw = dml_estimate.estimator.estimator.dowhy
I get the following warning message: