You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have to wait some time after clicking a component in ica.plot_components window and the time seems to be mostly from waiting for the multitaper psd estimation to complete. I think that we should use something much simpler like welch or even fft as the default. The plotted spectrum is for informational reasons, not for analysis. I can compare timings on one of my datasets.
I profiled plot_properties and it seems I was wrong: a lot of time (> 2 s in this case) is spent in bootstrap CI computation:
We should consider switching to analytic (and possibly one-sided to better represent skewed distributions).
BTW - 7 seconds here is an exaggeration, 2 seconds were spent in plt_show before I closed the figure.
changed the title [-]ENH: change psd method used in ica.plot_properties from multitapering to welch[/-][+]ENH: speed up ica.plot_properties[/+]on May 4, 2019
but I still think multitaper should be changed to somthing lighter (welch or fft), people with less experience with multitapersing could be mistaken by the fatter, more square-like peaks that can sometimes arise due to frequency smoothing.
@mmagnuski I suggest to, in plot_ica_properties, add a ts_args param and default the time series (plot_compare_evokeds) internally to your CI function, unless overwritten to a ci param in ts_args.
Activity
larsoner commentedon May 3, 2019
Sounds good to me
cbrnr commentedon May 4, 2019
OK, I would be interested in the timings if this is really the bottleneck.
jona-sassenhagen commentedon May 4, 2019
Sure, sounds good.
jona-sassenhagen commentedon May 4, 2019
While you're there, generalise plot_properties to channels please :D
agramfort commentedon May 4, 2019
mmagnuski commentedon May 4, 2019
I profiled plot_properties and it seems I was wrong: a lot of time (> 2 s in this case) is spent in bootstrap CI computation:

We should consider switching to analytic (and possibly one-sided to better represent skewed distributions).
BTW - 7 seconds here is an exaggeration, 2 seconds were spent in plt_show before I closed the figure.
[-]ENH: change psd method used in ica.plot_properties from multitapering to welch[/-][+]ENH: speed up ica.plot_properties[/+]mmagnuski commentedon May 4, 2019
but I still think multitaper should be changed to somthing lighter (welch or fft), people with less experience with multitapersing could be mistaken by the fatter, more square-like peaks that can sometimes arise due to frequency smoothing.
mmagnuski commentedon May 4, 2019
@jona-sassenhagen I can take a stab at that (generalizing to channels) if you insist. :)
jona-sassenhagen commentedon May 4, 2019
Uh oh, it's my fault :)
For the tests, we can pass a different ci function to plot_compare_evokeds here. You wanna do that, or should I?
We can also default to a different function for the default for plot_properties.
I insist.
mmagnuski commentedon May 4, 2019
This is what you meant in #6250, right?
I can test later today.
That could be useful.
😅
jona-sassenhagen commentedon May 4, 2019
It is connected to that, yes. Another reason for speeding up epochs iteration.
Maybe it would also make sense to see if we can speed up the bootstrap ci function.
jona-sassenhagen commentedon May 4, 2019
@mmagnuski I suggest to, in
plot_ica_properties, add ats_argsparam and default the time series (plot_compare_evokeds) internally to your CI function, unless overwritten to aciparam ints_args.jona-sassenhagen commentedon May 4, 2019
I can do it too.
mmagnuski commentedon May 4, 2019
@jona-sassenhagen Sure, If you have a plan, go for it. :)