How can you take the log base 10 of every element in a sparse matrix (COO)?
>>print type(X)
<class 'scipy.sparse.coo.coo_matrix'>
I've tried this but it doesn't work:
import math
X.data = math.log(X.data,10)
How can you take the log base 10 of every element in a sparse matrix (COO)?
>>print type(X)
<class 'scipy.sparse.coo.coo_matrix'>
I've tried this but it doesn't work:
import math
X.data = math.log(X.data,10)