fit_transform()

fit_transform()#

TransformerPipeline.fit_transform(states, inplace=False)[source]#

Learn and apply the transformation.

Parameters:
states(n, k) ndarray

Matrix of k n-dimensional snapshots.

inplacebool

If True, overwrite states during transformation. If False, create a copy of the data to transform.

Returns:
states_transformed: (n, k) ndarray

Matrix of k n-dimensional transformed snapshots.