pyeeg.mcca.mCCA.fit

mCCA.fit(X)

Fit the mCCA model on a set of datasets.

Each dataset is first whitened with a PCA, then a second PCA is applied to the concatenation of the whitened datasets to extract the shared summary components. Individual projection matrices are computed for every dataset.

Parameters:

X (list of array-like (Time x channels) or array-like (subj x time x channels)) – The datasets to align. All datasets must have the same number of samples (observations) but may have different numbers of channels.

Returns:

  • self (mCCA) – The fitted estimator. In-place, sets n_datasets_, SCs_, SC_variances and individual_transforms_.

  • no-index: