CSP components selection

External Email - Use Caution

Dear MNE team,

We are trying to solve the left vs right motor imagery classification
problem using MNE python for the first time. I have some experience of
using CSP. Normally, if we give N=2, then we select the first two and last
two spatial filters from the CSP matrix to create our feature vector. When
we did the same thing in MNE python, it is only selecting the two
components. Can you advise how to handle this?

Best regards,
Pramod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20191219/de0ca10b/attachment.html

External Email - Use Caution

hi,

setting N=4 should give you the first 2 and the last 2. Feature space
will then be 4 dimensional.

see how we do it here:

https://github.com/mne-tools/mne-python/blob/maint/0.19/mne/decoding/csp.py#L204

HTH
Alex

External Email - Use Caution

Thanks for your reply.

Best regards,
Pramod