Open matheusfacure opened 3 years ago
Seems a good addition indeed! We could have sth like propensity_(X,W)
for now you just need to concatenate X and W and call the models_t.
So that should be a solution until we get to this. Might take a while due to a big queue of things to do. If you want to contribute such a method we would be happy to review too!
In fact in your code you most probably want to set W=None.
the api is that: we control for both X and W and we only use X for heterogeneity.
so in your current code internally we would be training propensities on duplicate features
I'm trying to use the treatment models in DML to get a prediction of the treatment. I can access the models easily with
est.models_t
However, it's not trivial to go from those models to a predictions of the treatment. There are some internal transformations on the features, so just passing the original
X
to the treatment models won't work.It would be awesome to have a method that makes predictions using the treatment and outcomes models.