inverse_transform()#
- ShiftScaleTransformer.inverse_transform(states_transformed, inplace: bool = False, locs=None)[source]#
Apply the inverse of the learned transformation.
- Parameters:
- states_transformed(n, …) or (p, …) ndarray
Matrix of n-dimensional transformed snapshots, or a single transformed snapshot.
- inplacebool
If
True
, overwritestates_transformed
during the inverse transformation. IfFalse
, create a copy of the data to untransform.- locsslice or (p,) ndarray of integers or None
If given, assume
states_transformed
contains the transformed snapshots at only the p indices described bylocs
.
- Returns:
- states_untransformed: (n, …) or (p, …) ndarray
Matrix of n-dimensional untransformed snapshots, or the p entries of such at the indices specified by
locs
.
- Raises:
- AttributeError
If the transformer is not ready because
fit()
orfit_transform()
have not been called.- ValueError
If the
states_transformed
do not align with thelocs
(when provided) or thestate_dimension
(whenlocs
is not provided).