2014-03-18 20:09 GMT+01:00 Olivier Grisel <[email protected]>: > I don't know how to efficiently swap 2 rows of a CSR matrix. Maybe the > algorithm would have to be adapted a bit in the sparse case.
Not familiar with the code but if swaps are common, you could keep an array of pointers or indices around, index into the matrix through this array and swap its members instead of the actual rows. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
