CSP Errors

Hi,

When I try to run the CSP classifier on my data, I come up with an error
saying

LinAlgError: the leading minor of order 105 of 'b' is not positive
definite. The factorization of 'b' could not be completed and no
eigenvalues or eigenvectors were computed.

I was wondering what might be the error that is causing this, and how I
could fix this.

Thanks,
Aditya Singh
Biomedical Engineer
UT Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170618/3a1625dd/attachment.html

Hi,

This is because your data are rank deficient. you should add regularization
to avoid this error.
you can set the parameter reg='oas' of the CSP, and it should works.

Alex