[Mne_analysis] Mne_analysis Digest, Vol 147, Issue 15

Dan McCloy dan at mccloy.info
Sun Apr 5 00:08:39 EDT 2020
Search archives:

        External Email - Use Caution        

If you are using conda to manage the environment, the automatic way to install MNE-Python and all its dependencies all at once is given here: https://mne.tools/stable/install/mne_python.html#installing-mne-python-and-its-dependencies

There are several webpages that come up when searching "matplotlib ft2font dll load failed" including [this one](https://github.com/ContinuumIO/anaconda-issues/issues/6689), if you read the whole page there are several suggestions of what to try.  After each solution you try, you should test out some simple matplotlib commands that don't require MNE-Python, to see if you still get the ft2font error. If you do, you should seek help from the conda and/or matplotlib community, not MNE-Python users / devs.

-- dan
Daniel McCloy
https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, April 4, 2020 8:36 PM, Saeed Zahran <saeedzahran at hotmail.com> wrote:

>         External Email - Use Caution
>
> I reinstalled the mne python and matplotlib as below:
>
> if you mean the below dependencies also, infact I spent most of the day to install them today:
> - python>=3.5
> - pip
> - mkl
> - numpy
> - scipy
> - matplotlib
> - numba
>
> etc...
>
> so it is nessecary to repeat? is there an automatic way to install them at once?
>
> (base) C:\Users\zahransa>pip uninstall mne
> Found existing installation: mne 0.20.0
> Uninstalling mne-0.20.0:
>   Would remove:
>     c:\users\zahransa\anaconda3\lib\site-packages\mne-0.20.0.dist-info\*
>     c:\users\zahransa\anaconda3\lib\site-packages\mne\*
>     c:\users\zahransa\anaconda3\scripts\mne.exe
> Proceed (y/n)? y
>   Successfully uninstalled mne-0.20.0
>
> (base) C:\Users\zahransa>pip install mne
> Collecting mne
>   Using cached mne-0.20.0-py3-none-any.whl (6.5 MB)
> Requirement already satisfied: scipy>=0.17.1 in c:\users\zahransa\anaconda3\lib\site-packages (from mne) (1.4.1)
> Requirement already satisfied: numpy>=1.11.3 in c:\users\zahransa\anaconda3\lib\site-packages (from mne) (1.18.2)
> Installing collected packages: mne
> Successfully installed mne-0.20.0
>
> pip uninstall matplotlib
> pip install
>
> --
>
> upgrade matplotlib
>
> Kind regards
> Saeed
> ---------------------------------------------------------------
>
> From: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> on behalf of mne_analysis-request at nmr.mgh.harvard.edu <mne_analysis-request at nmr.mgh.harvard.edu>
> Sent: Sunday, April 5, 2020 6:00 AM
> To: mne_analysis at nmr.mgh.harvard.edu <mne_analysis at nmr.mgh.harvard.edu>
> Subject: Mne_analysis Digest, Vol 147, Issue 15
>
> Send Mne_analysis mailing list submissions to
>         mne_analysis at nmr.mgh.harvard.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> or, via email, send a message with subject or body 'help' to
>         mne_analysis-request at nmr.mgh.harvard.edu
>
> You can reach the person managing the list at
>         mne_analysis-owner at nmr.mgh.harvard.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mne_analysis digest..."
>
> Today's Topics:
>
>    1. Re: Mne_analysis Digest, Vol 147, Issue 12 (Dan McCloy)
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 05 Apr 2020 02:59:34 +0000
> From: Dan McCloy <dan at mccloy.info>
> Subject: Re: [Mne_analysis] Mne_analysis Digest, Vol 147, Issue 12
> To: Discussion and support forum for the users of MNE Software
>         <mne_analysis at nmr.mgh.harvard.edu>
> Message-ID:
>         <jvnifvX3Z8WPdfVaPSB5HCHg3v--MWXK05qlR7CV42ysA_kFI9ozM2Q9N-gUq8YdrESzxRqwIPPfL0B5l--D5A-NED2qWiUglO0jI3Jwpe8=@mccloy.info>
>
> Content-Type: text/plain; charset="utf-8"
>
>         External Email - Use Caution
>
> What you're showing is the output of the plot_opm_data.py example script.  What I suggested was to re-install MNE-Python and its dependencies and examine the output of *the reinstallation process*, not the output of the example script.  Did you do that?  What (if any) errors did you see during reinstallation?  How did you do the reinstallation (pip, conda, something else)?  Did you search for problems related to matplotlib and ft2font?  What does mne.sys_info() tell you?
>
> -- dan
> Daniel McCloy
> https://dan.mccloy.info
> Research Scientist
> Institute for Learning and Brain Sciences
> University of Washington
>
> ??????? Original Message ???????
> On Saturday, April 4, 2020 7:21 PM, Saeed Zahran <saeedzahran at hotmail.com> wrote:
>
>>         External Email - Use Caution
>>
>> Thank you Dan for your reply, I did exactly what you recommended, still have the below error:
>>
>> C:\Users\zahransa\anaconda3\python.exe C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py
>> Opening raw data file C:\Users\zahransa\mne_data\MNE-OPM-data\MEG\OPM\OPM_SEF_raw.fif...
>> Isotrak not found
>>     Range : 0 ... 700999 =      0.000 ...   700.999 secs
>> Ready.
>> Current compensation grade : 0
>> Reading 0 ... 700999  =      0.000 ...   700.999 secs...
>> Filtering raw data in 1 contiguous segment
>> Setting up low-pass filter at 90 Hz
>>
>> FIR filter parameters
>> ---------------------
>> Designing a one-pass, zero-phase, non-causal lowpass filter:
>> - Windowed time-domain design (firwin) method
>> - Hamming window with 0.0194 passband ripple and 53 dB stopband attenuation
>> - Upper passband edge: 90.00 Hz
>> - Upper transition bandwidth: 10.00 Hz (-6 dB cutoff frequency: 95.00 Hz)
>> - Filter length: 331 samples (0.331 sec)
>>
>> Setting up band-stop filter from 49 - 51 Hz
>>
>> FIR filter parameters
>> ---------------------
>> Designing a one-pass, zero-phase, non-causal bandstop filter:
>> - Windowed time-domain design (firwin) method
>> - Hamming window with 0.0194 passband ripple and 53 dB stopband attenuation
>> - Lower passband edge: 49.00
>> - Lower transition bandwidth: 0.50 Hz (-6 dB cutoff frequency: 48.75 Hz)
>> - Upper passband edge: 51.00 Hz
>> - Upper transition bandwidth: 0.50 Hz (-6 dB cutoff frequency: 51.25 Hz)
>> - Filter length: 6601 samples (6.601 sec)
>>
>> Trigger channel has a non-zero initial value of 256 (consider using initial_event=True to detect this event)
>> 201 events found
>> Event IDs: [257]
>> Traceback (most recent call last):
>>   File "C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py", line 51, in <module>
>>     evoked.plot()
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\evoked.py", line 293, in plot
>>     time_unit=time_unit, sphere=sphere, verbose=verbose)
>>   File "<decorator-gen-134>", line 21, in plot_evoked
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\viz\evoked.py", line 733, in plot_evoked
>>     time_unit=time_unit, sphere=sphere)
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\viz\evoked.py", line 208, in _plot_evoked
>>     import matplotlib.pyplot as plt
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2282, in <module>
>>     switch_backend(rcParams["backend"])
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 221, in switch_backend
>>     backend_mod = importlib.import_module(backend_name)
>>   File "C:\Users\zahransa\anaconda3\lib\importlib\__init__.py", line 127, in import_module
>>     return _bootstrap._gcd_import(name[level:], package, level)
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 2, in <module>
>>     from .backend_agg import FigureCanvasAgg
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 50, in <module>
>>     from PIL import Image
>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\PIL\Image.py", line 69, in <module>
>>     from . import _imaging as core
>> ImportError: DLL load failed: Le module sp?cifi? est introuvable.
>>
>> Process finished with exit code 1
>>
>> Best regards
>> Saeed
>> ---------------------------------------------------------------
>>
>> From: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> on behalf of mne_analysis-request at nmr.mgh.harvard.edu <mne_analysis-request at nmr.mgh.harvard.edu>
>> Sent: Sunday, April 5, 2020 1:01 AM
>> To: mne_analysis at nmr.mgh.harvard.edu <mne_analysis at nmr.mgh.harvard.edu>
>> Subject: Mne_analysis Digest, Vol 147, Issue 12
>>
>> Send Mne_analysis mailing list submissions to
>>         mne_analysis at nmr.mgh.harvard.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>> or, via email, send a message with subject or body 'help' to
>>         mne_analysis-request at nmr.mgh.harvard.edu
>>
>> You can reach the person managing the list at
>>         mne_analysis-owner at nmr.mgh.harvard.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Mne_analysis digest..."
>>
>> Today's Topics:
>>
>>    1. Re: Starting with mne (Dan McCloy)
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sat, 04 Apr 2020 22:01:18 +0000
>> From: Dan McCloy <dan at mccloy.info>
>> Subject: Re: [Mne_analysis] Starting with mne
>> To: Discussion and support forum for the users of MNE Software
>>         <mne_analysis at nmr.mgh.harvard.edu>
>> Message-ID:
>>         <Mv3TQbne75xhJSyRzIgJ5quw5vT64yrnPlgIilmPnClYppFBc-euEZ-alrg_0xGzNzxz2FkHHpkLgMf-JhvR1lyjJJ_DshC7BidCvKzslew=@mccloy.info>
>>
>> Content-Type: text/plain; charset="utf-8"
>>
>>         External Email - Use Caution
>>
>> The OPM data are public, and will be automatically downloaded to (by default) $HOME/mne_data/ when you call `mne.datasets.opm.data_path()` for the first time. That function will return the full path to the download location.  Can you try running just that line directly in the python interpreter, rather than running the whole script?  There are some reports that URLlib might behave differently in those two conditions (e.g., [here](https://stackoverflow.com/q/27115803/1664024)).
>>
>> The other error looks like an error loading matplotlib, and suggests there was some installation problem (specifically with the ft2font dependency). See [here](https://stackoverflow.com/q/24251102/1664024). If I were in this situation I would probably just start over reinstalling MNE-Python, pay close attention to any warnings / errors that occur during installation, and then copy/paste those warnings/errors into a search engine. If that doesn't lead you to a solution, you can of course ask again here.
>>
>> -- dan
>> Daniel McCloy
>> https://dan.mccloy.info
>> Research Scientist
>> Institute for Learning and Brain Sciences
>> University of Washington
>>
>> ??????? Original Message ???????
>> On Saturday, April 4, 2020 2:38 PM, Saeed Zahran <saeedzahran at hotmail.com> wrote:
>>
>>>         External Email - Use Caution
>>>
>>> Dear All,
>>>
>>> I hope you are fine and in good health,
>>>
>>> I am starting a new project, and I would like to use MNE,
>>> I would like to compare OPM-MEG to SQUID MEG,
>>> I know mne from past, but this is the first time that I want to install it and use it,
>>>
>>> I saw that mne deal with OPM like:
>>>
>>> https://mne.tools/dev/auto_examples/time_frequency/plot_source_power_spectrum_opm.html
>>>
>>> I have some questions and thank you for your answering:
>>>
>>> 1) I would like to know if is possible to access the data, for example to look  about how the OPM sensors are oriented,
>>> in the script you put:[subject](https://docs.python.org/3/library/stdtypes.html#str) = 'OPM_sample' so does it mean the sample data are accessable?
>>> it is possible to get the lead field matrix? sorry if it is simple question because
>>> I try to install the mne to see what the script should give but when I run it I have some errors, so the second question:
>>>
>>> 2) I installed anaconda version 3.7 and pycharm and I follow this link:
>>> https://mne.tools/stable/install/mne_python.html
>>>
>>> I run an example from mne, I get the below error:
>>>
>>> C:\Users\zahransa\anaconda3\python.exe C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py
>>> Using default location ~/mne_data for opm...
>>> Downloading archive MNE-OPM-data.tar.gz to C:\Users\zahransa\mne_data
>>> Error while fetching file https://osf.io/p6ae7/download?version=2. Dataset fetching aborted.
>>> Traceback (most recent call last):
>>>   File "C:/Users/zahransa/PycharmProjects/opm/plot_opm_data.py", line 20, in <module>
>>>     data_path = mne.datasets.opm.data_path()
>>>   File "<decorator-gen-411>", line 21, in data_path
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\opm\opm.py", line 21, in data_path
>>>     download=download)
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\utils.py", line 395, in _data_path
>>>     remove_archive, full = _download(path, u, an, h)
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\datasets\utils.py", line 453, in _download
>>>     hash_=hash_, hash_type=hash_type)
>>>   File "<decorator-gen-3>", line 21, in _fetch_file
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\utils\fetching.py", line 117, in _fetch_file
>>>     _get_http(url, temp_file_name, initial_size, timeout, verbose_bool)
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\mne\utils\fetching.py", line 43, in _get_http
>>>     response = request.urlopen(request.Request(url), timeout=timeout)
>>>   File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 222, in urlopen
>>>     return opener.open(url, data, timeout)
>>>   File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 525, in open
>>>     response = self._open(req, data)
>>>   File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 548, in _open
>>>     'unknown_open', req)
>>>   File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 503, in _call_chain
>>>     result = func(*args)
>>>   File "C:\Users\zahransa\anaconda3\lib\urllib\request.py", line 1389, in unknown_open
>>>     raise URLError('unknown url type: %s' % type)
>>> urllib.error.URLError: <urlopen error unknown url type: https>
>>>
>>> another example:
>>>
>>> C:\Users\zahransa\anaconda3\python.exe C:/Users/zahransa/PycharmProjects/opm/plot_mne_inverse_connectivity_spectrum.py
>>> Traceback (most recent call last):
>>>   File "C:/Users/zahransa/PycharmProjects/opm/plot_mne_inverse_connectivity_spectrum.py", line 13, in <module>
>>>     import matplotlib.pyplot as plt
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\__init__.py", line 205, in <module>
>>>     _check_versions()
>>>   File "C:\Users\zahransa\anaconda3\lib\site-packages\matplotlib\__init__.py", line 190, in _check_versions
>>>     from . import ft2font
>>> ImportError: DLL load failed: Le module sp?cifi? est introuvable.
>>>
>>> Thank you for your help,
>>>
>>> Best regards
>>> Saeed Zahran
>>>
>>> ---------------------------------------------------------------
>>>
>>> From: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> on behalf of mne_analysis-request at nmr.mgh.harvard.edu <mne_analysis-request at nmr.mgh.harvard.edu>
>>> Sent: Saturday, April 4, 2020 12:35 PM
>>> To: mne_analysis at nmr.mgh.harvard.edu <mne_analysis at nmr.mgh.harvard.edu>
>>> Subject: Mne_analysis Digest, Vol 147, Issue 10
>>>
>>> Send Mne_analysis mailing list submissions to
>>>         mne_analysis at nmr.mgh.harvard.edu
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>         https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>> or, via email, send a message with subject or body 'help' to
>>>         mne_analysis-request at nmr.mgh.harvard.edu
>>>
>>> You can reach the person managing the list at
>>>         mne_analysis-owner at nmr.mgh.harvard.edu
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Mne_analysis digest..."
>>>
>>> Today's Topics:
>>>
>>>    1. Re: Temporal Generalization - Different results with and
>>>       without using cross validation (Maryam Zolfaghar)
>>>    2. MNE-BIDS 0.4 released! (Stefan Appelhoff)
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Fri, 3 Apr 2020 16:17:56 -0400
>>> From: Maryam Zolfaghar <Maryam.Zolfaghar at colorado.edu>
>>> Subject: Re: [Mne_analysis] Temporal Generalization - Different
>>>         results with and without using cross validation
>>> To: Alexandre Gramfort <alexandre.gramfort at inria.fr>
>>> Cc: Discussion and support forum for the users of MNE Software
>>>         <mne_analysis at nmr.mgh.harvard.edu>
>>> Message-ID:
>>>         <CAJOF5UAMPtJZPd-_CrmK8=GfZJ34Sm9m=5-weidvTbmBT_+vxw at mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>>         External Email - Use Caution
>>>
>>> Hi Alex,
>>>
>>> Thanks a lot for the helpful information. I have run my code according to
>>> your suggestion but I want to make sure I understood your point correctly.
>>>
>>> As you suggested, the difference in results might be due to "shuffle=True".
>>> However, I do not understand why you suggested "*StratifiedShuffleSplit* "?
>>> what would be the difference between doing "cv = *StratifiedKFold*
>>> *(n_splits=5*, shuffle=True, random_state=42) or cv =
>>> *StratifiedKFold**(*n_splits=5,
>>> *shuffle=False*)"    vs   "cv = *StratifiedShuffleSplit*(*n_splits=1000*,
>>> random_state=42)"? Why not only setting random state and just using "cv =
>>> *StratifiedShuffleSplit*(*n_splits=5*, random_state=42)"  with the same
>>> number of splits?
>>>
>>> Thanks,
>>> -Maryam
>>>
>>> On Wed, Mar 25, 2020 at 4:15 PM Alexandre Gramfort <
>>> alexandre.gramfort at inria.fr> wrote:
>>>
>>>> hi,
>>>>
>>>> when you do:
>>>>
>>>> *cv = StratifiedKFold(n_splits=5, shuffle=True)*
>>>>
>>>> *you make the cross-validation folds random (shuffle=True). It means*
>>>> *that everytime you run the code you will get a different value. This the
>>>> inherent*
>>>>
>>>> *variance of the statistic that cross-validation reports.*
>>>>
>>>> *To avoid this randomness (which should not be neglected) you can fix the
>>>> random state eg*
>>>>
>>>> cv = StratifiedKFold(n_splits=5, shuffle=True, random_state=42)
>>>>
>>>> to avoid this you should use a StratifiedShuffleSplit and use many folds
>>>> eg 100 to limit
>>>> the variance due to the choice of the cv splits.
>>>>
>>>> HTH
>>>> Alex
>>>>
>>>>
>>>>
>>>> On Wed, Mar 25, 2020 at 4:39 PM Maryam Zolfaghar <
>>>> Maryam.Zolfaghar at colorado.edu> wrote:
>>>>
>>>>>         External Email - Use Caution
>>>>>
>>>>> Hi MNE experts,
>>>>>
>>>>> I am using the temporal generalization
>>>>> <https://secure-web.cisco.com/1jWVu354v-yk2PHG6scpRuNlqi-Xei3wH-moV9-Av0fstdMSB7aUnzzNvmfnF3JuIo6EC0A07IdflTTdP4WpUqpUrZSclzoSV8WBksahu0ODpDgFOsHmm6eHO0i8QuTC6bAvL9yb4XuOmHH4wqg_ubbDuEIZUQriZvysI-ayKjx5o4jndHXz4UqLxv0CVaHv0YafoA8c9X29SwV52DKgOaPlf2v1oiEOTcd-Wu6QtvRMnn5AgMVc4_QxbHaXjM5qAZz8u1r_wFixIzhsSgFa89d05jmOT0BVNWMZ1-sXCPt0by2krKKqiEyV7OLYBLLMrTTnWZ00KZGIGX_VkqbIA4uArHPJxE7w_U3mNvn0YFXUUhVuopodRcQf_ZA81GJA5E5Qy5s6PW0ZP8SjUtICoajBkEHmm6LpIKycpscbg0W7uVdtFNyDkDTMXVq0OemdyrFxvdqDi6VnKPtgefbyyNw/https%3A%2F%2Fmne.tools%2Fdev%2Fauto_tutorials%2Fmachine-learning%2Fplot_sensors_decoding.html%23temporal-generalization> approach.
>>>>> I have plotted scores' output from cross_val_multiscore
>>>>> <https://secure-web.cisco.com/1h1fBYrY82nc7Ha3ohR5V_l8-7FgWv1EKHCEhN_hAJm8A-NfF2V7uxTWmy5IwO-cOk33FiOpkywzhHZcxjWQfQez3GPysxi2nGr5NkcO-UbypLFGD_4d5yopqahopnYqwDy-b5yOA56uFYbRzHJLYyu6NsGNICQkbBWbwDt1EXOgxAFYg6wK5WIcxNYuZ9Jg_4G88dlreZRD8p-yNwFZ7D7z_DBKIo8eudHagdQhME0woFuPo63yrIoM4zLcAWLhFta-xNl2IvYh9iTIk5U5zUwFIbyRBa4HIWRD-Es3MGFPRcDmjke4u-MSG4yKuwjcIIfy3K4MCoiMF79wTrt2u-SutYTmMNte1IFDKYhw-kx7oH-XbtFkLZH1xigiLkdICoIFeZnptCIYr0Cu1mb75-E8SZD17l2y3xvLlgqZQ2aOYCPoFgCdlbtaBN7GhzUzeunr0EMGN7y6_W-4o-9ASig/https%3A%2F%2Fmne.tools%2Fdev%2Fgenerated%2Fmne.decoding.cross_val_multiscore.html%23mne.decoding.cross_val_multiscore>
>>>>> with a RepeatedStratifiedKFold
>>>>> <https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RepeatedStratifiedKFold.html#sklearn.model_selection.RepeatedStratifiedKFold>
>>>>>  cv parameter.  I have also plotted training scores
>>>>>
>>>>> I assumed that I should get the same result and the only difference would
>>>>> be the diagonal results where the diagonal training scores will be all 1.
>>>>> However, the general results are quite different (you can still see some
>>>>> fade underlying pattern similar in both).
>>>>>
>>>>> Any idea of why plotting scores using cross-validation v.s. only
>>>>> plotting fitting/training scores will give different results?
>>>>>
>>>>> This is my understanding of what should be going on: in the training case
>>>>> without using any cross-validation, on each time point, there was a
>>>>> classifier/decoder that was trained by seeing all EEG channels' data over
>>>>> all epochs at that train time point, therefore it would give a perfect
>>>>> score on the same test time point.  However, a different time point
>>>>> (testing times) has different data that can be seen as a test set for this
>>>>> decoder. Right? (Even if there was an autocorrelation between EEG data over
>>>>> time and still see some meaningful pattern in time generalization matrix,
>>>>> it means that EEG data had task-related information over time which is
>>>>> still meaningful).
>>>>>
>>>>> ---------
>>>>> I have also put my code here:
>>>>>
>>>>> *Scores using cross-validation:*
>>>>>
>>>>> *clf_SVC  = make_pipeline(*
>>>>> *                        StandardScaler(),*
>>>>> *                        LinearModel(LinearSVC(random_state=0,
>>>>> max_iter=10000)))*
>>>>>
>>>>> *temp_gen = GeneralizingEstimator(clf_SVC, scoring='roc_auc',
>>>>> n_jobs=1,verbose=True)*
>>>>>
>>>>> *cv = StratifiedKFold(n_splits=5, shuffle=True)*
>>>>> *scores = cross_val_multiscore(temp_gen, X, y, cv=cv, n_jobs=1)*
>>>>>
>>>>> *Only fitting scores:*
>>>>>
>>>>> *temp_gen.fit(X=X ,y=y)*
>>>>> *scores = temp_gen.score(X=X, y=y) #scores without cv*
>>>>> *-----------*
>>>>>
>>>>> - I will appreciate any comments,
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mne_analysis mailing list
>>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>>
>>>>
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200403/556f65b1/attachment-0001.html
>>>
>>> ------------------------------
>>>
>>> Message: 2
>>> Date: Sat, 4 Apr 2020 11:35:13 +0200
>>> From: Stefan Appelhoff <stefan.appelhoff at mailbox.org>
>>> Subject: [Mne_analysis] MNE-BIDS 0.4 released!
>>> To: mne_analysis at nmr.mgh.harvard.edu
>>> Message-ID: <72db9be7-7537-77b9-5685-3a3a0d8b1d7b at mailbox.org>
>>> Content-Type: text/plain; charset="utf-8"; format="flowed"
>>>
>>>         External Email - Use Caution
>>>
>>> Dear MNE community,
>>>
>>> shortly after MNE 0.20 was released, we now proudly release MNE-BIDS 0.4
>>> for all of you using the Brain Imaging Data Structure (BIDS) in your work.
>>>
>>> Next to several bug fixes and an improved documentation, there are some
>>> new exciting features such as an improved automatic anonymization of
>>> datasets. Check it out!
>>>
>>> - BIDS: https://bids.neuroimaging.io/
>>>
>>> - MNE-BIDS: https://mne.tools/mne-bids/stable/index.html
>>>
>>> Best regards,
>>>
>>> your MNE-BIDS team
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>>
>>> End of Mne_analysis Digest, Vol 147, Issue 10
>>> *********************************************
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200404/021bcd69/attachment.html
>>
>> ------------------------------
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>> End of Mne_analysis Digest, Vol 147, Issue 12
>> *********************************************
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200405/53f85f3b/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
> End of Mne_analysis Digest, Vol 147, Issue 15
> *********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200405/5e2aae8c/attachment-0001.html 


More information about the Mne_analysis mailing list