You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: Unsupported "ssd" restr_type listed for mne.decoding.SSD #13512
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?
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
Activity
Genuster commentedon Nov 28, 2025
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 thecompute_whitenerunder the hood and is supposed to do the same thing.Let me know if I'm missing something
tsbinns commentedon Nov 28, 2025
Thanks for the correction @Genuster, I can't even remember my own code!