Open tlasko opened 4 years ago
I can confirm the same problem using: python 3.7.4 pygam 0.8.0 scikit-learn 0.23.1 scikit-sparse 0.4.4 scipy 1.4.1 numpy 1.18.4
I also tried downgrading numpy to 1.15.4 (after reading a similar issue has been solved like this) but it didn't work.
I received the same error, but uninstalling scikit-sparse fixed it.
I had the same problem. I fixed it by uninstalling scikit-sparse as suggested by jerheff.
conda uninstall scikit-sparse
Code to check:
from pygam.datasets import wage
X, y = wage()
from pygam import LinearGAM, s, f
gam = LinearGAM(s(0) + s(1) + f(2)).fit(X, y)
My versions
pygam 0.8.0
seaborn 0.10.1
pandas 1.0.5
sklearn 0.23.1
json 2.0.9
numpy 1.17.5
scipy 1.5.0
Hi, I believe I have fixed this issue - see https://github.com/dswah/pyGAM/pull/288
In the meantime you can fix manually or use my fork instead
I have the same issue. I had to uninstall scikit-sparse to make LinerGAM work. I did understand how this issue was fixed (#288).
Trying to use what looks like a promising package, but it chokes on all attempts to fit a model. Minimum example using random data, but it also happens with real data:
Also happens using the example from the documentation:
Using Python 3.8.2 pygam 0.8.0 scikit-learn 0.22.2.post1 scikit-sparse 0.4.4 scipy 1.4.1