Is this the right way of projecting the training set into the eigespace? MATLAB

拈花ヽ惹草 提交于 2019-12-01 12:46:02

By signals, I assume you mean to ask why are we subtracting the mean from raw vector form of image.

If you think about PCA; it is trying to give you best direction where the data varies most. However, as your images contain pixel probably only positive values those pixels will always be on positive which will mislead, especially, your first and most important eigenvector. You can search more about second moment matrix. But I will share a bad paint image that explains it. Sorry about my drawing.

Please ignore the size of stars;

Stars: Your data

Red Line: Eigenvectors;

As you can easily see in 2D, centering the data can give better direction for your principal component. If you skip this step, your first eigenvector will bias on mean and cause poorer results.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!