2012/5/31, Sheila the angel <[email protected]>: > it helps. But just wondering why load_svmlight_file() gives sparse matrix > (CSR format) and a numpy array!!
Because this format is commonly used to exchange sparse matrices that are too large to fit in NumPy arrays. > Is there any other way to use load_svmlight_file() return object directly > for analysis (without using X_train =X_train.toarray() ) Currently, no. You'll have to do toarray() or use an estimator that supports sparse matrices (the former is advisable is the data is actually dense). ------------------------------------------------------------------------------ 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
