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