gemseo / mlearning / transform / dimension_reduction

dimension_reduction module

Dimension reduction as a generic transformer.

The DimensionReduction class implements the concept of dimension reduction.

See also

pca

class gemseo.mlearning.transform.dimension_reduction.dimension_reduction.DimensionReduction(name='DimensionReduction', n_components=None, **parameters)[source]

Bases: Transformer

Dimension 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, typically min(n_samples, n_features).

  • **parameters (str) – The parameters of the transformer.

compute_jacobian(data)

Compute Jacobian of transformer.transform().

Parameters:

data (ndarray) – The data where the Jacobian is to be computed.

Returns:

The Jacobian matrix.

Return type:

NoReturn

compute_jacobian_inverse(data)

Compute Jacobian of the transformer.inverse_transform().

Parameters:

data (ndarray) – The data where the Jacobian is to be computed.

Returns:

The Jacobian matrix.

Return type:

NoReturn

duplicate()

Duplicate the current object.

Returns:

A deepcopy of the current instance.

Return type:

Transformer

fit(data, *args)

Fit the transformer to the data.

Parameters:
Return type:

NoReturn

fit_transform(data, *args)

Fit the transformer to the data and transform the data.

Parameters:
Returns:

The transformed data.

Return type:

ndarray

inverse_transform(data)

Perform an inverse transform on the data.

Parameters:

data (ndarray) – The data to be inverse transformed.

Returns:

The inverse transformed data.

Return type:

NoReturn

transform(data)

Transform the data.

Parameters:

data (ndarray) – The data to be transformed.

Returns:

The transformed data.

Return type:

NoReturn

CROSSED = False
property n_components: int

The number of components.

name: str

The name of the transformer.

parameters: str

The parameters of the transformer.

Examples using DimensionReduction

KL-SVD on Burgers equation

KL-SVD on Burgers equation

KL-SVD on Burgers equation
PCA on Burgers equation

PCA on Burgers equation

PCA on Burgers equation