MCPcopy Index your code
hub / github.com/mne-tools/mne-python / transform

Method transform

mne/decoding/xdawn.py:196–211  ·  view source on GitHub ↗

Transform data with spatial filters. Parameters ---------- X : array, shape (n_epochs, n_channels, n_samples) The target data. Returns ------- X : array, shape (n_epochs, n_components * n_classes, n_samples) The transformed da

(self, X)

Source from the content-addressed store, hash-verified

194 return self
195
196 def transform(self, X):
197 """Transform data with spatial filters.
198
199 Parameters
200 ----------
201 X : array, shape (n_epochs, n_channels, n_samples)
202 The target data.
203
204 Returns
205 -------
206 X : array, shape (n_epochs, n_components * n_classes, n_samples)
207 The transformed data.
208 """
209 X = self._check_data(X)
210 X = super().transform(X)
211 return X
212
213 def inverse_transform(self, X):
214 """Remove selected components from the signal.

Callers 2

test_XdawnTransformerFunction · 0.95
test_xdawn_save_loadFunction · 0.95

Calls 1

_check_dataMethod · 0.45

Tested by 2

test_XdawnTransformerFunction · 0.76
test_xdawn_save_loadFunction · 0.76