Skip to content

Inconsistant rank estimation and API in beamformers #5879

Closed

Description

@agramfort

I am with @britta-wstnr and @LauriParkkonen and after debugging some issues with phantom and simulated data using beamformer code here a list of things that we think should be addressed:

  • rank default parameter is not consistent between make_lcmv and make_dics
  • rank='full' in make_lcmv is a misnomer and it's assuming full rank if a noise_cov parameter is passed. We suggest to have an 'auto' mode that would fall back to using the info to infer the data rank.

We propose to create a unifying function call

rank = compute_rank(inst, scalings=None, rank='auto', info=None)

where inst can be Raw or Epochs or Covariance (info needed if Covariance.
This function would be called early in inverse pipeline so we pass explicitly
and int to all subsequent functions.

Started in #5876.

Remaining items:

  • deal with XXX's in rank.py, especially the conflict between np.float64 tolerance for minimum_norm tests and np.float32 necessary for the maxfilter ones in test_rank.py.
  • add tests for _estimate_rank_by_ratio showing that it's better than estimate_rank
  • add public option compute_rank(rank='ratio')
  • test rank='ratio' in tests

Activity

  1. added this to the 0.18 milestone on Feb 15, 2019
  2. modified the milestones: 0.18, 0.19 on May 13, 2019
  3. modified the milestones: 0.19, 0.20 on Sep 11, 2019
  4. agramfort commented on Dec 28, 2019

    @agramfort
    SponsorMemberAuthor

    to close @larsoner ?

  5. larsoner commented on Dec 28, 2019

    @larsoner
    Member

    We still haven't dealt with the XXX's having to do with tolerance levels, but we can close and get to it someday if we need to

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions