Skip to content

DOC: Unsupported "ssd" restr_type listed for mne.decoding.SSD #13512

Closed

Description

@tsbinns

Proposed documentation enhancement

restr_type param for mne.decoding.SSD lists "ssd" as an option, but this isn't recognised:

ValueError: Invalid value for the 'restr_type' parameter. Allowed values are 'restricting', 'whitening', and None, but got 'ssd' instead.

Also, I looked into the code but just to confirm, would restr_type="restricting" be closest to the pre 1.11 behaviour (rather than "whitening") @larsoner @Genuster?

Activity

  1. Genuster commented on Nov 28, 2025

    @Genuster
    Contributor

    Hi @tsbinns
    In the old SSD code, the subspace eigenvectors are scaled:
    rank_proj = np.matmul(eigvects[:, :rank], np.eye(rank) * (eigvals[:rank] ** -0.5), which makes it "whitening" as i understand it.
    The restr_type="whitening" uses the compute_whitener under the hood and is supposed to do the same thing.
    Let me know if I'm missing something

  2. tsbinns commented on Nov 28, 2025

    @tsbinns
    MemberAuthor

    Thanks for the correction @Genuster, I can't even remember my own code!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions