Error when making predictions with nuisance models #344
-
I am running simulations with 200 samples, 2 covariates to orthogonalize with respect to (Z), 50 treatment variables I want to orthogonalize (T), and 1 binary outcome I want to orthogonalize. I am running What I'm looking to do is:
However, when I use
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @RandallJEllis - thanks for pointing this out. I think this question is also related to my answer in #342 which I have to adjust a bit. Sorry for the confusion. When you do:
You use the default value for So in fact, for each treatment, when estimating E[ Y | Z* ] and E[ T | Z* ], Z* contains the two covariates Z as well as the 49 other treatment columns. This is why LGBM puts out the dimensionality error in the code provided. If you set it to
the error disappears. Hope this clears the confusion! |
Beta Was this translation helpful? Give feedback.
Hi @RandallJEllis - thanks for pointing this out.
I think this question is also related to my answer in #342 which I have to adjust a bit. Sorry for the confusion.
When you do:
You use the default value for
use_other_treat_as_covariate
, which isTrue
(I thought it was False 😅) .So in fact, for each treatment, when estimating E[ Y | Z* ] and E[ T | Z* ], Z* contains the two covariates Z as well as the 49 other treatment columns. This is why LGBM puts out the dimensionality error in the code provided. If you set it to
the er…