I calculated the PCA using the following:
function [signals,V] = pca2(data) [M,N] = size(data); data = reshape(data, M*N,1); % subtract off the mean for each dimension mn = mean(data,2); data = bsxfun(@minus, data, mean(data,1)); % construct the matrix YY = data'*data / (M*N-1); [VD] = eigs(Y, 10); % reduce to 10 dimension % project the original data signals = data * V;
My question is:
Are βsignalsβ a projection of the training set into your own space?
In the Amir Hossein code, I saw that the "centered image vectors", which are the "data" in the above code, should be projected into the "boundary space" by multiplying at the base of their own space. I really don't understand why projection is done using centered image vectors? Are "signals" not enough for classification?
source share