jamica.get_model_ica#

jamica.get_model_ica(ica, model)[source]#

Return an mne.preprocessing.ICA for one model of a multi-model AMICA fit.

fit_ica(num_models>1) returns the highest-weight model as the primary ICA. This materialises any model’s decomposition, sharing the same pre-whitening and PCA so apply/get_sources/plot_* work unchanged.

Parameters:
icamne.preprocessing.ICA

An ICA returned by fit_ica() for a multi-model fit (has amica_result_ with a 3-D unmixing_matrix_white_).

modelint

Model index in [0, num_models).

Returns:
mne.preprocessing.ICA

A copy of ica whose unmixing/mixing matrices are model model’s.