fit_transform()

fit_transform()#

NullTransformer.fit_transform(states, inplace: bool = True)[source]#

Do nothing but set the state dimension; this transformation does not affect the states.

Parameters:
states(n, …) ndarray

Matrix of n-dimensional snapshots, or a single snapshot.

inplacebool

If True (default), return states. If False, return a copy of states.

Returns:
states: (n, …) ndarray

State snapshots, or a copy of them if inplace=False.