Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nKeep too large in learnAndSolve8b #122

Closed
NoahDolev opened this issue Sep 26, 2019 · 1 comment · Fixed by #595
Closed

nKeep too large in learnAndSolve8b #122

NoahDolev opened this issue Sep 26, 2019 · 1 comment · Fixed by #595

Comments

@NoahDolev
Copy link

Hi,

I get the following crash:

ntot =

       20424

Error using gpuArray/subsref
Index exceeds matrix dimension.

Error in learnAndSolve8b (line 351)
    rez.W_a(:,:,j) = gather(A(:, 1:nKeep) * B(1:nKeep, 1:nKeep));

Error in MEAAnalysis/getKiloSorting (line 202)
            rez = learnAndSolve8b(rez);

Which I can fix by replace the line which assigns a value to nKeep to:

nKeep = 20; % how many PCs to keep
WA = reshape(rez.WA(:, 1, :, :), [], nBatches);
nKeep2 = size(WA);
nKeep2 = nKeep2(2);
nKeep = min(nKeep, nKeep2);
@marius10p
Copy link
Contributor

How many channels do you have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants