Number of components to use in CSP

External Email - Use Caution

Hi all,
How to define "n_components" in the following function:
mne.decoding.CSP(n_components=4, reg=None, log=None, cov_est='concat',
transform_into='average_power', norm_trace=False,
cov_method_params=None, rank=None)

Is it dependent on the number of classes i have?
can i have it to be more than 4? for example 25?
Is is dependent on the number of electrodes (channels) i have?

many thanks in advance for your help

External Email - Use Caution

Hi,

I would say neither. You can think of CSP a bit like PCA where instead of
maximizing the variance, you are trying to maximize the variance of the
difference between the two classes. Just as in PCA you need to select the
number of components for explaining your variance. But here you also have a
prediction task involved. Thus, if you capture two much of the difference
(too many components), you will overfit and if it's too few, you will
underfit. That's why we recommend setting this parameter by
cross-validation.

Hope that helps.

Best,
Mainak

External Email - Use Caution

Dear all,
I would like to convert a bunch of FIF files (EpochsFIF) to the MNE-BIDS
format. I found the example:
https://mne-tools.github.io/mne-bids/index.html that is relative to the
conversion from a Raw format. Apparently one cannot directly convert a
EpochsFIF to a Raw data file.
So I am wondering if it is possible to convert the EpochsFIF to Raw to
proceed with the conversion to MNE-BIDS format.
Best regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190724/249c1321/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 15760 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190724/249c1321/attachment-0001.jpg

External Email - Use Caution

I apologize for a mistake in my previous ... "Apparently one cannot
directly convert a EpochsFIF to a Raw data file. the BIDS format."
Best

External Email - Use Caution

How did you get the EpochsFIF file? Note that the BIDS format is only for
the raw data at the moment and it's not really meant for processed data.

Mainak

        External Email - Use Caution

I apologize for a mistake in my previous ... "Apparently one cannot
directly convert a EpochsFIF to a Raw data file. the BIDS format."
Best

Dear all,
I would like to convert a bunch of FIF files (EpochsFIF) to the MNE-BIDS
format. I found the example:
Page Redirection that is relative to the
conversion from a Raw format. Apparently one cannot directly convert a
EpochsFIF to a Raw data file.
So I am wondering if it is possible to convert the EpochsFIF to Raw to
proceed with the conversion to MNE-BIDS format.
Best regards

--
Department of Biomedical and Clinical Sciences "Luigi Sacco"
University of Milan
Phone: +39 02 503 19731
via G. B. Grassi 74 - 20157 Milano
<Google Maps;

[image: MailScanner Signature Unimi]
Il tuo 5 x mille progetti
Sostieni la ricerca, investi sul futuro dei giovani

Universita` degli Studi di Milano - codice fiscale 80012650158
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190724/541eec02/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 15760 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190724/541eec02/attachment-0001.jpg

External Email - Use Caution

Thank you very much Mainak

Mainak Jas <mainakjas at gmail.com>, 23 Tem 2019 Sal, 18:18 tarihinde ?unu yazd?:

External Email - Use Caution

Hi Mainak,
thank you for your prompt reply. Indeed, the EpochsFIF file comes from
processed TMS/EEG data (Channels x Time x Trials). Thus, from what you are
saying MNE-BIDS doesn't seem to be the way to go. Will look for some
alternatives then.
Thanks anyway
Best
Thierry

External Email - Use Caution

hi,

indeed there is a BIDS standard only for raw data at this stage. It's not
specific to mne-bids package.

Alex

        External Email - Use Caution

Hi Mainak,
thank you for your prompt reply. Indeed, the EpochsFIF file comes from
processed TMS/EEG data (Channels x Time x Trials). Thus, from what you are
saying MNE-BIDS doesn't seem to be the way to go. Will look for some
alternatives then.
Thanks anyway
Best
Thierry

        External Email - Use Caution

How did you get the EpochsFIF file? Note that the BIDS format is only for
the raw data at the moment and it's not really meant for processed data.

Mainak

        External Email - Use Caution

I apologize for a mistake in my previous ... "Apparently one cannot
directly convert a EpochsFIF to a Raw data file. the BIDS format."
Best

Dear all,
I would like to convert a bunch of FIF files (EpochsFIF) to the
MNE-BIDS format. I found the example:
Page Redirection that is relative to
the conversion from a Raw format. Apparently one cannot directly convert a
EpochsFIF to a Raw data file.
So I am wondering if it is possible to convert the EpochsFIF to Raw to
proceed with the conversion to MNE-BIDS format.
Best regards

--
Department of Biomedical and Clinical Sciences "Luigi Sacco"
University of Milan
Phone: +39 02 503 19731
via G. B. Grassi 74 - 20157 Milano
<Google Maps;

[image: MailScanner Signature Unimi]
Il tuo 5 x mille progetti
Sostieni la ricerca, investi sul futuro dei giovani

Universita` degli Studi di Milano - codice fiscale 80012650158
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

