fit()#
- ScaleTransformer.fit(states)[source]#
Set the
state_dimensionifscaleris not an array, otherwise do nothing.- Parameters:
- states(n, k) ndarray
Matrix of k n-dimensional snapshots.
- Returns:
- self
- Raises:
- ValueError
If the
statesdo not align with thestate_dimension(only whenscaleris an array)