tedana.decomposition
.tedica¶
-
tedica
(data, n_components, fixed_seed, maxit=500, maxrestart=10)[source]¶ Perform ICA on data and returns mixing matrix
- Parameters
data ((S x T)
numpy.ndarray
) – Dimensionally reduced optimally combined functional data, where S is samples and T is timen_components (
int
) – Number of components retained from PCA decompositionfixed_seed (
int
) – Seed for ensuring reproducibility of ICA resultsmaxit (
int
, optional) – Maximum number of iterations for ICA. Default is 500.maxrestart (
int
, optional) – Maximum number of attempted decompositions to perform with different random seeds. ICA will stop running if there is convergence prior to reaching this limit. Default is 10.
- Returns
mmix ((T x C)
numpy.ndarray
) – Z-scored mixing matrix for converting input data to component space, where C is components and T is the same as in datafixed_seed (
int
) – Random seed from final decomposition.
Notes
Uses sklearn implementation of FastICA for decomposition