# Question regarding computation time of Temporal	Generalization

**URL:** <https://mne.discourse.group/t/question-regarding-computation-time-of-temporal-generalization/2334>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [October 2, 2020, 3:15pm UTC](https://mne.discourse.group/t/question-regarding-computation-time-of-temporal-generalization/2334 "2020-10-02T15:15:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 2, 2020, 3:15pm UTC](https://mne.discourse.group/t/question-regarding-computation-time-of-temporal-generalization/2334/1 "2020-10-02T15:15:12Z")

</div>

External Email - Use Caution

Hi,  
I'm interested in computing the Temporal generalization so I followed this  
guide  
(  
[https://mne.tools/0.17/auto\_tutorials/plot\_sensors\_decoding.html#temporal-generalization](https://mne.tools/0.17/auto_tutorials/plot_sensors_decoding.html#temporal-generalization)  
)  
I'm using the exact same code as in the example. In my case, I have X being  
a 30x256x4000 matrix and y is a 30x1 array (since I have 30 trials, 256  
channels and 4000 time samples)  
The thing is that processing this code takes a long time, around 60 hs. My  
pc specs are: Intel Core i7-7700 CPU @ 3.60 Hz x 8 and 32 GB of RAM.  
Is this normal? Am I doing something wrong?

Thank you!  
Gabriel  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20201002/6a25c53a/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201002/6a25c53a/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 2, 2020, 3:28pm UTC](https://mne.discourse.group/t/question-regarding-computation-time-of-temporal-generalization/2334/2 "2020-10-02T15:28:28Z")

</div>

External Email - Use Caution

Hello Gabriel,

I think it is normal: you are training 4000 classifiers!  
Any chance you can downsample a bit? 125Hz resolution might be good enough  
already.  
Also, it is very useful to use parallel jobs e.g. to try: n\_jobs=\*-1\*

Good luck!

Giulia

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [October 2, 2020, 3:36pm UTC](https://mne.discourse.group/t/question-regarding-computation-time-of-temporal-generalization/2334/3 "2020-10-02T15:36:09Z")

</div>

External Email - Use Caution

Okay, that makes sense. I didn't know you could parallelize so easily!

Thanks Giulia!

El vie., 2 de oct. de 2020 a la(s) 12:29, Giulia Gennari (  
giulia.gennari1991 at gmail.com) escribi?:

> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution
> 
> Hello Gabriel,
> 
> I think it is normal: you are training 4000 classifiers!  
> Any chance you can downsample a bit? 125Hz resolution might be good enough  
> already.  
> Also, it is very useful to use parallel jobs e.g. to try: n\_jobs=\*-1\*
> 
> Good luck!
> 
> Giulia
> 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution
> > 
> > Hi,  
> > I'm interested in computing the Temporal generalization so I followed  
> > this guide  
> > (  
> > [https://mne.tools/0.17/auto\_tutorials/plot\_sensors\_decoding.html#temporal-generalization](https://mne.tools/0.17/auto_tutorials/plot_sensors_decoding.html#temporal-generalization)  
> > )  
> > I'm using the exact same code as in the example. In my case, I have X  
> > being a 30x256x4000 matrix and y is a 30x1 array (since I have 30 trials,  
> > 256 channels and 4000 time samples)  
> > The thing is that processing this code takes a long time, around 60 hs.  
> > My pc specs are: Intel Core i7-7700 CPU @ 3.60 Hz x 8 and 32 GB of RAM.  
> > Is this normal? Am I doing something wrong?
> > 
> > Thank you!  
> > Gabriel  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Mne\_analysis mailing list  
> > Mne\_analysis at nmr.mgh.harvard.edu  
> > [Mne\_analysis Info Page](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [Mne\_analysis Info Page](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/20201002/1ff22547/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201002/1ff22547/attachment-0001.html)