--
Department of Biomedical and Clinical Sciences "Luigi Sacco"
University of Milan
Phone: +39 02 503 19731
via G. B. Grassi 74 - 20157 Milano
<Google Maps;
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190725/1170c248/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 15760 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190725/1170c248/attachment-0001.jpg

External Email - Use Caution

Hi Thierry,

what Mainak and Alex say is true ... however, if you are interested in
using BIDS for epoched data, we strongly encourage you to look into the
discussion on derivatives (including epochs) for electrophysiology data.

See this Google Doc, were active development of that part of BIDS takes
place:

New contributors are always welcome :slight_smile:

Best,

Stefan

???External Email - Use Caution

hi,

indeed there is a BIDS standard only for raw data at this stage. It's not
specific to mne-bids package.

Alex

    ???External Email - Use Caution

    Hi Mainak,
    thank you for your prompt reply. Indeed, the EpochsFIF file comes
    from processed TMS/EEG data (Channels x Time x Trials). Thus, from
    what you are saying MNE-BIDS doesn't seem to be the way to go.
    Will look for some alternatives then.
    Thanks anyway
    Best
    Thierry

        ???External Email - Use Caution

        How did you get the EpochsFIF file? Note that the BIDS format
        is only for the raw data at the moment and it's not really
        meant for processed data.

        Mainak

            ???External Email - Use Caution

            I apologize for a mistake in my previous ... "Apparently
            one cannot directly convert a EpochsFIF to a Raw data
            file. ?the BIDS format."
            Best

                Dear all,
                I would like to convert a bunch of FIF files
                (EpochsFIF) to the MNE-BIDS format. I found the
                example:
                Page Redirection
                is relative to the conversion from a Raw format.
                Apparently one cannot directly convert a EpochsFIF to
                a Raw data file.
                So I am wondering if it is possible to convert the
                EpochsFIF to Raw to proceed with the conversion to
                MNE-BIDS format.
                Best regards

            --
            Department of Biomedical and Clinical Sciences "Luigi Sacco"
            University of Milan
            Phone: +39 02 503 19731
            via G. B. Grassi 74 - 20157 Milano
            <Google Maps;

            MailScanner Signature Unimi
            Il tuo 5 x mille progetti
            Sostieni la ricerca, investi sul futuro dei giovani

            Universita` degli Studi di Milano - codice fiscale 80012650158

            _______________________________________________
            Mne_analysis mailing list
            Mne_analysis at nmr.mgh.harvard.edu
            <mailto:Mne_analysis at nmr.mgh.harvard.edu>
            Mne_analysis Info Page

        _______________________________________________
        Mne_analysis mailing list
        Mne_analysis at nmr.mgh.harvard.edu
        <mailto:Mne_analysis at nmr.mgh.harvard.edu>
        Mne_analysis Info Page

    --
    Department of Biomedical and Clinical Sciences "Luigi Sacco"
    University of Milan
    Phone: +39 02 503 19731
    via G. B. Grassi 74 - 20157 Milano
    <Google Maps;
    _______________________________________________
    Mne_analysis mailing list
    Mne_analysis at nmr.mgh.harvard.edu
    <mailto:Mne_analysis at nmr.mgh.harvard.edu>
    Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190725/cd56462d/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.jpg
Type: image/jpeg
Size: 15760 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190725/cd56462d/attachment-0001.jpg