Open EgorKraevTransferwise opened 2 years ago
I also encountered this problem, have you solved it? Can you tell me how to solve it?
I switched to calling things the other way around, so using the econml adapter from the DoWhy CausalModel, is much more convenient anyway, rather than the EconML dowhy adapter.
So for example
model = CausalModel(
data=used_df,
treatment=treatment,
outcome=outcome,
common_causes=features_W,
effect_modifiers=features_X,
)
estimate = model.estimate_effect(
identified_estimand,
method_name="backdoor.econml.dml.CausalForestDML",
control_value=0,
treatment_value=1,
target_units="ate", # condition used for CATE
confidence_intervals=True,
method_params={...},
)
and this estimate then contains the econml object
I can conduct experiments directly using dowhy's tools, but I need to use EconML's machine learning library for this experiment, so I need to use EconML's fit() function, so do you know any other solutions, thank you.
Why not do the fit using the dowhy wrapper, then extract the model object from it (estimate.estimator.estimator
in the snippet above) and do whatever you need there?
Hi! First of all, thanks for the wonderful packages econml and dowhy!
When trying to follow the example of "Case Study - Customer Segmentation at An Online Media Company - EconML + DoWhy" notebook on my own data, I run
but this generates the below error.
Any idea what could be going wrong there? The code seems to be pretty exactly cut and paste from the notebook (except that the trreatment is categorical), but the code in the example notebook runs fine.
On the other hand,
runs fine, so it doesn't seem to be a data issue.