Open npow opened 1 year ago
Hi @npow ,
scipy.sparse.csr_matrix.log1p
does not work because from scipy.sparse.csr_matrix import log1p
does not work.
Instead, numpy.log1p
should work because from numpy import log1p
works.
Can this be a workaround?
numpy.log1p
doesn't support sparse matrices. I've made a workaround by defining my own function which then calls scipy.sparse.csr_matrix.log1p
but was wondering if there's a better way.
Hi, I encountered a strange issue trying to bind
scipy.sparse.csr_matrix.log1p
. It's sayingModuleNotFoundError: No module named 'scipy.sparse.csr_matrix'
, but it does exist?