dimension_reduction module¶
Dimension reduction¶
The DimensionReduction
class implements the concept of dimension
reduction.
See also
-
class
gemseo.mlearning.transform.dimension_reduction.dimension_reduction.
DimensionReduction
(name='DimensionReduction', n_components=5, **parameters)[source]¶ Bases:
gemseo.mlearning.transform.transformer.Transformer
Dimension reduction.
Constructor.
- Parameters
name (str) – name of the scaler.
n_components (int) – number of components. Default: 5.
parameters – parameters for the dimension reduction algorithm.
-
fit
(data)[source]¶ Fit dimension reduction algorithm to data.
- Parameters
data (ndarray) – data to be fitted.
-
property
n_components
¶ Number of components