2013/11/7, Vlad Niculae <zephy...@gmail.com>:
> Also I found this pretty big difference in timing when computing
> elementwise norms and products.

This is a known problem with np.linalg.norm, and so is the memory
consumption. You should use sklearn.utils.extmath.norm for the
Frobenius norm.

Also note that the current NMF code has a trick to compute ||X - WH||
without evaluating WH. In the topic modeling use case, WH can take
many orders of magnitude more memory than X.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to