-
Notifications
You must be signed in to change notification settings - Fork 939
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
model.estimate_effect and model.refute_astimate throws 'A column-vector y was passed ...' error #1212
Comments
Also getting this issue; there seems to be an easy fix described here, thought it would need to be done in DoWhy: |
Hey, can you link to the code or give the full error stack? I can prepare a fix. |
I haven't had time to get to the bottom of it, but I can share what I've found out so far... hope that helps! You can see the issue in this old dowhy tutorial, code block 13: This is the error (it's actually just a warning):
I get this warning only when using the EconML Double ML model[s], and only in certain configurations. I attempted to follow this (more recent) tutorial: Currently, I observe the warning when my outcome variable is categorical, meaning that model_y must be a classifier, e.g.:
In addition to the warning, when I try to run the refuters on models which give this warning, I also get an exception:
from causal_refuter.py, line 166, in perform_bootstrap_test:
The problem seems to be that I'm sorry that's as far as I've got with this one. |
Hi team,
when I use above mentioned methods I get the the following message:
"A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel()."
How can I avoid this? Is this a bug or am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered: