pyeeg.features.FeatureReducer.fit_transform

FeatureReducer.fit_transform(features: ndarray) ndarray

Fit the reducer and transform the features.

Convenience method equivalent to calling fit() followed by transform() on the same data.

Parameters:

features (ndarray) – 2D array of shape (n_samples, n_features).

Returns:

reduced – 2D array of shape (n_samples, n_components) with the reduced features, or the input unchanged for method='none'.

Return type:

ndarray