pyeeg.features.FeatureReducer.inverse_transform
- FeatureReducer.inverse_transform(reduced_features: ndarray) ndarray
Transform reduced features back to original space.
Reconstructs data in the original feature space by projecting the reduced features back onto the fitted components and adding back the fitted mean. With
method='none', the input is returned unchanged.- Parameters:
reduced_features (ndarray) – 2D array of shape
(n_samples, n_components)of reduced features.- Returns:
features – 2D array of shape
(n_samples, n_features)reconstructed in the original feature space, or the input unchanged formethod='none'.- Return type:
ndarray
- Raises:
RuntimeError – If the reducer has not been fitted (call
fit()first).ValueError – If
self.config.methodis not one of"pca","ica", or"none".