On Thu, May 31, 2012 at 7:58 PM, Sheila the angel <[email protected]>wrote:

> Thanks Peter,
> it helps. But just wondering why load_svmlight_file() gives sparse matrix
> (CSR format) and a numpy array!!
> Is there any other way to use load_svmlight_file() return object directly
> for analysis (without using X_train =X_train.toarray() )
>

Why? I don't see the problem with adding one more line to your code.

Sheila's question made me realize that we could have returned Bunch objects
in load_svmlight_file(). Not sure if it's worth breaking the API just for
that, though.

Mathieu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to