Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICA explained variance in original data #685

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rcassani
Copy link
Member

This PR adds code to compute the variance explained by the IC when using ICA decomposition.

The reasonable place to store these values is the SingVal field in the projector structure. However, this changes for back compatibility are needed as this field is currently either the PCA explained variance, or a string to identify other projectors ICA or REF (montage).

% There are 5 categories of projectors:
% - SSP_pca: CompMask=[Ncomp x 1], SingVal=[Ncomp x 1], Components=[Nchan x Ncomp]=U
% - SSP_mean: CompMask=1, SingVal=[], Components=[Nchan x 1]=U
% - ICA: CompMask=[Ncomp x 1], SingVal='ICA', Components=[Nchan x Ncomp]=W'
% - REF: CompMask=[], SingVal='REF', Components=[Nchan x Ncomp]=Wmontage
% - Other: CompMask=[], SingVal=[], Components=[Nchan x Nchan]=Projector=I-UUt

Tentative solution:

  1. Use the Comment to identify the type of projector
  2. Always require the projector Comment to have the type of projector on it

References:
mne-tools/mne-python#11141

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.

None yet

1 participant