Discussion:
[gensim:11736] indptr, indices, and data from stochastic_svd
Briana Young
2018-10-31 17:13:50 UTC
Permalink
Hi there,

I'm trying to run stochastic_svd (from the LSI
model, https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/models/lsimodel.py)
on its own.

Where I'm running into issues is where indptr, indices, and data get passed
into csc_matvecs on lines 926-927 and 958-960. When I run the LSI model as
a whole, fine, no problem. But when I run stochastic_svd on its own, I get
"has no attribute," etc.

Scipy documentation for the csc_matrix function says indptr, indices, and
data need to be defined by the
user: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csc_matrix.html

but that's not necessary when the LSI model is being run in its entirety.

Does anyone know how and where indptr, indices, and data are defined?
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...