MCPcopy
hub / github.com/mne-tools/mne-python / get_components

Method get_components

mne/preprocessing/ica.py:1080–1091  ·  view source on GitHub ↗

Get ICA topomap for components as numpy arrays. Returns ------- components : array, shape (n_channels, n_components) The ICA components (maps).

(self)

Source from the content-addressed store, hash-verified

1078 return picks
1079
1080 def get_components(self):
1081 """Get ICA topomap for components as numpy arrays.
1082
1083 Returns
1084 -------
1085 components : array, shape (n_channels, n_components)
1086 The ICA components (maps).
1087 """
1088 return np.dot(
1089 self.mixing_matrix_[:, : self.n_components_].T,
1090 self.pca_components_[: self.n_components_],
1091 ).T
1092
1093 def get_explained_variance_ratio(self, inst, *, components=None, ch_type=None):
1094 """Get the proportion of data variance explained by ICA components.

Callers 6

find_bads_refMethod · 0.95
find_bads_muscleMethod · 0.95
test_ica_additionalFunction · 0.95
corrmapFunction · 0.80
_plot_ica_topomapFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_ica_additionalFunction · 0.76