use toarray instead of todense
I just learned that scipy.sparse
.todense
returns a numpy.matrix
object. The correct method to call, which returns a numpy array is toarray
.
I just learned that scipy.sparse
.todense
returns a numpy.matrix
object. The correct method to call, which returns a numpy array is toarray
.