dPCA icon indicating copy to clipboard operation
dPCA copied to clipboard

Number of marginalizations seems off

Open aboharbf opened this issue 4 years ago • 1 comments

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?

aboharbf avatar Jul 26 '21 18:07 aboharbf

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]}};

dkobak avatar Jul 30 '21 07:07 dkobak