gemseo.mlearning.transformers.base_transformer module#
A transformer to apply operations on NumPy arrays.
The abstract BaseTransformer class implements
the concept of a data transformer.
Inheriting classes shall implement the BaseTransformer.fit(),
BaseTransformer.transform()
and possibly BaseTransformer.inverse_transform() methods.
See also
scaler
dimension_reduction
- class BaseTransformer(name='', **parameters)[source]#
Bases:
objectA data transformer fitted from some samples.
- Parameters:
name (str) --
A name for this transformer.
By default it is set to "".
**parameters (ParameterType) -- The parameters of the transformer.
- compute_jacobian(data)[source]#
Compute the Jacobian of
transform().- Parameters:
data (RealArray) -- The data where the Jacobian is to be computed, shaped as
(n_observations, n_features)or(n_features, ).- Returns:
The Jacobian matrix, shaped according to
data.- Return type:
NoReturn
- compute_jacobian_inverse(data)[source]#
Compute the Jacobian of the
inverse_transform().- Parameters:
data (RealArray) -- The data where the Jacobian is to be computed, shaped as
(n_observations, n_features)or(n_features, ).- Returns:
The Jacobian matrix, shaped according to
data..- Return type:
NoReturn
- duplicate()[source]#
Duplicate the current object.
- Returns:
A deepcopy of the current instance.
- Return type:
- class TransformerFactory[source]#
Bases:
BaseFactoryA factory of transformers.
- Return type:
Any