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

Method transform

mne/decoding/search_light.py:200–220  ·  view source on GitHub ↗

Transform each data slice/task with a series of independent estimators. The number of tasks in X should match the number of tasks/estimators given at fit time. Parameters ---------- X : array, shape (n_samples, nd_features, n_tasks) The input sam

(self, X)

Source from the content-addressed store, hash-verified

198 return y_pred
199
200 def transform(self, X):
201 """Transform each data slice/task with a series of independent estimators.
202
203 The number of tasks in X should match the number of tasks/estimators
204 given at fit time.
205
206 Parameters
207 ----------
208 X : array, shape (n_samples, nd_features, n_tasks)
209 The input samples. For each data slice/task, the corresponding
210 estimator makes a transformation of the data, e.g.
211 ``[estimators[ii].transform(X[..., ii]) for ii in range(n_estimators)]``.
212 The feature dimension can be multidimensional e.g.
213 X.shape = (n_samples, n_features_1, n_features_2, n_tasks).
214
215 Returns
216 -------
217 Xt : array, shape (n_samples, n_estimators)
218 The transformed values generated by each estimator.
219 """ # noqa: E501
220 return self._transform(X, "transform")
221
222 def predict(self, X):
223 """Predict each data slice/task with a series of independent estimators.

Callers 2

test_search_light_basicFunction · 0.95
fit_transformMethod · 0.45

Calls 1

_transformMethod · 0.95

Tested by 1

test_search_light_basicFunction · 0.76