dPCA
dPCA copied to clipboard
Number of marginalizations seems off
So I am implementing this on a Neurons * Time point * Category matrix. Below is some description of my inputs:
% size(binnedDataStack) = [276 44 8];
margNames = {'Time', 'Category'};
combinedParams = {{1, [1 2]}, {2, [2 1]}};
Running the following...
[W, V, whichMarg] = dpca(binnedDataStack, 15);
whichMarg has 3's present, despite me only defining 2 marginalizations. This leads to errors when a 3rd marginalization is being looked for in margNames. Am I using this correctly, and if so, what should I change?
Hmm I am not quite sure what is going on in here, but in any case you should not include [1 2] in both marginalizations, so it should probably be
combinedParams = {{1}, {2, [2 1]}};