Skip to content

BUG?: average=False in compute_proj_exg #5148

Closed

Description

@larsoner

By default we have average=False in compute_proj_ecg and compute_proj_eog. But when I was toying with the idea of using Xdawn (which I think might still be a good idea) to compute projectors rather than plain SSP, I found that average=True seemed to always be better than average=False.

Here is the sample data, with four columns: the first two are average=False, the last two are average=True; within those, the left are ECG epochs (to be projected) and the right are auditory epochs (hopefully not contaminated):

xdawn

Note that the "average=True" does not really make sense for Xdawn because it already uses the average, so the first two and last two columns are the same for Xdawn.

I think we might consider:

  • 1. Changing the default average=False to average=True.
  • 2. Probably unify compute_exg_proj and create_exg_epochs. The former does not use the latter but it probably should.
  • 3. Implement Xdawn as a backend instead of just SSP. Even with average=True it should do better against other noise present in the epochs, especially if that noise is large (yet to be shown).

Activity

  1. agramfort commented on Apr 20, 2018

    @agramfort
    SponsorMember
  2. larsoner commented on Apr 22, 2018

    @larsoner
    MemberAuthor

    I suggest we use a deprecation cycle to get to average=True, then, for 0.16. The others can be 0.17.

  3. added this to the 0.16 milestone on Apr 22, 2018
  4. agramfort commented on Apr 22, 2018

    @agramfort
    SponsorMember
  5. cbrnr commented on Apr 23, 2018

    @cbrnr
    Contributor

    +1 for tackling average=True now and the rest later. But why do you think this is a bug?

  6. larsoner commented on Apr 23, 2018

    @larsoner
    MemberAuthor
  7. cbrnr commented on Apr 23, 2018

    @cbrnr
    Contributor

    So results are wrong if average=False?

  8. larsoner commented on Apr 23, 2018

    @larsoner
    MemberAuthor
  9. cbrnr commented on Apr 23, 2018

    @cbrnr
    Contributor

    OK, so probably not a bug, but suboptimal parameter settings.

  10. agramfort commented on Apr 30, 2018

    @agramfort
    SponsorMember

    this can be closed right?

  11. massich commented on Apr 30, 2018

    @massich
    Contributor

    I don't think so (because point 3 is missing), but we can take it off of the 0.16 milestones.

  12. modified the milestones: 0.16, 0.17 on Apr 30, 2018
  13. agramfort commented on Apr 30, 2018

    @agramfort
    SponsorMember
  14. larsoner commented on Oct 4, 2018

    @larsoner
    MemberAuthor

    Point (3) is open we just need to decide about whether or not to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions