Skip to content
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

EconML - Trouble using DML - Reshape Column-Vector y to 1D Array (n_samples,) U #1298

Open
paul-jdfagan opened this issue Jan 19, 2025 · 1 comment
Labels
question Further information is requested stale

Comments

@paul-jdfagan
Copy link

Hi everyone,

Ask your question
Issue: 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().

Causal Model:
Image

Setup:

Image

Identification

Estimand type: EstimandType.NONPARAMETRIC_ATE

Estimand : 1

Estimand name: backdoor
Estimand expression:
d
───────────────(E[total_revenue|spend_TV,spend_Facebook])
d[spend_Search]
Estimand assumption 1, Unconfoundedness: If U→{spend_Search} and U→total_revenue then P(total_revenue|spend_Search,spend_TV,spend_Facebook,U) = P(total_revenue|spend_Search,spend_TV,spend_Facebook)

Estimand : 2

Estimand name: iv
No such variable(s) found!

Estimand : 3

Estimand name: frontdoor
No such variable(s) found!

OUTPUT
The results radically change every time the code is executed.

Image

Version information:

  • DoWhy version 0.12

Thanks for your help!

@paul-jdfagan paul-jdfagan added the question Further information is requested label Jan 19, 2025
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

1 participant