-
Notifications
You must be signed in to change notification settings - Fork 163
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
LogisticGAM and LinearGAM .fit() throws ValueError: cannot set WRITEABLE flag to True of this array #271
Comments
I can confirm the same problem using: 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
|
Require that the fill-reducing permutation P of Cholesky factorizer owns its data before use. Fixes dswah#271
Hi, I believe I have fixed this issue - see #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. |
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
The text was updated successfully, but these errors were encountered: