Skip to content

BUG: Fix GED tolerances and improve cov validation#13346

Merged
larsoner merged 2 commits into
mne-tools:mainfrom
Genuster:fix-cov-validation
Jul 23, 2025
Merged

BUG: Fix GED tolerances and improve cov validation#13346
larsoner merged 2 commits into
mne-tools:mainfrom
Genuster:fix-cov-validation

Conversation

@Genuster
Copy link
Copy Markdown
Contributor

@Genuster Genuster commented Jul 22, 2025

Fixes #13342.

What does this implement/fix?

validate covariances more precisely:

  • for GED S should be at least symmetric and R should be at least positive semi-definite
  • for AJD all covs should be at least positive semi-definite
  • use more reasonable tolerances for symmetricity and definiteness
  • improve tests accordingly

@Genuster Genuster requested a review from jasmainak as a code owner July 22, 2025 23:50
Copy link
Copy Markdown
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one tiny idea otherwise LGTM!

Comment thread mne/decoding/base.py Outdated
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
@larsoner larsoner merged commit 043c8be into mne-tools:main Jul 23, 2025
32 checks passed
@larsoner
Copy link
Copy Markdown
Member

Thanks @Genuster !

@Genuster Genuster deleted the fix-cov-validation branch July 24, 2025 13:01
WouterKroot pushed a commit to WouterKroot/mne-python that referenced this pull request Aug 13, 2025
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
zEdS15B3GCwq pushed a commit to zEdS15B3GCwq/mne-python that referenced this pull request Aug 25, 2025
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants