Thanks Gael for pointing this out. The question is how to best deal with it - we can/should not change the layout of our `coef_` attributes from (n_classes, n_features) to (n_features, n_classes), thus, we have to change the memory layout of `coef_` from c to fortran style?
2012/1/8 Gael Varoquaux <[email protected]>: > Yes, it is a common situation that fortran vs C ordering makes a huge > difference in various computations. I optimized the online dictionary > learning algorithm quite heavily based on those principles. I am sure > that they are other low hanging fruits. > > Maybe we need a list of different opitmization tricks. I tried to do such > a list in > http://scipy-lectures.github.com/advanced/optimizing/index.html#writing-faster-numerical-code > > Rereading it, I realize that the point that you raise (fortran vs C > ordering) is present, but probably not stressed enough. I'll update this. > > Thanks a lot for sharing this on the mailing list, it is useful. > > Gaƫl > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Scikit-learn-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general -- Peter Prettenhofer ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
