dimension_reduction module¶
Dimension reduction as a generic transformer.
The DimensionReduction class implements the concept of dimension reduction.
See also
- class gemseo.mlearning.transformers.dimension_reduction.dimension_reduction.DimensionReduction(name='DimensionReduction', n_components=None, **parameters)[source]¶
Bases:
TransformerDimension reduction.
- Parameters:
name (str) –
A name for this transformer.
By default it is set to “DimensionReduction”.
n_components (int | None) – The number of components of the latent space. If
None, use the maximum number allowed by the technique, typicallymin(n_samples, n_features).**parameters (bool | int | float | str | None) – The parameters of the transformer.
- compute_jacobian(data)¶
Compute the Jacobian of
transform().
- compute_jacobian_inverse(data)¶
Compute the Jacobian of the
inverse_transform().
- duplicate()¶
Duplicate the current object.
- Returns:
A deepcopy of the current instance.
- Return type:
- fit(data, *args)¶
Fit the transformer to the data.
- fit_transform(data, *args)¶
Fit the transformer to the data and transform the data.
- inverse_transform(data)¶
Perform an inverse transform on the data.
- abstract transform(data)¶
Transform the data.