[mlpack] PCA has to negate every element

Shaoxiang Chen forwchen at gmail.com
Thu Mar 3 03:30:21 EST 2016


Because the matrices in mlpack are column-major, the results of pca is the
negative of correct results according to this line
<https://github.com/mlpack/mlpack/blob/21b198b20beae6e567dc8c1e47293ddde562bef2/src/mlpack/tests/pca_test.cpp#L76>
of code.
Isn't it more reasonable to negate inside Apply()?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20160303/661cdb1a/attachment-0002.html>


More information about the mlpack mailing list