pyriemann.transfer.TLDummy

class pyriemann.transfer.TLDummy

No transformation on data for transfer learning.

No transformation of the data points between the domains. This is what we call the Direct Center Transfer (DCT) method.

Notes

New in version 0.4.

__init__()
fit(X, y_enc)

Do nothing.

Parameters
Xndarray, shape (n_matrices, n_channels, n_channels)

Set of SPD matrices.

y_encndarray, shape (n_matrices,)

Extended labels for each matrix.

Returns
selfTLDummy instance

The TLDummy instance.

fit_transform(X, y_enc)

Do nothing.

Parameters
Xndarray, shape (n_matrices, n_channels, n_channels)

Set of SPD matrices.

y_encndarray, shape (n_matrices,)

Extended labels for each matrix.

Returns
Xndarray, shape (n_matrices, n_classes)

Set of SPD matrices with mean in the Identity.

get_params(deep=True)

Get parameters for this estimator.

Parameters
deepbool, default=True

If True, will return the parameters for this estimator and contained subobjects that are estimators.

Returns
paramsdict

Parameter names mapped to their values.

set_params(**params)

Set the parameters of this estimator.

The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object.

Parameters
**paramsdict

Estimator parameters.

Returns
selfestimator instance

Estimator instance.

transform(X, y_enc=None)

Do nothing.

Parameters
Xndarray, shape (n_matrices, n_channels, n_channels)

Set of SPD matrices.

y_encNone

Not used, here for compatibility with sklearn API.

Returns
Xndarray, shape (n_matrices, n_classes)

Same set of SPD matrices as in the input.