OscarEngelbrektson / SyntheticControlMethods

A Python package for causal inference using Synthetic Controls
Apache License 2.0
166 stars 48 forks source link

Error in osqp setup #24

Open ClaireORo opened 1 year ago

ClaireORo commented 1 year ago

Thank you for this package! I am following your proposal_99.py example and when I run

sc = Synth(df, "cigsale", "state", "year", 1989, "California", n_optim=10, pen="auto") I receive the following error:

ERROR in validate_data: Lower bound at index 0 is greater than upper bound: -1.0000e+30 > -inf ERROR in osqp_setup: Problem data validation.

It seems that this error output is repeated for each line in the dataset. Below that, I am seeing this attribute error message:

image

I'm not great with error debugging so any help is appreciated

DarioLandwehr commented 1 year ago

I had the same error when running it on my computer but it did not occure when I used a cloud computing service. So I suppose it has to do something with package dependencies and versions. Maybe try running the code in google Colab or an other service. I hope this helps