sFrame into scipy.sparse csr_matrix

User 3127 | 1/26/2016, 1:43:48 AM

I've an sframe like

x = sf.SFrame({'users': [{'123': 1.0, '122': 5}, {'134': 3.0, '123': 10}]})

I want to convert into scipy.sparse csr_matrix without invoking graphlab create, but only using sframe and python. How can I do it

Comments

User 12 | 1/26/2016, 7:13:03 PM

Hi @dvshekar, I just saw your question on stackoverflow as well, and answered it there:

http://stackoverflow.com/questions/35005820/sframe-into-scipy-sparse-csr-matrix/35021834#35021834

Thanks! Brian