-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG Default ica.plot_properties to a parametric CI #6270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRG Default ica.plot_properties to a parametric CI #6270
Conversation
* 'master' of git://github.com/mne-tools/mne-python: (48 commits) Update brainvision.py FIX: bv read vmrks NaN duration FIX: Fix for new numpy FIX: Minor fixes Updated test. Bug fix misc FIX: Fix docs FIX: Fix docstring FIX: Fix rendering [ci skip] Address comments Update whats_new sfreq and whats new ADD v2 hdr/mrk ENH header check, default event_id=None ADD event_id arg ENH helper function for version ENH add channel position via montage FIX potential fix to scaling issue ENH support v2.0 ...
Codecov Report
@@ Coverage Diff @@
## master #6270 +/- ##
==========================================
+ Coverage 89.37% 89.38% +<.01%
==========================================
Files 416 416
Lines 74975 74983 +8
Branches 12328 12329 +1
==========================================
+ Hits 67007 67020 +13
+ Misses 5133 5129 -4
+ Partials 2835 2834 -1 |
|
I also added this to Edit: seems I am getting half a second on the tests here too. |
|
This pull request introduces 1 alert when merging 8c857cc into 14a0f19 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
|
Looks good. How are the shades drawn for the psd? It's a different function for that, right? |
|
Yeah and I think you wrote it :D |
|
That's right :) I was just trying to check whether psd stds were not refactored to be drawn via plot_compare_evokeds. I made sure by looking at the code now. |
|
Travis and Azure complain. |
|
Done I think |
| standard deviation above/below. | ||
| For the ERP/ERF, by default, plot the 95 percent parametric confidence | ||
| interval is calculated. To change this, use ``ci`` in ``ts_args`` in | ||
| ``image_args`` (see below). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this called ci at some place and std at others? When I read plot_std for me you report +/- 1 standard deviation on the plots. This needs to be made consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for psd plot we first used +/-1 std but later when evoked plot was refactored to use plot_compare_evokeds it used 95% CI. So currently spectrum uses +/- 1 std and evoked plot uses CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what would be best. The evoked reuses plot_compare_evokeds. We could use the one-sided CI functionality in both evoked and psd (and add it to `mne.stats._ci´), and call it a 95% CI for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
so anything to fix / improve for consistency / clarity?
… |
|
my suggestions are not clear @jona-sassenhagen ? |
|
before thinking about code changes, what would be a consistent API for all
functions that can display a confidence interval / uncertainty on an
average?
|
|
@jona-sassenhagen do you think we can sort this out in the next couple of days to get it in for 0.18, or should we move the milestone to 0.19? |
|
The brainvision reader is IMO more important than this one, so I don't mind moving this to .19. |
|
what's left to do here @jona-sassenhagen ? |
|
i'd like to wait for #6422. |
What? |
|
I don't know if this is related but Azure here seems to have the same problem during installation as in this other PR, see here. |
|
I looked at the failing Windows Python37-64bit-full-conda build and at the end of the log of |
|
@jona-sassenhagen rebase and Azure should be okay. But we can also ignore it and trust Travis for this if you want |
03e0e58 to
65c7e3f
Compare
|
Rebase fixed this. Further comments @drammock @agramfort @mmagnuski ? |
|
code looks reasonable. I agree with @agramfort's point about |
* FIX to account for different versions of sphinx_gallery * FIX address comments * FIX : always return array in pick_types * FIX: Fix type * init * ... * fix docstring * ... * also for plot_compare_evokeds topomode * .. * fix test and docstrong * fixes * make tests green * pep8
Closes #6268
I am getting approx. half a second speedup for the tests on my machine.
Note I changed the functionality of plot_compare_evokeds a bit: now, as the doctstring already said, it will skip the CI if any condition has fewer than 2 evokeds.
@mmagnuski