-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array shape misalignment in NonparametricTwoStageLeastSquares.marginal_effect() #219
Comments
I don't think this is a bug. Unfortunately the requirements on the There's no black box way for us to do this given an arbitrary
|
Actually, it's not particularly efficient but this should work even when
|
Thanks for the help! Unfortunately using the provided
|
@rmitsch Thanks for following up; we do have a bug here when there are multiple treatments. I'll submit a PR fixing it today. |
Great, thanks for taking care of it. Will close the issue when I had the opportunity to test the fix. |
After fitting a
NonparametricTwoStageLeastSquares
model withI can successfully use
.effect()
witheffect: np.ndarray = model.effect(X=X, T0=T0, T1=T1)
.Calling
.marginal_effect()
however seems to cause misaligned array shapes:I'm using EconML 0.6.1. The relevant arrays' shapes are:
Am I doing something wrong here or is this a bug?
The text was updated successfully, but these errors were encountered: