yeo_johnson module¶
A Yeo-Johnson power transformation.
Transform \(x\) as:
Dependence¶
This transformation algorithm relies on the PowerTransformer
class
of scikit-learn.
- class gemseo.mlearning.transform.power.yeo_johnson.YeoJohnson(name=None, standardize=True)[source]¶
Bases:
gemseo.mlearning.transform.power.power.Power
A Yeo-Johnson power transformation.
- Parameters
- Return type
None
- compute_jacobian(data)¶
Compute Jacobian of transformer.transform().
- Parameters
data (numpy.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 (numpy.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
- fit(data, *args)¶
Fit the transformer to the data.
- Parameters
data (numpy.ndarray) – The data to be fitted.
- Return type
NoReturn
- fit_transform(data, *args)¶
Fit the transformer to the data and transform the data.
- Parameters
data (numpy.ndarray) – The data to be transformed.
- Returns
The transformed data.
- Return type
- inverse_transform(data)¶
Perform an inverse transform on the data.
- Parameters
data (numpy.ndarray) – The data to be inverse transformed.
- Returns
The inverse transformed data.
- Return type
- transform(data)¶
Transform the data.
- Parameters
data (numpy.ndarray) – The data to be transformed.
- Returns
The transformed data.
- Return type
- CROSSED = False¶
- lambdas_: ndarray¶
The parameters of the power transformation for the selected features.