gemseo.mlearning.transformers.dimension_reduction.base_dimension_reduction module#

Dimension reduction as a generic transformer.

The BaseDimensionReduction class implements the concept of dimension reduction.

See also

pca

class BaseDimensionReduction(name='', n_components=None, **parameters)[source]#

Bases: BaseTransformer

Dimension reduction.

Parameters:
  • name (str) --

    A name for this transformer.

    By default it is set to "".

  • n_components (int | None) -- The number of components of the latent space. If None, use the maximum number allowed by the technique, typically min(n_samples, n_features).

  • **parameters (bool | float | str | None) -- The parameters of the transformer.

property n_components: int#

The number of components.