<div dir="ltr">Hi,<div><br></div><div>that totally depends on the nature of your data and whether the standard deviation of individual feature axes/columns of your data carry some form of importance measure. Note that PCA will bias its loadings towards columns with large standard deviations all else being held equal (meaning that if you have zscored columns, and then you choose one column and multiply it by, say 1000, then that component will likely show up as your first component [if 1000 is comparable or large wrt the number of features you are using])</div><div><br></div><div>Does this help?</div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 24, 2018 at 4:39 PM, Shiheng Duan <span dir="ltr"><<a href="mailto:shiduan@ucdavis.edu" target="_blank">shiduan@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div style="text-align:left">I wonder is it necessary or correct to do z score transformation before PCA? I didn't see any preprocessing for face image in the example of Faces recognition example using eigenfaces and SVMs, link:<a href="http://scikit-learn.org/stable/auto_examples/applications/plot_face_recognition.html#sphx-glr-auto-examples-applications-plot-face-recognition-py" target="_blank">http://scikit-learn.org/<wbr>stable/auto_examples/<wbr>applications/plot_face_<wbr>recognition.html#sphx-glr-<wbr>auto-examples-applications-<wbr>plot-face-recognition-py</a></div><div style="text-align:left"><br></div><div style="text-align:left">I am doing on a similar dataset and got a weird result if I standardized data before PCA. The components figure will have a strong gradient and it doesn't make any sense. Any ideas about the reason? </div><div style="text-align:left"><br></div><div style="text-align:left">Thanks. </div></div>
<br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div>