inverse_transform()#
- ScaleTransformer.inverse_transform(states_scaled, inplace=False, locs=None)[source]#
Apply the inverse scaling.
- Parameters:
- states_scaled(n, …) or (p, …) ndarray
Matrix of n-dimensional scaled snapshots, or a single scaled snapshot.
- inplacebool
If
True, overwritestates_scaledduring the inverse transformation. IfFalse, create a copy of the data to untransform.- locsslice or (p,) ndarray of integers or None
If given, assume
states_scaledcontains the transformed snapshots at only the p indices described bylocs.
- Returns:
- states_unscaled: (n, …) or (p, …) ndarray
Matrix of n-dimensional unscaled snapshots, or the p entries of such at the indices specified by
locs.
- Raises:
- AttributeError
If
scaleris a number (not an array) butfit()orfit_transform()have not been called yet.- ValueError
If the
states_scaleddo not align with thelocs(when provided) or thestate_dimension(whenlocsis not provided).