-
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
Received error 'csr_matrix' object has no attribute 'A' #357
Comments
To fix this, I manually changed line 81 of |
You can downgrade to scipy=1.13.1 to resolve the issue. I suspect it requires a new release to fix the dependency to scipy>1.14.0 |
Another hack-y solution is a monkey patch: import scipy.sparse
def to_array(self):
return self.toarray()
scipy.sparse.spmatrix.A = property(to_array)
import pygam |
I did the same. Running Python 3.12.5. |
Environment is Python 3.11. In order to avoid the issues of #337 I uninstall
scikit-sparse
. However, this then presents a new error from line 81 ofutils.py
:As it stands now, PyGAM is no longer usable for "newer" version of Python Scipy. (As far as I can tell, this fails on versions of Scipy going back several years).
The text was updated successfully, but these errors were encountered: