Skip to content

Allow Xdawn to be used with rank-deficient data without reg - #14182

Open
larsoner wants to merge 1 commit into
mne-tools:mainfrom
larsoner:xdawn
Open

Allow Xdawn to be used with rank-deficient data without reg#14182
larsoner wants to merge 1 commit into
mne-tools:mainfrom
larsoner:xdawn

Conversation

@larsoner

Copy link
Copy Markdown
Member

I have some rank-deficient data that I want to apply Xdawn to, but just regularizing isn't as clean as operating in the proper subspace. This PR adds the option of operating in that subspace (which then also enables using no reg for rank-deficient data). The change ended up being quite simple, mostly swapping np.linalg.eigh with _smart_eigh and some rank="full"s to rank=rank. Changes drafted by Claude Opus 5 and reviewed and tested (on real data / my use case!) by me. Includes a little AGENTS.md tweak to facilitate changelog entry numbering by agents.

Relevant to a point in #13392 but doesn't close it

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant