pyeeg.features.reduction.ReductionConfig
- class pyeeg.features.reduction.ReductionConfig(method: str = 'pca', n_components: int | None = None, variance_threshold: float = 0.95, random_state: int | None = None, whiten: bool = False)
Configuration for feature reduction.
- method
Reduction method to use. One of
"pca"(principal component analysis),"ica"(independent component analysis via whitening), or"none"(identity transformation). Defaults to"pca".- Type:
- n_components
Number of components to retain. If
None, the number is derived fromvariance_threshold(PCA) or kept equal to the input dimensionality (ICA). Defaults toNone.- Type:
Optional[int], optional
- variance_threshold
For PCA with
n_components=None: the cumulative explained-variance ratio at which the component count is selected. Defaults to0.95.- Type: