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 bytransform()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 formethod='none'.- Return type:
ndarray